Skip to content

Installation

Python

From PyPI

pip install graphways

Wheels are provided for Python 3.8+ on Linux, macOS, and Windows (x86-64).

From source

Requires Rust and maturin.

git clone https://github.com/kyleloving/graphways.git
cd graphways
pip install maturin
maturin develop --release

maturin develop compiles the Rust extension and installs it into the current Python environment in one step. The --release flag enables compiler optimizations -- omit it only for debug builds.

Rust

Add to Cargo.toml:

[dependencies]
graphways = "0.4.0"

Note: The crate is published as graphways; the library module is graphways (matching the Python package name).

Dependencies

graphways has no required Python dependencies -- all heavy lifting is in Rust.

Optional Python packages used in the examples:

pip install folium branca