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
.tapirContainer: 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 µspointer dereference) without external server daemons.
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tapirus-1.0.0.tar.gz | 6.4 kB | Without provenance | Details for tapirus-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tapirus-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for tapirus-1.0.0-py3-none-any.whl |
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
|
Security for tapirus 1.0.0
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.