Python bindings for Kronroe temporal graph database
Project description
kronroe (Python)
Python bindings for Kronroe via PyO3/maturin.
Quickstart
from kronroe import AgentMemory
memory = AgentMemory.open("./my-agent.kronroe")
memory.assert_fact("alice", "works_at", "Acme")
results = memory.recall("where does Alice work?", limit=10)
scored = memory.recall_scored("where does Alice work?", limit=10)
memory.assert_with_confidence("alice", "works_at", "Acme", 0.95, "user:notes")
print(results)
print(scored)
assert_fact uses default confidence (1.0) with no source provenance.
Use assert_with_confidence(..., source=...) when you need explicit confidence/source metadata.
Local build
cd crates/python
python -m pip install maturin
maturin develop
Runtime validation
# Python runtime smoke test (builds local extension with cargo, then executes tests/runtime_smoke.py)
./scripts/run_runtime_smoke.sh
# Rust-side embedded-interpreter tests (runs without extension-module feature)
./scripts/run_rust_runtime_tests.sh
Optional feature toggles:
KRONROE_PY_FEATURES="hybrid uncertainty" ./scripts/run_runtime_smoke.sh
KRONROE_PY_RUST_TEST_FEATURES="hybrid uncertainty" ./scripts/run_rust_runtime_tests.sh
Publish flow
# Build wheel(s)
python3 -m maturin build --release -o dist
# Upload to TestPyPI (token auth)
python3 -m pip install twine
TWINE_USERNAME=__token__ \
TWINE_PASSWORD="pypi-your-testpypi-token" \
python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
# Upload to PyPI (token auth)
TWINE_USERNAME=__token__ \
TWINE_PASSWORD="pypi-your-pypi-token" \
python3 -m twine upload dist/*
Recommended for CI/release automation: configure PyPI Trusted Publisher for this repository and publish from GitHub Actions without storing long-lived API tokens.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kronroe-0.1.0-cp39-abi3-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: kronroe-0.1.0-cp39-abi3-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 2.9 MB
- Tags: CPython 3.9+, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34744202c1d361b6683f2d66b2ba04ec0171e3e2974df6b3e8d945c5e84102fc
|
|
| MD5 |
6ae6e818fc7efd29884e13a8540cea2b
|
|
| BLAKE2b-256 |
f273c920bb73e059db15695dd393d93858605f7c50342359416e27e906841f69
|
Provenance
The following attestation bundles were made for kronroe-0.1.0-cp39-abi3-manylinux_2_34_x86_64.whl:
Publisher:
python-publish.yml on kronroe/kronroe
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kronroe-0.1.0-cp39-abi3-manylinux_2_34_x86_64.whl -
Subject digest:
34744202c1d361b6683f2d66b2ba04ec0171e3e2974df6b3e8d945c5e84102fc - Sigstore transparency entry: 1097504745
- Sigstore integration time:
-
Permalink:
kronroe/kronroe@aefa64cee4480b973d7c4bec92ce1978609b6c08 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/kronroe
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@aefa64cee4480b973d7c4bec92ce1978609b6c08 -
Trigger Event:
workflow_dispatch
-
Statement type: