The client contains a Client class which encapsulates all API endpoints and hold storage token and URL. Each API endpoint is
represented by its own class (Files, Buckets, Jobs, …) which can be used standalone if you only work with one endpoint.
This means that the two following examples are equivalent:
Example — Create a Table and Import Data
To create a new table in Storage, use the create function of the Tables class. Provide the name of an existing bucket,
the name of the new table and a CSV file with the table’s contents.
To create the new-table table in the in.c-main bucket, use
The above command will import the contents of the coords.csv file into the newly created table. It will
also mark the id column as the primary key.
Example — Export Data
If you want to export a table from Storage and import it into Python, use the importTable function. Provide
the ID (bucketName.tableName) of an existing table.
To export data from the old-table table in the in.c-main bucket, use
The above command will export the table from Storage into file new-table and read it using