without-durability-sqlite
without-durability's two
interfaces over one SQLite file. No server, and no third-party dependency: the driver is in
the standard library.
from without_durability_sqlite import SqliteCheckpointer, SqliteDurable, SqliteScheduler, connect, migrate
database = connect("workflows.db")
await migrate(database)
durable = SqliteDurable(SqliteCheckpointer(database), SqliteScheduler(database))
...
await database.aclose()
It is the smallest thing that still meets every requirement the interface states, which is the clearest way to say what the interface is for: a durable workflow does not need a cluster, a database server, or a dependency.
Two questions the other stores have to answer carefully settle themselves here.
There is one writer at a time by construction, so BEGIN IMMEDIATE takes the
write lock for the whole transaction and the fence check and the write it guards
cannot be interleaved: Postgres needs a row lock on the claim to get that and
Redis needs a Lua script, while here the transaction is the exclusion. And
there is nothing to co-locate, because the datastore is a file, so transact,
arrive, and deliver reach every table an application keeps in it. That last one is the same
guarantee DBOS gets from Postgres, for an application that never needed Postgres.
What it costs is the shape of the whole thing: one machine. Every process sharing this store shares a filesystem, so the exclusion holds across the processes on one box and not across a fleet. That is the deployment this is for rather than a defect to apologise for: a CLI that resumes, a desktop app, an agent on a laptop, a single node that would rather not run Postgres to remember what it was doing.
See the
without-durability-sqlite guide
(with the API reference)
for the statements, why connect pays the fsync that the usual WAL advice trades
away, why an effect here is a synchronous callback where the Postgres store's is
async, how the blocking driver is kept off the event loop, and why closing goes
through aclose rather than the connection.
Metadata
Release files for without-durability-sqlite 0.0.10
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 |
|---|---|---|---|---|
| without_durability_sqlite-0.0.10.tar.gz | 17.6 kB | Without provenance | Details for without_durability_sqlite-0.0.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| without_durability_sqlite-0.0.10-py3-none-any.whl | Python 3 | none | any | Details for without_durability_sqlite-0.0.10-py3-none-any.whl |
Total release size: 36.7 kB
Release files / without_durability_sqlite-0.0.10.tar.gz
| Download URL | without_durability_sqlite-0.0.10.tar.gz |
|---|---|
| Size | 17.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
87ebeb9c3da0f2b096dda63d9f841d0f66ffe965b6d50a838fae0addb64aae10
|
|
BLAKE2b-256 checksum How to use checksums |
063ea9869cb497f08bb02daa0455d2a0956384e8966f5ac8203cfba080bad617
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / without_durability_sqlite-0.0.10-py3-none-any.whl
| Download URL | without_durability_sqlite-0.0.10-py3-none-any.whl |
|---|---|
| Size | 19.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d821d4e3c73258141336702720a3029b42b3942167db4b1ae67abfe2f6b5dfed
|
|
BLAKE2b-256 checksum How to use checksums |
1200f8fa4365fc4539020901596bfb0a2c0cb942e3b0dfa250cb6f010053447e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for without-durability-sqlite 0.0.10
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.