Python bindings (mehari-python/)
- Separate crate, excluded from the workspace (own
[workspace]stub +Cargo.lock) so jemalloc isn't linked into the extension. Never add it to the root workspacemembers. It depends onmehariwithdefault-features = false. - Stack: PyO3 0.29 (
extension-module), maturin backend (module-name = "mehari._mehari"), uv for the env. Returns annotation results as Arrow RecordBatches (arrow60 +serde_arrow); Python side uses polars/pyarrow. Requires Python ≥3.12. PyPI package name ismehari. - Dev loop (from
mehari-python/):uv sync, thenuv run pytest. Build the extension withuv run maturin develop. - The
sync-lockfilesworkflow keepsmehari-python/Cargo.lockaligned with root on release PRs — don't fight it. - release-please owns version bumps here too (
pyproject.toml+Cargo.toml) — don't hand-edit.