toradb package (prebuilt wheels for macOS, Linux, and Windows). Use pip for normal use; build from source only when you are developing ToraDB itself.
Install from PyPI
1
Create a virtual environment (recommended)
2
Install ToraDB
3
Verify installation
Build from source
Use this path when you need unreleased changes or you are contributing to the Rust/Python codebase.Prerequisites
- Rust stable toolchain (
rustup,cargo) - Python 3.8+
pipmaturin(for building the Python extension)
rust-toolchain.toml.
1
Clone the repository
2
Build the Rust workspace
3
Create a Python virtual environment
4
Install the ToraDB Python package
From the repo root:
5
Verify installation
Run tests
Rust tests (source tree only):Optional benchmark
Troubleshooting
- If
pip install toradbfails on an unsupported platform, try build from source on that machine. - If
maturin developfails, confirm the virtual environment is activated. - If Python cannot import
toradbafter a source build, rerunmaturin develop. - If the
toradbcommand is not found, ensure the venvbindirectory is on yourPATH(activation usually handles this).
