TapirusDB native Python SDK
Python 3.10+ binding to the Rust engine through PyO3. This package opens actual .tapir files; it does not require a daemon. python/ is a separate legacy ctypes integration and does not define this package's API.
import tapirus
with tapirus.connect("agent.tapir") as db:
db.execute("CREATE TABLE notes (id INTEGER PRIMARY KEY, body TEXT)")
db.execute("INSERT INTO notes VALUES (?, ?)", [1, "Don't interpolate SQL"])
print(db.query("SELECT * FROM notes WHERE id = ?", [1]))
source = db.store_memory({
"content": "The delivery arrives on Tuesday",
"embedding": [1.0, 0.0], # supply your model's actual embedding
"namespace": "support",
"session_id": "case-7",
"tags": ["source:delivery-policy"],
})
print(db.search_memories({"embedding": [1.0, 0.0], "namespace": "support"}))
execute/query accept a list or tuple of bound parameters: None, bool, signed 64-bit integer, finite float, string, bytes or a finite vector list. Results are lists of dictionaries; integers retain precision and blobs return bytes. Literal question marks inside SQL strings are preserved.
store_memory, search_memories and forget_memory use the core AI memory contract. Results include source content/IDs and separate lexical, semantic and recency scores. Applications supply embeddings from a consistent model. These calls do not invoke a model or a network service. Namespace/session filters are application filters, not authorization boundaries. TAP classification/verification scores are heuristics, not calibrated probabilities or safety guarantees.
execute("BEGIN"), COMMIT, ROLLBACK and savepoints apply to SQL and AI memory together. The context manager closes the database on exit; it does not automatically commit an explicit transaction. close() is idempotent. It invalidates retained collection handles and releases the native connection. Connection and collection objects must stay on their creating Python thread; this module requires the GIL.
Pass a second argument to connect(path, passphrase) to open an encrypted native database. Browser snapshots currently use unencrypted files.
Build and validate the wheel
The wheel also installs tapirus-migrate, tapirus-agent and tapirus-eval.
See AI and embedded workflows for source
upsert/batch/TTL/model contracts, sessions, SQLite migration, a runnable agent,
and the optional verified local multilingual E5 ONNX backend. The ONNX runtime,
tokenizer and NumPy dependencies are optional; install the onnx extra or its
declared dependencies when using --backend onnx.
python -m pip install 'maturin>=1.16,<2'
maturin build --manifest-path sdks/python/Cargo.toml --locked --out target/python-wheels
python scripts/test-python-sdk.py --wheel target/python-wheels
maturin sdist --manifest-path sdks/python/Cargo.toml --out target/python-sdist
python scripts/normalize-python-sdist.py --sdist target/python-sdist --check
The consumer check installs the wheel offline into a fresh directory, writes in a subprocess, then reopens in a second process. It checks parameters, large integers, blobs, vectors, AI filters/rollback, collections, close and encrypted reopen. Local evidence covers Windows/Python 3.12; CI defines additional host/interpreter checks. Registry publication is a separate release step.
The source-package step prunes lock entries for workspace crates excluded by Maturin. It rejects registry version/checksum changes, retains other archive bytes and compiles the extracted package with --locked --offline. Python 3.12+ is required for this packaging check; the SDK itself supports Python 3.10+.
The wrapper retains its existing MIT declaration. The embedded engine uses the repository's BUSL-1.1 terms, included as CORE_LICENSE; the combined wheel is labeled MIT AND BUSL-1.1. See NOTICE for the component boundary.
Metadata
Release files for tapirus 1.0.5
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.5.tar.gz | 666.2 kB | With provenance | Details for tapirus-1.0.5.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| tapirus-1.0.5-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details for tapirus-1.0.5-cp310-abi3-win_amd64.whl |
| tapirus-1.0.5-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.17+ x86-64 | Details for tapirus-1.0.5-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
| tapirus-1.0.5-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl | CPython 3.10 | abi3 | Linux glibc 2.17+ ARM64 | Details for tapirus-1.0.5-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
| tapirus-1.0.5-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details for tapirus-1.0.5-cp310-abi3-macosx_11_0_arm64.whl |
| tapirus-1.0.5-cp310-abi3-macosx_10_12_x86_64.whl | CPython 3.10 | abi3 | macOS 10.12+ x86-64 | Details for tapirus-1.0.5-cp310-abi3-macosx_10_12_x86_64.whl |
Total release size: 6.2 MB
Release files / tapirus-1.0.5.tar.gz
| Download URL | tapirus-1.0.5.tar.gz |
|---|---|
| Size | 666.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
19eb9147412c26d9b252f76f3ef5fee585f5766fca9a467a26206a746219d425
|
|
BLAKE2b-256 checksum How to use checksums |
242010c6cff027a8a3592eec7e88547104bcc03123c9940d0b86a15fb439c645
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 14, 2026.
Transparency logRelease files / tapirus-1.0.5-cp310-abi3-win_amd64.whl
| Download URL | tapirus-1.0.5-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
ab490b684ec45d7e9be6dc4684c492e92c7cd22b190e128b7536409877038379
|
|
BLAKE2b-256 checksum How to use checksums |
94de882691caeaff454f5b9b06dcf6e7889231b4d366a4790e677b1678f7eb78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 14, 2026.
Transparency logRelease files / tapirus-1.0.5-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | tapirus-1.0.5-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
c382e1d4e1da18c34d271f09e9942f3a1b84888f138028a206f9939f7675f46a
|
|
BLAKE2b-256 checksum How to use checksums |
c4e775874c4e1d2e4f33b81d55a4b768dcc53ce50a734209287cfd2070a70f71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 14, 2026.
Transparency logRelease files / tapirus-1.0.5-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | tapirus-1.0.5-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
8d097d87524c3b592dafe272d8fc238f9f11bb0fee077e3746ec57d92e5e94c4
|
|
BLAKE2b-256 checksum How to use checksums |
86e3dc3613a1a4baef3aaae47ca680bf8dbd626b3fd926995e554ffd61b72a48
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 14, 2026.
Transparency logRelease files / tapirus-1.0.5-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | tapirus-1.0.5-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
9633cfd5aaf0d9c388e04eaac4d3c65bdc515ecc6d444500d91ae70c74afcfc2
|
|
BLAKE2b-256 checksum How to use checksums |
0e56ead5ffaa7dc041d722ba2de9290f8378bed5450a112297b14941ad62326b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 14, 2026.
Transparency logRelease files / tapirus-1.0.5-cp310-abi3-macosx_10_12_x86_64.whl
| Download URL | tapirus-1.0.5-cp310-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.10 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
b7d6d6835952ea50a0a5a7b036c87e09e94f3f2f43bbd6755ca97bf315dbf2fb
|
|
BLAKE2b-256 checksum How to use checksums |
d1f17a78ad2f20ab24034925eaeb2bce06d5097550ac55f6a5516b2f873f9747
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 14, 2026.
Transparency logSecurity for tapirus 1.0.5
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 6 files in this release have been uploaded with provenance metadata.
Attestation for tapirus-1.0.5.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 Nov 14, 2026.
Transparency logA 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.