Skip to main content

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 FOR UPDATE on the claim row 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.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for without-durability-sqlite 0.0.7
File Size Uploaded
without_durability_sqlite-0.0.7.tar.gz 14.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for without-durability-sqlite 0.0.7
File Interpreter ABI Platform
without_durability_sqlite-0.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 30.3 kB

Release files / without_durability_sqlite-0.0.7.tar.gz

Download URL without_durability_sqlite-0.0.7.tar.gz
Size 14.4 kB
Tags Source
SHA-256 checksum
How to use checksums
47c489285ae2be7b1454e196bbae975d283fba2766306dce7e1b98635b5fcdfe
BLAKE2b-256 checksum
How to use checksums
aca42593a72f216ca0e4a0f7fda6a29a13118e5e8bb992520d42a40ca0194bfa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","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.7-py3-none-any.whl

Download URL without_durability_sqlite-0.0.7-py3-none-any.whl
Size 15.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9d9ee22849b986a952620d67ebd9b87fcdf3bc6d6475c6a9a75d6dac2ad8f4f6
BLAKE2b-256 checksum
How to use checksums
d77512e1bc313be8a1914cba4eecc366be58348498f6c0a68a39617373e4edc1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","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 history Release notifications | RSS feed

0.0.9

2 release files

0.0.8

2 release files

This release

0.0.7 This release

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page