Actively maintained. Last release 4 weeks ago. A safe choice.
pip install janitor-rsjanitor-rs
janitor-rs provides the Rust/PyO3 extension kernels used by
pyjanitor. It is not a
standalone command-line tool.
Development
Install Rust and uv, then run the Rust tests:
cargo test
On macOS, the repository wrapper provides a consistent Python framework for PyO3 tests:
./scripts/test-rust.sh
Pass additional Cargo test arguments after the wrapper command:
./scripts/test-rust.sh single_range_predicate
Run formatting and lint checks with:
cargo fmt --check
cargo clippy --all-targets --all-features -- -D warnings
Building
Build a wheel locally with maturin:
maturin build --release
The package version is read from Cargo.toml. Release preparation and PyPI
publishing are documented in
RELEASING.md.
Repository layout
src/contains the typed join and aggregation kernels.benches/contains Criterion benchmarks..github/workflows/contains CI and on-demand release workflows.
The Python-facing integration tests live in the pyjanitor repository. Changes to the Rust/Python boundary should be tested in both repositories.
Further reading
AGENTS.md
is the canonical reference for implementation-level
detail that doesn't belong in a contributor quickstart: the range-first
Python/Rust ABI contract, the cross-boundary benchmarking methodology, and
other non-obvious conventions and gotchas.
The multi-predicate range-join rewrite is inspired by Reif and Neumann, A Scalable and Generic Approach to Range Joins, which describes a generic kd-tree-based multidimensional range join. The paper is useful context for the candidate-generation design and for future parallel build/probe work; this implementation adapts the idea to janitor-rs' rank-region representation and Python-facing aggregation contracts.