--- id: graspologic-native version: "1.3.1" license: unclear license_treatment: permissive maintenance: active --- # graspologic-native License: permissive · Maintenance: active · Downloads: 220.3K/mo ## What it is and what it does graspologic-native is a compiled Python extension that implements the Leiden community detection algorithm in Rust for use in graph analysis workflows. The Leiden algorithm identifies clusters or communities within network structures, and this package provides a high-performance native implementation rather than a pure-Python one. It is built using PyO3 and maturin, and depends only on numpy and scipy. The package is designed to serve as a performance-critical component, likely integrated into the broader graspologic graph statistics library. It targets Python 3.9 and later on 64-bit systems, with prebuilt wheels for common platforms (Linux, macOS, Windows on x86_64 and aarch64). If prebuilt wheels don't match your platform, you can build from source using Rust and uv. Use it for: - Detect communities or clusters in large network graphs as part of graph analysis pipelines - Accelerate community detection workloads where pure-Python implementations are too slow - Integrate high-performance Leiden clustering into graspologic-based research or production systems - Analyze social networks, biological networks, or other graph structures for structural patterns ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides a high-performance Rust implementation of the Leiden community detection algorithm for graph analysis, exposed to Python via a native extension module. Yes, if you need fast community detection for graph analysis and are using Python 3.9+. The package is actively maintained, has no known vulnerabilities, and offers prebuilt wheels for most platforms. Install friction is moderate but manageable; if your platform lacks a prebuilt wheel, building from source requires Rust and uv. Best suited as a dependency of graspologic rather than standalone use. ## Install pip install graspologic-native uv add graspologic-native poetry add graspologic-native ## Installing graspologic-native Before you install: Medium install friction due to compiled wheels; prebuilt binaries available for Python 3.9–3.13 on x86_64 and aarch64 across Linux, macOS (universal2), and Windows. Actively maintained with recent release (61 days ago) and no known vulnerabilities. License in practice: MIT license (permissive); you can use, modify, and distribute this package with minimal restrictions, including in commercial projects. Quickstart: pip install graspologic-native import graspologic_native # Use Leiden algorithm via graspologic package integration Requires Python 3.9 or later and a 64-bit operating system; prebuilt wheels available for common platforms, but source builds require Rust stable and uv. Verify before relying: - Exact API surface and function signatures for the Leiden implementation exposed to Python - Performance benchmarks or typical speedup vs. pure-Python alternatives - Whether this package is intended for standalone use or primarily as a dependency of graspologic ## Package facts - License: not declared (permissive) - Python support: supports_current - Install friction: medium - Maintenance: active - Downloads: 220.3K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags leiden community detection, graph clustering algorithm, network community detection, graph partitioning, network analysis performance, rust graph algorithms, community structure detection, graph-algorithms, community-detection, rust-extension [View on SkillFed](https://skillfed.io/packages/graspologic-native) · [View on PyPI](https://pypi.org/project/graspologic-native/)