
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
.. image:: https://img.shields.io/pypi/v/grist_api.svg :target: https://pypi.python.org/pypi/grist_api/ .. image:: https://img.shields.io/pypi/pyversions/grist_api.svg :target: https://pypi.python.org/pypi/grist_api/ .. image:: https://travis-ci.org/gristlabs/py_grist_api.svg?branch=master :target: https://travis-ci.org/gristlabs/py_grist_api .. image:: https://readthedocs.org/projects/py_grist_api/badge/?version=latest :target: https://py-grist-api.readthedocs.io/en/latest/index.html
.. Start of user-guide
The grist_api
module is a Python client library for interacting with Grist.
grist_api is available on PyPI: https://pypi.python.org/pypi/grist_api/::
pip install grist_api
The code is on GitHub: https://github.com/gristlabs/py_grist_api.
The API Reference is here: https://py-grist-api.readthedocs.io/en/latest/grist_api.html.
See tests/test_grist_api.py
for usage examples. A simple script to add
some rows to a table and then fetch all cells in the table could look like:
.. code-block:: python
from grist_api import GristDocAPI
import os
SERVER = "https://subdomain.getgrist.com" # your org goes here
DOC_ID = "9dc7e414-2761-4ef2-bc28-310e634754fb" # document id goes here
# Get api key from your Profile Settings, and run with GRIST_API_KEY=<key>
api = GristDocAPI(DOC_ID, server=SERVER)
# add some rows to a table
rows = api.add_records('Table1', [
{'food': 'eggs'},
{'food': 'beets'}
])
# fetch all the rows
data = api.fetch_table('Table1')
print(data)
Tests are in the tests/
subdirectory. To run all tests, run::
nosetests
FAQs
Python client for interacting with Grist
We found that grist-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.