Skip to main content

Python package to detect gaps in developed bicycle networks

Project description

FixBikeNet

Ruff code style: prettier pre-commit Docs Test

The Python package fixbikenet identifies the most important gaps to fill in a city's bicycle network.

The software downloads and pre-processes data from OpenStreetMap, identifies the gaps, saves the results, creates plots and videos. The source code builds on the code from the research paper Automated Detection of Missing Links in Bicycle Networks.

Publication: https://doi.org/10.1111/gean.12324

Installation

The easy way

[!IMPORTANT]
As of 2026-05-06, the conda-forge installation is not yet working. We will remove this note once it works.

The best way to install FixBikeNet is using conda and the conda-forge channel:

conda install -c conda-forge fixbikenet

Advanced installations

Set up environment

The main step is to set up a virtual environment fbnenv in which to install the package, and then to use or run the environment.

With Pixi

Installation with Pixi is fastest and most stable:

pixi init fbnenv
pixi add --pypi fixbikenet

At this point you can run fixbikenet in the environment, for example as such:

pixi run python examples/mwe.py

[!NOTE]
The first time you run code with Pixi, it might take a minute longer, as Pixi resolves the environment's dependencies only at this point.

Alternatively, or if you run into issues, clone this repository and create the environment via the environment.yml file:

pixi init --import environment.yml
With mamba/conda/pip

Alternatively to Pixi, use mamba or conda.

Instructions

[!IMPORTANT]
As of 2026-05-06, the conda-forge installation is not yet working. We will remove this note once it works.

mamba create -n fbnenv -c conda-forge fixbikenet
mamba activate fbnenv

Alternatively, or if you run into issues, clone this repository and create the environment via the environment.yml file:

mamba env create --file environment.yml
mamba activate fbnenv
pip install fixbikenet

Run fixbikenet in Jupyter lab

After having set up the environment above, if you wish to run fixbikenet via JupyterLab, follow the

Instructions

With Pixi

Running fixbikenet in Jupter lab with Pixi is straightforward:

pixi run jupyter lab

An instance of Jupyter lab is automatically going to open in your browser after the environment is built.

With mamba/conda

Using mamba/conda, run:

mamba activate fbnenv
ipython kernel install --user --name=fbnenv
mamba deactivate
jupyter lab

Once Jupyter lab opens, switch the kernel (Kernel > Change Kernel > fbnenv)

With pip

Using pip, run:

pip install --user ipykernel
python -m ipykernel install --user --name=fbnenv
jupyter lab

Once Jupyter lab opens, switch the kernel (Kernel > Change Kernel > fbnenv)

Development installation

If you want to develop the project, clone this repository and create the environment via the environment-dev.yml file:

pixi init --import environment-dev.yml

The developemt environment is called fbnenvdev. Make sure to also read our contribution guidelines.

Usage

We provide a minimum working example in two formats:

Repository structure

├── fixbikenet             <- Packaged functions and visualizations
├── tests                   <- Tests to execute to ensure functionality
├── .gitignore              <- Files and folders ignored by git
├── .pre-commit-config.yaml <- Pre-commit hooks used
├── README.md
├── environment.yml         <- Environment file to set up the environment using conda/mamba/pixi

Credits

Development of FixBikeNet was supported by the Danish Innovation Fund (Innovationsfonden).

Project details


Download files

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

Source Distribution

fixbikenet-0.5.0.tar.gz (25.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fixbikenet-0.5.0-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

Details for the file fixbikenet-0.5.0.tar.gz.

File metadata

  • Download URL: fixbikenet-0.5.0.tar.gz
  • Upload date:
  • Size: 25.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fixbikenet-0.5.0.tar.gz
Algorithm Hash digest
SHA256 62f9aeb875a28bb46827fce67b42f67270f81601ffe84f2df315669f9d4f5bf0
MD5 4ca58c663b416466f604cb7a04c096f1
BLAKE2b-256 55340cb4b9625bdb91a962ea93c049b23016bc51527f27f6746ba8d5180cc53e

See more details on using hashes here.

Provenance

The following attestation bundles were made for fixbikenet-0.5.0.tar.gz:

Publisher: publish.yml on BikeNetKit/FixBikeNet

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fixbikenet-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: fixbikenet-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 22.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fixbikenet-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4667933987c15044e10e9e504b7d7fe367e07ab5b69981e6d3f82f8cc084fe76
MD5 b73d8ac99dda34c735cda43a8b7bfa15
BLAKE2b-256 421d6a25893ee5cd041a4e8331747e68fd873bd20d47717e258449483b4cb728

See more details on using hashes here.

Provenance

The following attestation bundles were made for fixbikenet-0.5.0-py3-none-any.whl:

Publisher: publish.yml on BikeNetKit/FixBikeNet

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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