shillelagh-gristapi
A Shillelagh adapter that exposes the Grist REST API as SQL-queryable virtual tables via SQLite/SQLAlchemy.
Features
- Query Grist documents, tables, and records with SQL
- Filter pushdown for
=andINconditions; server-sideORDER BYandLIMIT - Discovery queries: list organizations, workspaces, documents, and tables via
grist://URIs - Column metadata introspection via
grist://<doc_id>/<table_id>/__columns__ - Built-in TTL caching (SQLite or in-memory) to reduce API calls
- Enforces Grist access rules — your API key permissions apply automatically
- Works with Apache Superset, the
shillelaghCLI, and any SQLAlchemy-compatible tool
Installation
pip install shillelagh-gristapi
For the interactive CLI:
pip install 'shillelagh[console]'
For source installation, see docs/getting-started.md.
Quickstart
from shillelagh.backends.apsw.db import connect
import os
conn = connect(
":memory:",
adapter_kwargs={"gristapi": {"grist_cfg": {
"server": os.environ["GRIST_SERVER"],
"org_id": int(os.environ["GRIST_ORG_ID"]),
"api_key": os.environ["GRIST_API_KEY"],
}}},
)
cursor = conn.cursor()
rows = cursor.execute('SELECT * FROM "grist://<DOC_ID>/<TABLE_ID>" LIMIT 10').fetchall()
Documentation
| Document | Description |
|---|---|
| docs/getting-started.md | Prerequisites, install, step-by-step first queries |
| docs/uri-reference.md | All grist:// URI patterns and their column schemas |
| docs/configuration.md | CLI, Python, and Superset configuration reference |
| docs/type-mapping.md | Grist column types to SQL/Shillelagh field mapping |
| docs/superset.md | Apache Superset integration guide |
| docs/limitations.md | Known restrictions and performance notes |
License
MIT — see LICENSE.
Metadata
Release files for shillelagh-gristapi 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| shillelagh_gristapi-0.2.1.tar.gz | 25.3 kB | With provenance | Details for shillelagh_gristapi-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| shillelagh_gristapi-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for shillelagh_gristapi-0.2.1-py3-none-any.whl |
Total release size: 44.6 kB
Release files / shillelagh_gristapi-0.2.1.tar.gz
| Download URL | shillelagh_gristapi-0.2.1.tar.gz |
|---|---|
| Size | 25.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e813511009ab177ced9705bc42dbabe00b38d1eca95b68ef99e5ee7418cdc5ad
|
|
BLAKE2b-256 checksum How to use checksums |
ce1d3ad3df85995427e4c2751b1596396594dadece2211165719f63d2196624d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 8, 2026.
Transparency logRelease files / shillelagh_gristapi-0.2.1-py3-none-any.whl
| Download URL | shillelagh_gristapi-0.2.1-py3-none-any.whl |
|---|---|
| Size | 19.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
91b2771e26fd71894017305424155e0bf3051071fdd3861b42bc7fdbe0e2a8f1
|
|
BLAKE2b-256 checksum How to use checksums |
d0b7b568977d2955b71f4d5927f370fc1f753f1399f4db2ac04dde4cfe4bacbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 8, 2026.
Transparency logSecurity for shillelagh-gristapi 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for shillelagh_gristapi-0.2.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 8, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.