Python SDK
Use our library to get convenient and idiomatic access to GRID’s REST API from Python. It’s generated from our OpenAPI specification.
Installation
The library is available as a package on PyPI. You can install the package with:
Before you start
Follow our getting started guide to get an API key and a workbook id.
You can use your API key in two ways: pass it directly to the Python client or, preferably, store it in an environment variable named GRID_API_KEY
. Both methods are supported, but using an environment variable is the recommended approach for better security and maintainability.
Example usage
With the SDK installed, you can query your workbook and get the formatted values in cells A1 to C10:
This is just scratching the surface of what’s possible with GRID’s spreadsheet API and SDK. For more information, see our API documentation and see our SDK code on Github.