Skip to main content

forkdb for Python

The forkdb SQLite extension, prebuilt, plus a few lines of Python to load it. Unstable first release (0.1.0): everything may change (see docs/STABILITY.md in the repository).

pip install forkdb
import forkdb
host = forkdb.connect()                       # sqlite3.connect(':memory:', uri=True) with the extension loaded
host.execute('select forkdb_init(?)', ('/tmp/s.fk',))
main = forkdb.open_branch(host, '/tmp/s.fk')   # the branch 'main'
host.execute("select forkdb_fork(?, 'main', 'a')", ('/tmp/s.fk',))
a = forkdb.open_branch(host, '/tmp/s.fk', 'a')

Wheels exist for Linux x86_64 (manylinux_2_28), macOS arm64 and Windows x86_64, and carry no dependency on the Python version. The macOS wheel has been tested only in CI, on GitHub's macOS runner, not on a Mac by hand. Elsewhere, build the extension from the repository and point FORKDB_EXTENSION_PATH at it. Your Python's sqlite3 must support loading extensions (Connection.enable_load_extension); forkdb.load says so if it does not. The SQLite behind it must be 3.24 or later.

Metadata

Release files for forkdb 0.1.0

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

Built distributions (wheels)

Table of built distributions (wheels) for forkdb 0.1.0
File Interpreter ABI Platform
forkdb-0.1.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
forkdb-0.1.0-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details
forkdb-0.1.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details

Total release size: 162.5 kB

Release files / forkdb-0.1.0-py3-none-win_amd64.whl

Download URL forkdb-0.1.0-py3-none-win_amd64.whl
Size 56.3 kB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
296007e785318351d527814dacaa871ad00ab9fbbb5d961694933952ca8c3790
BLAKE2b-256 checksum
How to use checksums
9917e5cd774dfaf5cef0f9a7269ffa3ba65a42c77ab23f72fc71e2f13f1a0e36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Release files / forkdb-0.1.0-py3-none-manylinux_2_28_x86_64.whl

Download URL forkdb-0.1.0-py3-none-manylinux_2_28_x86_64.whl
Size 56.8 kB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
ce0fb338d6686d99edcaeaed70383fc0537b6c7e7e8d0d686562d6c2d8b325a2
BLAKE2b-256 checksum
How to use checksums
3fed33c61c32e6da3a7c20681a33aa1b63d4f5ed6708d455265394e4426ab330
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Release files / forkdb-0.1.0-py3-none-macosx_11_0_arm64.whl

Download URL forkdb-0.1.0-py3-none-macosx_11_0_arm64.whl
Size 49.4 kB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
64a0d177eecf2efe0c506647437a3b5d330d80a134aa757f8c7cd834b21dc3cc
BLAKE2b-256 checksum
How to use checksums
6c254a165d519091ca84582a84e719c7e4ee0887c4716234c82b0a9556346cad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Release history Release notifications | RSS feed

This release

0.1.0 This release

3 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