Automated Generation, Visualization, and Analysis of potential Superblocks in Cities
Project description
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.
Installation
We recommend
using micromamba
to create a virtual environment and installing the package in editable mode.
Alternatively, one can
use conda
or mamba
to create the environment (they can be used interchangeably).
micromamba create -n sb_env -c conda-forge python=3.12 osmnx
micromamba activate sb_env
pip install superblockify
This installs the package and its dependencies,
ready for use when activating the environment.
Learn more about superblockify
by reading
the documentation
with the usage section
or
the minimal working example.
Development Setup
For development, clone the repository, navigate to the root folder and create the environment with the wished python version and the development dependencies.
micromamba create -n sb_env -c conda-forge python=3.12 --file=environment.yml
micromamba activate sb_env
Now it is possible to import the package relatively to the root folder.
Optionally, register the package in editable mode with pip
:
pip install --no-build-isolation --no-deps -e .
Usage
For a quick start there are example scripts in
the examples/
folder and
a minimal working example.
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
.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file superblockify-1.0.0rc6.tar.gz
.
File metadata
- Download URL: superblockify-1.0.0rc6.tar.gz
- Upload date:
- Size: 118.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65f7c17cca6ed8fa06d7c6522fb030e950550ce2587c42681724a3690633ba29 |
|
MD5 | bffa5aaf988e263ae9e33579eceb1c8a |
|
BLAKE2b-256 | 4c358bbea7e195de8092937d77e894919c7f6c8aaabb1b325bc11323d7509dd9 |
File details
Details for the file superblockify-1.0.0rc6-py3-none-any.whl
.
File metadata
- Download URL: superblockify-1.0.0rc6-py3-none-any.whl
- Upload date:
- Size: 122.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f464946423cf6ec7d424539ec6293c53722fef1fc6522d610baaf099497909e |
|
MD5 | 4a8b0dd8dce95e26af6de5e7e8d40287 |
|
BLAKE2b-256 | 3ec2c82ef3b23405ee642ff796bed0c74eb443ff71267afcd0cc0645e26aa5b6 |