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 process (ideal for single-process asyncio / FastAPI services, workers, CLI tools, and scripts; not shared across multiple gunicorn worker 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 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.

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

Total release size: 17.0 MB

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

Download URL dimedb-0.5.0-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
4a0547040591b29a379bc8cb3906dcdf07a0fde3a930e0f09c79b7e4407a167d
BLAKE2b-256 checksum
How to use checksums
4b9239b199c8465250c45e1867bda8c3f1aef04f7c510cf558c2f642a1b8a50a
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 log

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

Download URL dimedb-0.5.0-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
4f6a53c30910e6798ac20f9193742257d554bd8a4b39a3ad75edcf631ffbdb02
BLAKE2b-256 checksum
How to use checksums
0088d9467b1d7f52cd56432a5bd0cb68204e011a4e569ec6b0ec24a3bb5d168c
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 log

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

Download URL dimedb-0.5.0-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
ad56e9e8d87a3bfb30b3084d8a9057f374c3e1d9d5d031ecab7d76614c39ea3e
BLAKE2b-256 checksum
How to use checksums
078818e0a83cda1b21f978780a8b8bae1e36c6b43a3087aea60d38ce4b79e8cc
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 log

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

Download URL dimedb-0.5.0-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
19a3ac474e5a5344ae6b8e59e65a3bed29d1070b5a6eba0754b897d57a65f1bd
BLAKE2b-256 checksum
How to use checksums
4f134720b34d559142dca338627c972319d7c4dd55381726dbe10bc903d3e453
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 log

Security for dimedb 0.5.0

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.0-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 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