Skip to main content

Python native companion module to the graspologic library

Project description


graspologic-native is a companion library to graspologic. This module is a Python native module created by using the network_partitions crate from the same repository.

The purpose of this module is to provide a faster implementations of graph/network analysis algorithms in a native without trying to work through the troubles of releasing Rust crates and Python modules at the same time (in specific as the Python graspologic module is expected to be far more active than the Rust crates or native modules are).

The only capability currently implemented by this module is the Leiden algorithm, described in the paper From Louvain to Leiden: guaranteeing well-connected communities, Traag, V.A.; Waltman, L.; Van, Eck N.J., Scientific Reports, Vol. 9, 2019. In addition to the paper, the reference implementation provided at was used as a starting point.


Builds are provided for x86_64 architectures only, for Windows, macOS, and Linux, for Python versions 3.6->3.12.

Build Tools

Rust nightly 1.37+ (we are currently using 1.40) The python package maturin

Please consider using graspologic in lieu of graspologic-native, as the former will contain some nice wrappers to make usage of this library more pythonic.

Project details

Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

graspologic_native-1.2.1.tar.gz (2.5 MB view hashes)

Uploaded Source

Built Distributions

graspologic_native-1.2.1-cp36-abi3-win_amd64.whl (188.0 kB view hashes)

Uploaded CPython 3.6+ Windows x86-64

graspologic_native-1.2.1-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.6+ manylinux: glibc 2.17+ x86-64

graspologic_native-1.2.1-cp36-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (660.1 kB view hashes)

Uploaded CPython 3.6+ macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page