Skip to main content

TapirusDB Python SDK (tapirus)

Official Python client for TapirusDB — the 100% Safe-Rust Embedded Quad-Model Database & AI Agent Memory Engine.


⚡ Installation

Install from source or local checkout:

pip install .

Or build wheels for PyPI distribution:

python -m build
twine upload dist/*

🚀 Quickstart

import tapirus

# 1. Connect to an encrypted single-file database
db = tapirus.connect("agent_memory.tapir", passphrase="super-secret-key")

# 2. Relational SQL & Transactions
db.execute("""
    CREATE TABLE documents (
        id INTEGER PRIMARY KEY,
        title TEXT,
        category TEXT,
        embedding VECTOR(3)
    );
""")

db.execute("""
    INSERT INTO documents VALUES 
    (1, 'Autonomous Drone Navigation', 'robotics', [0.99, 0.02, 0.01]),
    (2, 'Soil Moisture Sensor Mesh', 'iot', [0.12, 0.95, 0.05]);
""")

# 3. Query
rows = db.query("SELECT id, title, category FROM documents WHERE category = 'robotics';")
for row in rows:
    print(row)

# 4. In-Memory Mode
mem_db = tapirus.connect(":memory:")
mem_db.execute("CREATE TABLE kv (k TEXT PRIMARY KEY, v TEXT);")

🛡️ Architecture & Safety

  • Single-File .tapir Container: Unified relational SQL, document JSON, HNSW vectors, and openCypher knowledge graphs in one file.
  • Hardware AES-256 GCM: ChaCha20-Poly1305 AEAD with PBKDF2/SHA-256 salt verification.
  • Zero Cloud Latency: Runs entirely in-process (0.55 µs pointer dereference) without external server daemons.

Release files for tapirus 1.0.0

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

Source distribution (sdist)

Source distribution for tapirus 1.0.0
File Size Uploaded
tapirus-1.0.0.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tapirus 1.0.0
File Interpreter ABI Platform
tapirus-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.3 kB

Release files / tapirus-1.0.0.tar.gz

Download URL tapirus-1.0.0.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2fca40e14b7870fa8dec9bcc7a52ea43bf0b38b48e677916d7185d923384658f
BLAKE2b-256 checksum
How to use checksums
959a619388a5a8e38afafa3b184ab2608f95600235bf284dffff2911d635a82d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / tapirus-1.0.0-py3-none-any.whl

Download URL tapirus-1.0.0-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d915b40c9e9832b208629e75b70b5c13cabd786a2e5d752b7b007b940bb7208f
BLAKE2b-256 checksum
How to use checksums
5a5874906c32b69b9216219a3deb4f1f8ff128b70148842b689dcde41245895e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

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