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.3.0.tar.gz (14.6 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.3.0-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gigasheet-2.3.0.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.4 Darwin/21.6.0

File hashes

Hashes for gigasheet-2.3.0.tar.gz
Algorithm Hash digest
SHA256 e60944e0832f6f8ae6ed3f64228b6a29648366626345793f04c490003d895465
MD5 44370949dc87751773968abc92779753
BLAKE2b-256 dd29c99b8383a947e91ac2a3cb4093833e045277b72dac74589b4782a028fb5d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gigasheet-2.3.0-py3-none-any.whl
  • Upload date:
  • Size: 16.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.4 Darwin/21.6.0

File hashes

Hashes for gigasheet-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fa86015330fcf64a72a278b4c262199d23a47f51382805ae8eaaa093ee38695a
MD5 04fe2338d9c6b07a66751c26a76bb44d
BLAKE2b-256 48d7a829c24aebbb3a7df16c64a71dc3d485072cb351a3bf3bd37bde779bac84

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