Skip to content

Install

NamiDB ships in four flavours, all driven by the same Rust core.

Python

Pre-built wheels (abi3) for Python ≥ 3.9 on Linux (x86_64 + aarch64), macOS (arm64), and Windows (x86_64). Intel macOS falls back to sdist.

Terminal window
pip install namidb # core
pip install 'namidb[pandas]' # + DataFrame interop
pip install 'namidb[polars]' # + Polars interop

pyarrow >= 14 is a hard transitive dependency.

From source

Terminal window
pip install maturin
git clone https://github.com/namidb/namidb.git
cd namidb/crates/namidb-py
maturin develop --release --extras test

→ Full Python SDK reference

Rust (embedded)

Add the umbrella crate to your Cargo.toml:

[dependencies]
namidb = "0.3"
tokio = { version = "1", features = ["full"] }

MSRV is Rust 1.85. The workspace exposes a stable facade crate so downstream code only needs one line.

→ Full Rust SDK reference

CLI

From source (one-shot install):

Terminal window
git clone https://github.com/namidb/namidb.git
cd namidb
cargo install --path crates/namidb-cli
Terminal window
namidb run "CREATE (a:Person {name: 'Alice'})"
namidb run --store s3://my-bucket?ns=prod \
"MATCH (p:Person) RETURN count(*) AS n"
namidb explain --verbose \
"MATCH (a:Person)-[:KNOWS]->(b) RETURN b ORDER BY b.id LIMIT 20"

→ Full CLI reference

HTTP server (namidb-server)

Terminal window
cargo install --path crates/namidb-server

Run it:

Terminal window
namidb-server \
--store 's3://my-bucket?ns=prod&region=us-east-1' \
--listen 0.0.0.0:8080 \
--auth-token "$NAMIDB_AUTH_TOKEN" \
--flush-interval 30s

Every flag is also an env var: NAMIDB_STORE, NAMIDB_LISTEN, NAMIDB_AUTH_TOKEN, NAMIDB_FLUSH_INTERVAL.

→ Full HTTP API reference · → Self-host with Docker Compose

Verify the install

import namidb as tg
client = tg.Client("memory://test")
print(client.cypher("RETURN 1 AS n").rows())
# [{'n': 1}]

Supported platforms

SurfaceLinux x86_64Linux aarch64macOS arm64macOS x86_64Windows x86_64
Python wheelsdist
Rust crate
namidb-server binary
Docker image✅ (multi-arch)✅ (multi-arch)