Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

BriskDB for Python

This package runs BriskDB's sharded SQLite engine in the Python process. It starts no listener, subprocess, signal handler, or global logger.

Tagged releases publish compiler-free wheels for CPython 3.9–3.14 on supported macOS and Linux targets:

python -m pip install --only-binary=:all: briskdb

To build the current checkout from source, use Python 3.9+ and Rust 1.85+:

python -m pip install ./python
import briskdb

db = briskdb.open("./data", shards=4)
session = db.session(routing_key="account-1")
session.migrate("CREATE TABLE notes (id INTEGER PRIMARY KEY, body TEXT NOT NULL)")
session.execute("INSERT INTO notes VALUES (?1, ?2)", [1, "hello"])
print(session.query("SELECT body FROM notes WHERE id = ?1", [1]))
session.close()
db.close()

Resource limits can be validated before the database opens:

config = briskdb.Config(shards=4, max_result_rows=5_000)
db = briskdb.open("./data", config=config)

Database and session handles own their native resources, close() is idempotent, and blocking engine work releases Python's GIL. Dropping live handles during interpreter shutdown is also safe.

Synchronous handles support with; the asyncio facade keeps engine work off the event loop and propagates task cancellation into Rust:

async with await briskdb.open_async("./data", shards=4) as db:
    async with await db.session(routing_key="account-1") as session:
        rows = await session.query("SELECT body FROM notes WHERE id = ?1", [1])

See sync and asyncio usage for cursors, deadlines, cancellation, thread/task safety, and the intentionally unclaimed DB-API transaction surface. The API reference, platform matrix, and serverless-shaped warm-handler example define the supported package surface and its current boundaries.

This is an alpha API. SQL supports None, bool, bounded integers, float, str, bytes-like values, and exact decimal.Decimal conversion with explicit errors when SQLite cannot store a value losslessly. See the executable value and exception contract for boundaries and the stable BriskDBError hierarchy.

Native Mongo/document commands are not claimed until BriskDB's document engine lands. The extension uses only the listener-free embedded Rust feature.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

briskdb-0.1.0a4.tar.gz (886.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

briskdb-0.1.0a4-cp39-abi3-manylinux_2_28_x86_64.whl (5.7 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.28+ x86-64

briskdb-0.1.0a4-cp39-abi3-manylinux_2_28_aarch64.whl (5.3 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.28+ ARM64

briskdb-0.1.0a4-cp39-abi3-macosx_11_0_x86_64.whl (5.4 MB view details)

Uploaded CPython 3.9+macOS 11.0+ x86-64

briskdb-0.1.0a4-cp39-abi3-macosx_11_0_arm64.whl (5.1 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

File details

Details for the file briskdb-0.1.0a4.tar.gz.

File metadata

  • Download URL: briskdb-0.1.0a4.tar.gz
  • Upload date:
  • Size: 886.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for briskdb-0.1.0a4.tar.gz
Algorithm Hash digest
SHA256 7c5e987269712c0027876861b5e75171f53a4b9f6f27bdbfb7f90d77ea00403f
MD5 abefb50b80f8e482d2219e1b57863cfd
BLAKE2b-256 a5840aec2dde940eeed45531a345ae004ece9c7cf698848c5093f469b12057d0

See more details on using hashes here.

File details

Details for the file briskdb-0.1.0a4-cp39-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for briskdb-0.1.0a4-cp39-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ad7db5e365106729a68ddf8ec63fe61b7d7324c77973d7241fa88eb508b9b67d
MD5 093fd6d44f64abbcd1b23bcb6b435467
BLAKE2b-256 fdcfb907519f504daf6e4690af87a280fc004f806bc711a316bf2eda65071278

See more details on using hashes here.

File details

Details for the file briskdb-0.1.0a4-cp39-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for briskdb-0.1.0a4-cp39-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 dda8fb2f31c72019e4f3573952e35488908f3332c46c609b36e8507a8e1b56cd
MD5 c7b495b2e9c587d550778d4fa4256e13
BLAKE2b-256 f0c54df0604520e87e835ae0a426181030f36698f7606403f45fa866d7c754b4

See more details on using hashes here.

File details

Details for the file briskdb-0.1.0a4-cp39-abi3-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for briskdb-0.1.0a4-cp39-abi3-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 9bcfafb892882e7f163b9406606fcbe8a625862c1547429958868e693c8fb373
MD5 142eca3c8b4648e7dd065ace0980b519
BLAKE2b-256 fb85252f3295a904e2e1f523849b4d63a55038741eecbec0e6311981dd994aaa

See more details on using hashes here.

File details

Details for the file briskdb-0.1.0a4-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for briskdb-0.1.0a4-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1a7bace5d5996a1c8e021fd4e83c88cc88c67680541274241b787863fac6806f
MD5 a0c821deb828d9dd9d2070fda2e3a723
BLAKE2b-256 b04a89e3a7a57e00c45f2f7c7639491ad37ec72f44d502303040e3dbec820925

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page