Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Grist <https://www.getgrist.com/>
_ is a relational spreadsheet with tons of
batteries included. The Grist API <https://support.getgrist.com/api>
_
allows you to programmatically retrieve/update your data stored on Grist,
and manipulate most of the basic Grist objects, such as workspaces, documents,
user permissions and so on.
Pygrister is a Grist client that covers all the documented APIs. Pygrister keeps track of basic configuration for you, remembering your team site, workspace, working document, so that you don't have to type in the boring stuff every time. Apart from this and little else, Pygrister is rather low-level: it will call the api and retrieve the response, with only minor changes. If the api call is malformed, you will simply receive a bad HTTP status code.
Basic usage goes as follows::
from pygrister.api import GristApi
grist = GristApi()
# list users/permissions for the current document
status_code, response = grist.list_doc_users()
# fetch all rows in a table
status_code, response = grist.list_records('Table1')
# add a column to a table
cols = [{'id': 'age', 'fields': {'label':'age', 'type': 'Int'}}]
status_code, response = grist.add_cols('Table1', cols)
You should read the docs first <https://pygrister.readthedocs.io>
_,
and then take a look at the test suite for more usage examples.
Right now, Pygrister is in beta stage, meaning that the overall interface should be fairly stable but I still make no promises about further changes.
You can install Pygrister from PyPI::
python -m pip install pygrister
Any feedback and contribution is very welcome at this stage!
Pygrister is released under the MIT license (see LICENSE.rst
).
Copyright 2024 Riccardo Polignieri
FAQs
A Python client for the Grist API.
We found that Pygrister demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.