Skip to main content

Gigasheet Python SDK

Project description

gigasheet-python

Installation

The Gigasheet API wrapper is built for Python 3 and may not work with earlier versions of Python.

Recommended installation

To run the examples, clone this repository and then run the following steps from the root of the cloned repository:

  1. Create a venv (optional, but recommended)
python -m venv venv
source ./venv/bin/activate
  1. Install Gigasheet
  • To install from PyPI, you can simply run: pip install gigasheet.
  1. Run an example. See the Authentication section for setting your key. After that, try running some examples in the example folder.
python examples/check_setup.py

Alternate installation as standalone

Because the Gigasheet API wrapper is currently only a single file, you can also download gigasheet.py from the gigasheet folder of this repository and place that file in the same directory as your own script. You can then import gigasheet with the line import gigasheet. However, this is not recommended as it is more brittle. It is preferred to use the setup steps described above instead.

Authentication

Set the environment variable GIGASHEET_API_KEY to be your Gigasheet API key to authenticate requests.

Contact support@gigasheet.com for more information about how to obtain a Gigasheet API key.

Examples

Import file from S3 and share with a colleague

You can use the example command-line tool examples/import_and_share_cli.py to import a file from S3 and share it to a colleague.

First, use the AWS console or an AWS SDK to obtain a pre-signed link for the file you want to import. Then, use the command-line tool like this:

python examples/upload_and_share_cli.py --input-url <the s3 presigned link> --share-to <email of colleague> --share-write

Run python examples/upload_and_share_cli.py --help to see more options like setting a file name or a share message.

Alternatively, if you already have AWS credentials on your machine, you could look at the simplified example script:

python examples/upload_from_s3.py

Export from Gigasheet to a local file

You can use this example script to get an S3 presigned URL of an export and to save it to your local disk:

python examples/download_export.py

API endpoint documentation

https://gigasheet.readme.io/

License

This project is licensed under the terms of the MIT license.

Contact

Visit us at https://gigasheet.com for more about our product.

Contact support@gigasheet.com for more information or for help getting an API key.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gigasheet-2.1.0.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gigasheet-2.1.0-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file gigasheet-2.1.0.tar.gz.

File metadata

  • Download URL: gigasheet-2.1.0.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.8.16 Darwin/23.4.0

File hashes

Hashes for gigasheet-2.1.0.tar.gz
Algorithm Hash digest
SHA256 eac2118f1fb2e52022b21d2672291b671df4d168b016c5e83f47ca576e6b7b1e
MD5 6ec4e197220a27e79b7be0f30026ae34
BLAKE2b-256 ca4542e8db3b8a165ca004daac1577eebf336068cddde9518d890115606d35a4

See more details on using hashes here.

File details

Details for the file gigasheet-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: gigasheet-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.8.16 Darwin/23.4.0

File hashes

Hashes for gigasheet-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1dfa0b624a9ef13739a276b1b8e75829249064c23cd615ac636316cc50a005e5
MD5 a493a81b438b5f20712f865a61f9477e
BLAKE2b-256 3e4dc65762bf195654260992623b3f159c648b488e0130c4593a16572fac0af6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page