Skip to main content

SWMManywhere: Synthesise Urban Drainage Network Models Anywhere in the World

PyPI version shields.io Test and build DOI codecov status Total Downloads

SWMManywhere is a tool to synthesise urban drainage network models (UDMs) using publicly available data such as street network, DEM, and building footprints, across the globe. It also provides tools for generating SWMM input files and performing simulations for the synthesised UDMs.

Features

  • Automatic data retrieval and preprocessing: all of our data requirements are met with global datasets, so all you need is a bounding box!
  • Customisable network synthesis: change a range of parameters to create different networks, power users can easily extend existing functionality.
  • Streamlined evaluation to compare with real networks: we include a variety of performance metrics and automatic running/comparing if you have your own SWMM model.
  • Command line interface: All of this and more can be accessed by passing a configuration file to a CLI.

Installation

Install SWMManywhere:

pip install swmmanywhere

Alternatively, it can be installed using mamba (conda or micromamba):

mamba install -c conda-forge swmmanywhere

SWMManywhere dependencies may be viewed in the pyproject.toml.

Documentation and Quickstart

Once installed, you can simply run SWMManywhere from the command line giving a configuration file in YAML format as input. As SWMManywhere can download data automatically from well known sources, this settings file can often be minimal and restricted to indicating the geographical area to be processed:

python -m swmmanywhere --config_path=\path\to\config.yml

The result of the calculation will be a model of the sewage system for that area, like the following, which can then be further processed or analysed with SWMM, for example:

SWMM Model

Follow the Quickstart for a more detailed initial example and ReadTheDocs for full information of SWMManywhere capabilities.

Use and contributing

This project is licensed under the BSD-3-Clause licence, see LICENSE.

There are many things we would like to do! If you are interested to contribute please see CONTRIBUTING and CODE OF CONDUCT.

Metadata

Release files for swmmanywhere 0.2.4

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

Source distribution (sdist)

Source distribution for swmmanywhere 0.2.4
File Size Uploaded
swmmanywhere-0.2.4.tar.gz 3.8 MB Details

Release files / swmmanywhere-0.2.4.tar.gz

Download URL swmmanywhere-0.2.4.tar.gz
Size 3.8 MB
Tags Source
SHA-256 checksum
How to use checksums
46e09472098ade172581594893732fdfe2c1bcbb7e6296963df2ff45d2dca625
BLAKE2b-256 checksum
How to use checksums
5ff16cdff3ba13cb935439f917c6178a07a85822645a7209b0260e300e796eb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 1, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.4 This release

1 release file

0.2.2

1 release file

0.1.17

1 release file

0.1.16

1 release file

0.1.15

1 release file

0.1.12

1 release file

0.1.11

1 release file

0.1.10

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.4

1 release file

0.1.2

1 release file

0.1.1

2 release files

0.1.0

2 release files

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