glyff-sqlite
SQLite-backed durable ExecutionRepository implementation for
glyff.
This is the production backend: one row per execution in a SQLite
glyff_executions table, WAL mode, indexed lookups, and native transaction
atomicity. Execution result and metadata columns are stored as readable JSON
text, so serializers used with this backend must produce JSON text.
table_prefix (default glyff) names the two tables the store owns:
<prefix>_executions and <prefix>_meta, which records the format version so a
store written by an incompatible build is refused. Pass table_prefix= to
cohabit an application's own database; PRAGMA user_version is left to the
application.
Install
pip install glyff-sqlite
This package depends on glyff>=0.14.0 (no additional runtime dependencies —
sqlite3 is part of the standard library).
Usage
from glyff_sqlite import SQLiteBackend
backend = SQLiteBackend("executions.sqlite3")
Public API
| Name | Description |
|---|---|
SQLiteBackend |
Bundle exposing the store's collaborators. |
SQLiteExecutionRepository |
Durable repository backed by local SQLite. |
SQLiteTransactionProvider |
Transaction provider for the SQLite backend. |
The underlying SQLiteClient is internal and not part of the public API.
Storage model
- One row per execution;
arguments,resultandmetadataare JSON text columns, readable in place with any SQLite client. argumentsholds the canonical arguments verbatim — the row's key is their digest, so the column is stored and returned byte-for-byte rather than re-encoded.- Records are keyed by
(session_id, path); a<prefix>_session_domainsrow carries the version one session claimed for one domain, and a single<prefix>_metarow the store's format version. - Per-execution metadata (see the
glyff README) commits atomically with the
execution's
COMPLETEDstatus and result, and is removed with the execution's row when the record is deleted.
Transaction model
- Enumeration streams the range scan a batch of rows at a time, so a sweep over a large table costs bounded memory.
- Writes are staged in-memory per transaction and flushed on commit.
- Nested transactions (child scopes) commit independently of their parent.
BEGIN IMMEDIATEprevents writer contention; WAL mode keeps reads fast. A session's version for a domain is claimed inside one, so workers racing to resume the same session agree on a single winner.- A per-database asyncio write lock serialises concurrent write transactions.
Planned
- Store migrations — nothing yet converts a store from one format version to the next (#41).
- External transaction enlistment — running inside an application's own connection (#42).
Status
Pre-1.0 — the API is unstable and will change.
License
MIT
Metadata
Release files for glyff-sqlite 0.16.0
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 |
|---|---|---|---|---|
| glyff_sqlite-0.16.0.tar.gz | 16.6 kB | With provenance | Details for glyff_sqlite-0.16.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| glyff_sqlite-0.16.0-py3-none-any.whl | Python 3 | none | any | Details for glyff_sqlite-0.16.0-py3-none-any.whl |
Total release size: 30.1 kB
Release files / glyff_sqlite-0.16.0.tar.gz
| Download URL | glyff_sqlite-0.16.0.tar.gz |
|---|---|
| Size | 16.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bc0c291cb9f8480ba4e3e1ae2539c35173cdd9662d287c8fb91d9cc61d7b2079
|
|
BLAKE2b-256 checksum How to use checksums |
db4fc608313099d1562466b6c3407d9be17aae777d185d73c2fe78924ec26f31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 15, 2026.
Transparency logRelease files / glyff_sqlite-0.16.0-py3-none-any.whl
| Download URL | glyff_sqlite-0.16.0-py3-none-any.whl |
|---|---|
| Size | 13.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5f74f8f05638dcfa468d17aeaa4d384ca082454d604ab8962a7886bf19780c95
|
|
BLAKE2b-256 checksum How to use checksums |
7f3272c3087b8e988ce392bf0df61354ed3a061b95c1d52e35ccfe072905ab37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 15, 2026.
Transparency logSecurity for glyff-sqlite 0.16.0
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for glyff_sqlite-0.16.0.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 Aug 15, 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.