Skip to main content
NopalDB logo

NopalDB 🌵

PyPI Python PyPI downloads CI License

High-performance embedded graph database for Python, written in Rust: ACID transactions, MVCC time-travel, a Cypher-like query language (NQL), vector search, and zero-copy Apache Arrow export for ML pipelines.

Runs in-process — no server to deploy. One pip install, one file on disk.

Install

pip install nopaldb

Prebuilt wheels for Linux (x86_64/aarch64), macOS (Intel/Apple Silicon) and Windows, for CPython 3.10+ (abi3: one wheel per platform covers all versions).

What the wheel contains

The wheels use redb, the only storage engine since 0.8.0, with every optional tier compiled in (reasoner, OWL import, SHACL, embeddings + HNSW, full-text, algorithms, analytics). Graph.open(...) creates or opens a redb database.

Databases created with 0.5.x (sled engine). sled was removed in 0.8.0. Opening such a database raises an error that says so. Migrate it once with 0.7, the last version that reads sled, then open the copy with 0.8+:

pip install "nopaldb==0.7.*"
python -c "import nopaldb; print(nopaldb.Graph.migrate('old.db', 'new.db')['verified'])"
pip install -U nopaldb

Quickstart

import nopaldb

graph = nopaldb.Graph.open("./data.db")

# ACID transactions
tx = graph.begin_transaction()
alice = tx.add_node("Person", {"name": "Alice", "age": 30})
bob = tx.add_node("Person", {"name": "Bob", "age": 25})
tx.add_edge(alice, bob, "KNOWS")
tx.commit()

# Query with NQL
result = graph.execute_nql("""
    find p.name, p.age
    from (p:Person)
    where p.age > 25
""")
for row in result:
    print(f"{row['p.name']}: {row['p.age']}")

graph.close()

Isolation levels

tx = graph.begin_transaction(isolation="serializable")
# read_committed (default) | repeatable_read | serializable | read_uncommitted

Serializable transactions detect write conflicts and deadlocks; see the durability guarantees and isolation guide.

Arrow / ML pipelines

import pyarrow as pa

arrow_bytes = graph.to_arrow(label="Person")
batch = pa.ipc.open_stream(arrow_bytes).read_next_batch()
df = batch.to_pandas()   # zero-copy into Pandas / Polars / PyTorch pipelines

Good to know

  • One process per data directory (embedded file lock). Threads within the process run in parallel — the bindings release the GIL during database calls.
  • Use graph.bulk_loader(batch_size) for large ingestions.
  • Time-travel: MVCC version history is queryable; old versions are garbage collected on demand.

License: MPL-2.0 (the nopaldb library — this repository in its entirety). The companion ecosystem apps (MCP server, NDBStudio) are AGPL-3.0-only and live in their own repositories: https://github.com/Anxious-Mind-Group/nopaldb-mcp · https://github.com/Anxious-Mind-Group/ndbstudio. Releases ≤ 0.4.31 were AGPL-3.0-only. NopalDB™ is a trademark of Sergio Haro Pérez.

Metadata

Release files for nopaldb 0.9.3

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

Source distribution (sdist)

Source distribution for nopaldb 0.9.3
File Size Uploaded Provenance Actions
nopaldb-0.9.3.tar.gz 882.2 kB With provenance Details for nopaldb-0.9.3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for nopaldb 0.9.3
File Actions
nopaldb-0.9.3-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for nopaldb-0.9.3-cp310-abi3-win_amd64.whl
nopaldb-0.9.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for nopaldb-0.9.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
nopaldb-0.9.3-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for nopaldb-0.9.3-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
nopaldb-0.9.3-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for nopaldb-0.9.3-cp310-abi3-macosx_11_0_arm64.whl
nopaldb-0.9.3-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for nopaldb-0.9.3-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 23.6 MB

Release files / nopaldb-0.9.3.tar.gz

Download URL nopaldb-0.9.3.tar.gz
Size 882.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f0f1002888ff0e89381ff51d278f665f468f99e90f9c283a7cc9769e859a5d7b
BLAKE2b-256 checksum
How to use checksums
814f7e28305f2794db90e95eb49d21f8d98b55486df25ae8cf81ff2486813a16
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 Oct 26, 2026.

Transparency log

Release files / nopaldb-0.9.3-cp310-abi3-win_amd64.whl

Download URL nopaldb-0.9.3-cp310-abi3-win_amd64.whl
Size 4.4 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
011f541c07b522f5555f8e1c1961671d3e7f36310623090bbd625f2e5a6b08bc
BLAKE2b-256 checksum
How to use checksums
0dbfd2ac1ec70f7996a3acd54ee233000aa26cb6a56b2dc710a1d3111caaed79
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 Oct 26, 2026.

Transparency log

Release files / nopaldb-0.9.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL nopaldb-0.9.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 4.9 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
cfb1bc29cd1b84b619446251204eeab6ddb5f0815a4e780ed3c8bd941ea1a476
BLAKE2b-256 checksum
How to use checksums
f5365e94237f89229c6734b4ff21ca124bd17186d49c2ce41ff22abb62083947
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 Oct 26, 2026.

Transparency log

Release files / nopaldb-0.9.3-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL nopaldb-0.9.3-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 4.6 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
af65a0b46db00fb8aed66b5c54510ac85b60e07e529d2df91beebe27d061dcb4
BLAKE2b-256 checksum
How to use checksums
67eb287bfe057ff8e8249a4527c857fba9f1a2190d18f394d79b4725c7a9b167
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 Oct 26, 2026.

Transparency log

Release files / nopaldb-0.9.3-cp310-abi3-macosx_11_0_arm64.whl

Download URL nopaldb-0.9.3-cp310-abi3-macosx_11_0_arm64.whl
Size 4.2 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a23a3fe50232a312850af1143b08e0072b7d0227134e972f58237ab27f329b7b
BLAKE2b-256 checksum
How to use checksums
24375c79753c80fadbcfcc13094e078c84db822e948eea8e085e7f2b262df42b
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 Oct 26, 2026.

Transparency log

Release files / nopaldb-0.9.3-cp310-abi3-macosx_10_12_x86_64.whl

Download URL nopaldb-0.9.3-cp310-abi3-macosx_10_12_x86_64.whl
Size 4.7 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
87ff001c9cfea80f29678a26656f0e995c4c0f3ec2ed1b52b6c9bc9b68f1c376
BLAKE2b-256 checksum
How to use checksums
b7c4a2164da47c49a79fc81bfc8a9ecf64caa14ce1be4201e3dbc935a2773cd5
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 Oct 26, 2026.

Transparency log

Security for nopaldb 0.9.3

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 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for nopaldb-0.9.3.tar.gz

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 Oct 26, 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.

Release history Release notifications | RSS feed

This release

0.9.3 This release

6 release files Full provenance

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