Skip to main content

nio-db-py

Ultra-lightweight Python client SDK for NioDB — the Agentic Database.

  • Zero dependencies (uses Python standard library urllib)
  • Fast and typed
  • Compatible with Python >= 3.8

Installation

pip install nio-db-py

Quickstart

from niodb import NioDB

db = NioDB(url="http://127.0.0.1:7432", token="client-token")

# 1. Insert & Query Documents
db.collection("tasks").insert({
    "title": "Fix auth race condition",
    "status": "pending",
    "ttl": 3600  # 1 hour auto-expiry
})

records = db.collection("tasks").find(limit=10)

# 2. Pure-Rust Vector Similarity Search
results = db.collection("knowledge").search_vector(
    vector=[0.012, -0.045, 0.089, ...],
    top_k=5,
    min_score=0.75
)

# 3. Multi-Agent Sessions
session = db.session("session_104")
session.append_turn(
    agent="claude",
    model="claude-3-7-sonnet",
    summary="Refactored database pool",
    cost_usd=0.012
)

manifest = session.get_manifest()
print(manifest["manifest_text"])

# 4. Safe SQL Queries
sql_data = db.query("SELECT * FROM tasks WHERE status = 'pending'")

Metadata

Release files for nio-db-py 1.0.4

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

Source distribution (sdist)

Source distribution for nio-db-py 1.0.4
File Size Uploaded Provenance
nio_db_py-1.0.4.tar.gz 7.3 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for nio-db-py 1.0.4
File Interpreter ABI Platform
nio_db_py-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 12.8 kB

Release files / nio_db_py-1.0.4.tar.gz

Download URL nio_db_py-1.0.4.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a456b137150ba80978fa869de9c345b1a54d29c3e3ac4b2533379aca9121157c
BLAKE2b-256 checksum
How to use checksums
fd1da4f142c19e0fe1b9f3b30fe73c51d86e409f49487720820b63a94c63af11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 6, 2026.

Transparency log

Release files / nio_db_py-1.0.4-py3-none-any.whl

Download URL nio_db_py-1.0.4-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f0d657bfb7b2f489bf9a566cc78eaad423bffa75645af43f8f5a00b91b5968ab
BLAKE2b-256 checksum
How to use checksums
6ab169fa685ff46fbd0d146362144696f34000717e4a50ad87ef7c58c0c1d273
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 6, 2026.

Transparency log

Security for nio-db-py 1.0.4

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

Select from 2 files

Attestation for nio_db_py-1.0.4.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 6, 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