Skip to main content

Automated Generation, Visualization, and Analysis of potential Superblocks in Cities

Project description

superblockify logo

Dev PyPI Version Python Version linting: pylint Code style: black PyPI License

status Docs Lint Test codecov

Source code to superblockify an urban street network


superblockify is a Python package for partitioning an urban street network into Superblock-like neighborhoods and for visualizing and analyzing the partition results. A Superblock is a set of adjacent urban blocks where vehicular through traffic is prevented or pacified, giving priority to people walking and cycling.

superblockify concept

Installation

Set up environment

Use conda or mamba or micromamba to create the virtual environment sb_env:

conda create -n sb_env -c conda-forge python=3.12 osmnx=1.9.2

Note: While pip can install OSMnx, it's not officially supported due to potential issues with C dependencies. If unsure, use conda as instructed above to avoid problems.

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

conda env create --file environment.yml

Install package

Next, activate the environment and install the package:

conda activate sb_env
pip install superblockify

Set up Jupyter kernel

If you want to use superblockify with its environment sb_env in Jupyter, run:

pip install --user ipykernel
python -m ipykernel install --user --name=sb_env

This allows you to run Jupyter with the kernel sb_env (Kernel > Change Kernel > sb_env)

Usage

We provide a minimum working example in two formats:

For a guided start after installation, see the usage section in the documentation. See the examples/ folder for more example scripts.

Documentation

Read the documentation to learn more about superblockify.

Testing

The tests are specified using the pytest signature, see tests/ folder, and can be run using a test runner of choice. A pipeline is set up, see .github/workflows/test.yml.

Credits & Funding

  • Carlson M. Büth (Implementation)
  • Anastassia Vybornova (Supervision)
  • Michael Szell (Concept)

Funded by the European Union, EU Horizon grant JUST STREETS

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

superblockify-1.0.0rc11.tar.gz (120.1 kB view details)

Uploaded Source

Built Distribution

superblockify-1.0.0rc11-py3-none-any.whl (123.3 kB view details)

Uploaded Python 3

File details

Details for the file superblockify-1.0.0rc11.tar.gz.

File metadata

  • Download URL: superblockify-1.0.0rc11.tar.gz
  • Upload date:
  • Size: 120.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for superblockify-1.0.0rc11.tar.gz
Algorithm Hash digest
SHA256 d410ab6fba65392b92fe94a5314abcde7de19d71c64e38b9f36f134a685babd1
MD5 65c8c54c3bc160ff168ab8d5c04f5912
BLAKE2b-256 160d111a9d89f5ef124964c482425b341e24dfda1d52431ae312fa50a1a59d28

See more details on using hashes here.

File details

Details for the file superblockify-1.0.0rc11-py3-none-any.whl.

File metadata

File hashes

Hashes for superblockify-1.0.0rc11-py3-none-any.whl
Algorithm Hash digest
SHA256 5cb3a21a7ef027c584811ae24ace3258025326d3c1211661a1d7de3c9874891c
MD5 1c2b58720b0607157014eb268635a403
BLAKE2b-256 73cbf17b85ae4d89013473995c91c7208e3f92b61ae628d68fe8a1f3ad11e361

See more details on using hashes here.

Supported by

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