https://github.com/pyswmm/swmmio
Python tools for interacting with, editing, and visualizing EPA SWMM5 models
https://github.com/pyswmm/swmmio
civil-engineering hydraulic-modeling hydroinformatics python swmm5 watershed
Last synced: 5 months ago
JSON representation
Python tools for interacting with, editing, and visualizing EPA SWMM5 models
- Host: GitHub
- URL: https://github.com/pyswmm/swmmio
- Owner: pyswmm
- License: mit
- Created: 2016-04-25T14:23:05.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2025-06-11T20:00:44.000Z (about 1 year ago)
- Last Synced: 2025-11-07T08:21:58.080Z (8 months ago)
- Topics: civil-engineering, hydraulic-modeling, hydroinformatics, python, swmm5, watershed
- Language: Python
- Homepage: https://swmmio.readthedocs.io
- Size: 15.2 MB
- Stars: 142
- Watchers: 11
- Forks: 46
- Open Issues: 35
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
- open-sustainable-technology - swmmio - Python tools for interacting with, editing, and visualizing EPA SWMM5 models. (Natural Resources / Water Supply and Quality)
README
# swmmio
*v0.8.2 (2025/06/11)*
_Programmatic pre and post processing for EPA Stormwater Management Model (SWMM)_

[](https://swmmio.readthedocs.io/en/latest/?badge=latest)

## Introduction
`swmmio` is a Python tool for engineers and hydrologists who need to supercharge their ability to modify and analyze EPA SWMM models and results. Using a familiar Pandas interface, users can replace manual procesess that used to live in spreadsheets with scripts and automation.
The core `swmmio.Model` object provides accessors to related elements in the INP and RPT. For example, `swmmio.Model.subcatchments` provides a DataFrame (or GeoDataFrame) joining data from the `[SUBCATCHMENTS]` and `[SUBAREAS]` tables in the model.inp file and, if available, the `Subcatchment Runoff Summary` from the model.rpt file.
Additionally, `swmmio` provides a lower-level API for reading and writing (almost) all of the sections of the model.inp file which is useful for programmatically modifying EPA SWMM models.
## Installation
```bash
pip install swmmio
```
For documentation and tutorials, see our [documentation](https://swmmio.readthedocs.io/).