Python package to grow urban bicycle networks from scratch, spin-off from the paper 'Growing urban bicycle networks'
Project description
GrowBikeNet
The Python package growbikenet provides a command-line interface to download and pre-process data from OpenStreetMap, prepare points of interest, run simulations, save the results, create plots and videos. The source code builds on the code from the research paper Growing Urban Bicycle Networks.
Installation
The easy way
[!IMPORTANT]
As of 2026-05-04, the conda-forge installation is not yet working. We will remove this note once it works.
The best way to install GrowBikeNet is using conda and the conda-forge channel:
conda install -c conda-forge growbikenet
Advanced installations
Set up environment
The main step is to set up a virtual environment gbnenv 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 gbnenv
pixi add --pypi growbikenet
At this point you can run growbikenet 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-04, the conda-forge installation is not yet working. We will remove this note once it works.
mamba create -n gbnenv -c conda-forge growbikenet
mamba activate gbnenv
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 gbnenv
pip install growbikenet
Run growbikenet in Jupyter lab
After having set up the environment above, if you wish to run growbikenet via JupyterLab, follow the
Instructions
With Pixi
Running growbikenet 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 gbnenv
ipython kernel install --user --name=gbnenv
mamba deactivate
jupyter lab
Once Jupyter lab opens, switch the kernel (Kernel > Change Kernel > gbnenv)
With pip
Using pip, run:
pip install --user ipykernel
python -m ipykernel install --user --name=gbnenv
jupyter lab
Once Jupyter lab opens, switch the kernel (Kernel > Change Kernel > gbnenv)
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 gbnenvdev. Make sure to also read our contribution guidelines.
Usage
We provide a minimum working example in two formats:
- Python script (examples/mwe.py)
- Jupyter notebook (examples/mwe.ipynb)
Repository structure
├── growbikenet <- 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 GrowBikeNet 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file growbikenet-0.7.0.tar.gz.
File metadata
- Download URL: growbikenet-0.7.0.tar.gz
- Upload date:
- Size: 31.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6c294fb3783dc6755e5938cdf6266579dc517d832bc0df1e172e74bb84d14c4
|
|
| MD5 |
31272527e36317de07996c848dc3fe76
|
|
| BLAKE2b-256 |
99d6f141bc952327097fd22ee594405de0bbf941ad64415dbf1964f228b22d32
|
Provenance
The following attestation bundles were made for growbikenet-0.7.0.tar.gz:
Publisher:
publish.yml on BikeNetKit/GrowBikeNet
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
growbikenet-0.7.0.tar.gz -
Subject digest:
f6c294fb3783dc6755e5938cdf6266579dc517d832bc0df1e172e74bb84d14c4 - Sigstore transparency entry: 1437319016
- Sigstore integration time:
-
Permalink:
BikeNetKit/GrowBikeNet@2da773cdf738ccd15424c031ebc496d8fa750057 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/BikeNetKit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2da773cdf738ccd15424c031ebc496d8fa750057 -
Trigger Event:
pull_request
-
Statement type:
File details
Details for the file growbikenet-0.7.0-py3-none-any.whl.
File metadata
- Download URL: growbikenet-0.7.0-py3-none-any.whl
- Upload date:
- Size: 30.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f2b758ffbd2512ab21a6f22087edc31338aa817b38bee8c0e62f3f10d24d9d5
|
|
| MD5 |
283c1b0d8740b71e1f5cf3ebf72bf0ba
|
|
| BLAKE2b-256 |
381e1c58695966bfa7b883e24af19ec977a169c3df3be0588aa40f5d0c3ce6f5
|
Provenance
The following attestation bundles were made for growbikenet-0.7.0-py3-none-any.whl:
Publisher:
publish.yml on BikeNetKit/GrowBikeNet
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
growbikenet-0.7.0-py3-none-any.whl -
Subject digest:
7f2b758ffbd2512ab21a6f22087edc31338aa817b38bee8c0e62f3f10d24d9d5 - Sigstore transparency entry: 1437319033
- Sigstore integration time:
-
Permalink:
BikeNetKit/GrowBikeNet@2da773cdf738ccd15424c031ebc496d8fa750057 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/BikeNetKit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2da773cdf738ccd15424c031ebc496d8fa750057 -
Trigger Event:
pull_request
-
Statement type: