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.0.0.tar.gz (14.2 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.0.0-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gigasheet-2.0.0.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.8.16 Darwin/23.2.0

File hashes

Hashes for gigasheet-2.0.0.tar.gz
Algorithm Hash digest
SHA256 fd0ffd608f92106735c5d10bc0df24f26f51ae1a3dcbce7be63cce2cfa64dfb4
MD5 e6d31f7236104a74509a938c05b60d48
BLAKE2b-256 1d1efb02874b942c34e95bf7c0b4ed2a444072ae3f8437dad3965461f0893777

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gigasheet-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.8.16 Darwin/23.2.0

File hashes

Hashes for gigasheet-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 213b584b36b93659dc1c295d09a1192a6198c342bdf0dfc3b90a09eb46b4baaa
MD5 89bcb4ad8dced53d09b28e08c14b5b8e
BLAKE2b-256 6ca44772cf832c9eced56408861ebf3460b4e77566e623283c0a0a394c38e3c5

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