Skip to main content

superblockify logo

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

status DOI 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 superblockify
conda activate sb_env

Note: While pip can install superblockify, it's not officially supported due to potential issues with C dependencies needed for OSMnx. 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
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

Funded by the European Union, EU Horizon grant JUST STREETS

More Information

Metadata

Release files for superblockify 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for superblockify 1.0.3
File Size Uploaded Provenance Actions
superblockify-1.0.3.tar.gz 121.2 kB With provenance Details for superblockify-1.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for superblockify 1.0.3
File Interpreter ABI Platform Actions
superblockify-1.0.3-py3-none-any.whl Python 3 none any Details for superblockify-1.0.3-py3-none-any.whl

Total release size: 244.9 kB

Release files / superblockify-1.0.3.tar.gz

Download URL superblockify-1.0.3.tar.gz
Size 121.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9cc72894e0c8ed7dc7a67c13672867e16c904668cefb20df4de49ca0ce72815d
BLAKE2b-256 checksum
How to use checksums
682a6d762a40871c927f199684a2e0f1d67be58f2373a63ffeb75bfe93bdeaee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / superblockify-1.0.3-py3-none-any.whl

Download URL superblockify-1.0.3-py3-none-any.whl
Size 123.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2f8d8ab57825758a10ac2c04fb8cd660fcf09fd735b1b9827ddfba3882b6f2c1
BLAKE2b-256 checksum
How to use checksums
04e3fc757940d14161c47ff4621c681cd39e6d3e05db26f2c2da0a0d46229d79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for superblockify 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for superblockify-1.0.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page