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 0.1.1

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

Built distribution (wheel)

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

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

Download URL nio_db_py-0.1.1-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dae1cb4b3d5c925a1992df3ac5fc34ba75465a48726b1558075494fd92c94ed1
BLAKE2b-256 checksum
How to use checksums
37d8da100b0d0cb84f0a3bd1987f7c090900cc7d67f5d5a00fc18a16368442b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for nio-db-py 0.1.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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