dimedb — Python In-Process Binding
In-process native extension for dimeDB powered by PyO3, maturin, and DynamicEngine (dimedb-wasm).
- Single-process embedded engine: runs directly inside your Python process (ideal for single-process
asyncio/ FastAPI services, workers, CLI tools, and scripts; not shared across multiplegunicornworker processes). - Zero Python callbacks under the writer lock: rules run natively in Rust (
[commands.rule]/ presets) or sandboxed Wasm. - GIL-free I/O and true
asynciogroup commit: synchronousdb.call()releases the GIL while waiting forfsync;await db.call_async()submits non-blockingly and wakes waiting coroutines on the active event loop in batches. - Lock-free in-memory reads:
db.get(),db.list(), anddb.find()read straight from dimeDB's Copy-on-Write B-tree.
Build & Test
cd bindings/python
uv venv
uv pip install maturin pytest
uv run maturin develop --release
uv run pytest
Quick Start
import asyncio
from dimedb import DimeDB, uuidv7
SCHEMA = """
[app]
name = "Ledger"
version = 1
preset = "ledger"
"""
async def main() -> None:
async with DimeDB.open(
"data/ledger",
schema_toml=SCHEMA,
retry_window_ms=600_000,
lookup_window_ms=3_600_000,
) as db:
await db.call_async("CreateAccount", uuidv7(), {"account": 7, "balance": 100})
res = await db.call_async("Debit", uuidv7(), {"account": 7, "amount": 30})
# {"outcome": "done", "reply": {"kind": "Balance", "balance": 70}}
acct = db.get("accounts", 7)
# {"balance": 70, "credited": 100, "debited": 30}
asyncio.run(main())
Metadata
Release files for dimedb 0.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| dimedb-0.5.1-cp39-abi3-manylinux_2_28_x86_64.whl | CPython 3.9 | abi3 | Linux glibc 2.28+ x86-64 | Details for dimedb-0.5.1-cp39-abi3-manylinux_2_28_x86_64.whl |
| dimedb-0.5.1-cp39-abi3-manylinux_2_28_aarch64.whl | CPython 3.9 | abi3 | Linux glibc 2.28+ ARM64 | Details for dimedb-0.5.1-cp39-abi3-manylinux_2_28_aarch64.whl |
| dimedb-0.5.1-cp39-abi3-macosx_11_0_arm64.whl | CPython 3.9 | abi3 | macOS 11.0+ ARM64 | Details for dimedb-0.5.1-cp39-abi3-macosx_11_0_arm64.whl |
| dimedb-0.5.1-cp39-abi3-macosx_10_12_x86_64.whl | CPython 3.9 | abi3 | macOS 10.12+ x86-64 | Details for dimedb-0.5.1-cp39-abi3-macosx_10_12_x86_64.whl |
Total release size: 17.0 MB
Release files / dimedb-0.5.1-cp39-abi3-manylinux_2_28_x86_64.whl
| Download URL | dimedb-0.5.1-cp39-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 4.8 MB |
| Tags | CPython 3.9 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
625fb5ef9f2a6c9c5959dd316448cd4d340f3d26e2ee7241be83be04fb67e935
|
|
BLAKE2b-256 checksum How to use checksums |
840ab52a01aacdf430c485569b84cc91074e3f44a9ffba8df4e3f3bc9edf8dda
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 30, 2026.
Transparency logRelease files / dimedb-0.5.1-cp39-abi3-manylinux_2_28_aarch64.whl
| Download URL | dimedb-0.5.1-cp39-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 4.0 MB |
| Tags | CPython 3.9 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
158a35400a3bb341f24175bec22dd8aa1f47608a214128ab6fd76081967c8afc
|
|
BLAKE2b-256 checksum How to use checksums |
eb4215373356ecc62d14a3ef995dd89a6691553e336ff1bba7db0f267664ee85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 30, 2026.
Transparency logRelease files / dimedb-0.5.1-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | dimedb-0.5.1-cp39-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 3.8 MB |
| Tags | CPython 3.9 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
22464294d4b146acc4c7912c7ae7cf74b3a9dc5d77284b431106892dd6569aba
|
|
BLAKE2b-256 checksum How to use checksums |
16c3372f39cb688c0f12b7f2c28e423e8935d8d03a45c17abe6ea80e2f3f4ded
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 30, 2026.
Transparency logRelease files / dimedb-0.5.1-cp39-abi3-macosx_10_12_x86_64.whl
| Download URL | dimedb-0.5.1-cp39-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 4.5 MB |
| Tags | CPython 3.9 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
7e216869b09643028c0c37f4063bf792268984e298e87b1800a90c55d7637ba1
|
|
BLAKE2b-256 checksum How to use checksums |
e0f1b048334f089492ed74e0a7f157fd1936ddd9ff9b59122cc3c2c806526775
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 30, 2026.
Transparency logSecurity for dimedb 0.5.1
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 4 files in this release have been uploaded with provenance metadata.
Attestation for dimedb-0.5.1-cp39-abi3-manylinux_2_28_x86_64.whl
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 Nov 30, 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.