Skip to main content

Python package to grow urban bicycle networks from scratch, spin-off from the paper 'Growing urban bicycle networks'

Project description

GrowBikeNet

Ruff code style: prettier pre-commit Docs Test

Source code for the project GrowBikeNet, building on the code from the research paper Growing Urban Bicycle Networks.

Installation

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
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`](https://pixi.prefix.dev/latest/) 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:

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

growbikenet-0.6.0.tar.gz (27.1 kB view details)

Uploaded Source

Built Distribution

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

growbikenet-0.6.0-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

Details for the file growbikenet-0.6.0.tar.gz.

File metadata

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

File hashes

Hashes for growbikenet-0.6.0.tar.gz
Algorithm Hash digest
SHA256 f5dece1e7cd834eeadc55734cd6571b53e5c9a99eb028f7c7bc84689ccb13dac
MD5 5f17fe4433155164bb5e865fcbfd015d
BLAKE2b-256 4a3eda6c72b4de9fc9ad43bb09641bc895287bf4eab29fb6b93e47668129cb62

See more details on using hashes here.

Provenance

The following attestation bundles were made for growbikenet-0.6.0.tar.gz:

Publisher: publish.yml on BikeNetKit/GrowBikeNet

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

File details

Details for the file growbikenet-0.6.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for growbikenet-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 747a55d90c8d6b5dc4f97143ad15554f5b57622315a5b092585c36cfc4edfa6e
MD5 01b222392b2e564cb3d36d34fa77fb64
BLAKE2b-256 ab6ae4891e180375b5e87d016fd930acbf90bf10555f9f66963ac197955df136

See more details on using hashes here.

Provenance

The following attestation bundles were made for growbikenet-0.6.0-py3-none-any.whl:

Publisher: publish.yml on BikeNetKit/GrowBikeNet

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