graspologic is a Python package for graph statistics.
Some functionality is best served compiled into a native Python extension module for performance. graspologic-native holds the Rust implementation of the Leiden community detection algorithm, exposed to Python via PyO3 and built with maturin.
- Rust stable (edition 2024)
- Python 3.9+
- uv
- 64-bit operating system
We build wheels for x86_64 and aarch64 on Linux, macOS (universal2), and Windows, for Python 3.9–3.13.
If the published wheels don't match your platform, or you want to build from source:
git clone git@github.com:graspologic-org/graspologic-native.git
cd graspologic-native/packages/pyo3
uv buildThe output wheel will be in dist/.
To install in a local virtual environment for development:
cd graspologic-native/packages/pyo3
uv sync
uv pip install -e .cd packages/pyo3
uv run python -m unittestThis project welcomes contributions and suggestions. Please open an issue or pull request on GitHub.
graspologic-native does not collect, store, or transmit any information of any kind.