Installation
Install the Python package from PyPI, add the Rust crate from crates.io, or build either from source.
On this page
Python
The itzma package is on PyPI.
pip install itzma # or: uv add itzma
pip install "itzma[pyarrow]" # Arrow input and output through pyarrow
pip install "itzma[polars]" # results as Polars DataFramesWheels cover macOS (Apple silicon and Intel) and Linux (x86_64 and aarch64, glibc and musl), Python 3.10 and later. Elsewhere pip builds from the source distribution, which needs Rust.
Rust
The itzma-core crate is on crates.io. It needs Rust 1.87 or newer (edition 2024). The examples in these docs use the in-memory store from object_store and run on tokio.
[dependencies]
itzma-core = "0.2.1"
object_store = "0.14"
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
serde_json = "1"itzma-core provides the embedded vector database. To connect it to Amazon S3, Google Cloud Storage or Azure Blob Storage, choose a storage backend.
From source
The code is on GitHub. To build the Python package from a checkout, you need Rust (see rust-version in the root Cargo.toml) and uv.
make py-dev # creates py-itzma/.venv and builds the extension into it
make py-test # runs the Python testsTo use that build from another project, build a wheel and install it:
uv run --project py-itzma maturin build --releaseStorage
A store is all Itzma needs: S3, GCS, Azure (and anything else object_store supports), a local directory, or memory. In Python the store is a URL:
store = itzma.Store("memory://") # or "file:///var/lib/itzma", "s3://bucket/prefix", "gs://bucket/prefix", "az://container/prefix"A local directory has no conditional update, so compaction and indexing fail there. Use S3, GCS, Azure or memory for those. Storage backends has the details.
