Skip to main content

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 (3.9+) process (ideal for single-process asyncio / FastAPI services, workers, CLI tools, and scripts; not shared across multiple gunicorn worker processes).
  • Prebuilt wheels included: ships cp39-abi3 wheels for Linux (manylinux_2_28 x86_64, aarch64) and macOS (arm64, x86_64)—no Rust toolchain required.
  • Zero Python callbacks under the writer lock: rules run natively in Rust ([commands.rule] / presets) or sandboxed Wasm.
  • GIL-free I/O and true asyncio group commit: synchronous db.call() releases the GIL while waiting for fsync; 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(), and db.find() read straight from dimeDB's Copy-on-Write B-tree.

Install

pip install dimedb
# or
uv add dimedb

Quick Start

import asyncio
import secrets
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,  # or schema_path="dimedb.toml"
        retry_window_ms=600_000,
        lookup_window_ms=3_600_000,
    ) as db:
        # dimeDB has no auto-increment: your app generates or supplies each row's primary key.
        # The `ledger` preset uses `u64` keys (custom tables also support `String` / `u128`).
        account_id = secrets.randbits(63)

        await db.call_async("CreateAccount", uuidv7(), {"account": account_id, "balance": 100})
        res = await db.call_async("Debit", uuidv7(), {"account": account_id, "amount": 30})
        # {"outcome": "done", "reply": {"kind": "Balance", "balance": 70}}

        acct = db.get("accounts", account_id)
        # {"balance": 70, "credited": 100, "debited": 30}

asyncio.run(main())

Full API, schema syntax, and other language bindings: docs/bindings.md and docs/schema-and-wasm.md.

Build from Source

cd bindings/python
uv venv
uv pip install maturin pytest
uv run maturin develop --release
uv run pytest

Metadata

Release files for dimedb 0.5.2

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 dimedb 0.5.2
File Actions
dimedb-0.5.2-cp39-abi3-manylinux_2_28_x86_64.whl CPython 3.9 abi3 Linux glibc 2.28+ x86-64 Details for dimedb-0.5.2-cp39-abi3-manylinux_2_28_x86_64.whl
dimedb-0.5.2-cp39-abi3-manylinux_2_28_aarch64.whl CPython 3.9 abi3 Linux glibc 2.28+ ARM64 Details for dimedb-0.5.2-cp39-abi3-manylinux_2_28_aarch64.whl
dimedb-0.5.2-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details for dimedb-0.5.2-cp39-abi3-macosx_11_0_arm64.whl
dimedb-0.5.2-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details for dimedb-0.5.2-cp39-abi3-macosx_10_12_x86_64.whl

Total release size: 17.1 MB

Release files / dimedb-0.5.2-cp39-abi3-manylinux_2_28_x86_64.whl

Download URL dimedb-0.5.2-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
5590ace9df31b22f14784bfa69610fdd79fae4031e765fbe03ddeb51d92e7b0f
BLAKE2b-256 checksum
How to use checksums
ba54cb2ead357a9fe9aee1fa6060ea94fa03017d5e0c9a10d3d0c5027da6b42b
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 Dec 1, 2026.

Transparency log

Release files / dimedb-0.5.2-cp39-abi3-manylinux_2_28_aarch64.whl

Download URL dimedb-0.5.2-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
4da4e836a98ea426e5b59be5e8bd6973c8cf5e50df4c3794d8c96afd9a8cd938
BLAKE2b-256 checksum
How to use checksums
4a6394bca0410560d06e798dea8169af491f9315d3237ee4d70b7f20d776577f
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 Dec 1, 2026.

Transparency log

Release files / dimedb-0.5.2-cp39-abi3-macosx_11_0_arm64.whl

Download URL dimedb-0.5.2-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
75cdaada67a58e4964d2c4f912e464cbf378c82df9fe930f732cbf0eafc9e45a
BLAKE2b-256 checksum
How to use checksums
83686e0a87b2e8e2166dc166cbe8dc3740a31e3dc8903a01dada3c1e4e788a14
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 Dec 1, 2026.

Transparency log

Release files / dimedb-0.5.2-cp39-abi3-macosx_10_12_x86_64.whl

Download URL dimedb-0.5.2-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
847a5517bc049ca275ea8a3f2eac08322f434699f0506096bdf5522db880a12e
BLAKE2b-256 checksum
How to use checksums
504a900886c36384b410aa75fb728fc69f54a5ffbabcb22acfded17ab3e195a7
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 Dec 1, 2026.

Transparency log

Security for dimedb 0.5.2

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.

Select from 4 files

Attestation for dimedb-0.5.2-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 Dec 1, 2026.

Transparency log

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.

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