Delta Hydro

PySWMM

DHS VerifiedActive

Python interface to the SWMM engine — step through simulations, read state, and control gates in real time.

by Open Water Analytics

Pricing
Open Source
License
BSD-2-Clause
Commercial use
Permitted
Ecosystem
Python, SWMM
Platform
Windows, macOS, Linux

Install

pip install pyswmm

About PySWMM

PySWMM, maintained under the Open Water Analytics community, wraps the SWMM5 engine in Python with an API that goes far beyond batch running: you can step the simulation one timestep at a time, read node and link state mid-run, and change control settings on the fly — which is exactly what real-time-control research and smart-stormwater pilots need.

It also serves the everyday cases: parameter sweeps, calibration loops, results extraction into pandas. If SWMM is in your workflow and Python is in your toolkit, PySWMM is the connection between them.

Where it fits in the workflow

TerrainCatchmentRainfallRunoffRoutingHydraulicsMappingReporting

Appears in collections

Alternatives to PySWMM

Ranked by the topics, categories and workflow stages they share with PySWMM.

swmm_api

Open Source

Pure-Python reading, editing and running of SWMM INP, RPT and OUT files — the full file-format toolkit.

Urban Stormwater & InfrastructureActiveSWMMPython Hydrology

Causeway Flow

Commercial

Storm and foul water drainage design and 1D hydraulic modelling software for UK and Irish civil engineers.

Urban Stormwater & InfrastructureActiveRational MethodSWMM

EPA's toolbox for sanitary sewer overflow planning — RDII analysis with the SWMM engine underneath.

Urban Stormwater & InfrastructureDormantSewer ModellingSWMM

EPA SWMM

Gov-PublicVerified

The public-domain engine of urban drainage: dynamic-wave pipe networks, runoff, LID and water quality.

Urban Stormwater & InfrastructureActiveSWMMSewer Modelling

LocalSWMM

Open Source

Browser-based urban stormwater and drainage modeling powered by OpenSWMM 6 compiled to WebAssembly.

Urban Stormwater & InfrastructureActiveSWMMStormwater Design

MatSWMM

Open Source

MATLAB (and Python/LabVIEW) co-simulation with SWMM — built for real-time control research.

Urban Stormwater & InfrastructureDormantSWMMSewer Modelling