PySWMM SWMM Python Toolkit
Project description
swmm-toolkit
swmm-toolkit contains SWIG generated Python wrappers for the swmm-solver and swmm-output libraries.
Build Status
Installation
pip install swmm-toolkit
Community
Join the discussion! We will do everything we can to help you!
Features
swmm-toolkit makes SWMM a fully fledged Python extension with:
- Compatibility with USEPA SWMM
- Python integration at the speed of C
- Full access to library APIs
- Pythonic naming, enums, exceptions, and return value handling
Basic Usage
Run a SWMM simulation.
from swmm.toolkit import solver
solver.run('input_file.inp', 'report_file.rpt', 'output_file.out')
Build From Source
[!NOTE]
Since version version 0.16.1, swmm-toolkit by default has been built and published using the python stable ABI for python 3.9 onward. Using the stable ABI introduces very minor performance reduction while substantially simplifying our release process and compatibility with future python versions.The commands below show how to build this package with and without using the python stable ABI.
Build with python stable ABI
python -m build .
Build without python stable ABI
NO_STABLE_ABI=1 python -m build
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 Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file swmm_toolkit-0.16.2.tar.gz.
File metadata
- Download URL: swmm_toolkit-0.16.2.tar.gz
- Upload date:
- Size: 587.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6454f02b93ec90f09aab5a3bf1f618c3de6cfe456a67288cc4d130e0d692342f
|
|
| MD5 |
1e39ed2a5ce72b2d3702b63147063e36
|
|
| BLAKE2b-256 |
5a8792b5bb9a90a25a6677f35405844ec15582b1dd9c5076350b5fc309542b9f
|
Provenance
The following attestation bundles were made for swmm_toolkit-0.16.2.tar.gz:
Publisher:
build_wheel.yml on pyswmm/swmm-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
swmm_toolkit-0.16.2.tar.gz -
Subject digest:
6454f02b93ec90f09aab5a3bf1f618c3de6cfe456a67288cc4d130e0d692342f - Sigstore transparency entry: 741743614
- Sigstore integration time:
-
Permalink:
pyswmm/swmm-python@5794c0bb21d0195ff0625c2167218986681b2bac -
Branch / Tag:
refs/tags/v0.16.2 - Owner: https://github.com/pyswmm
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_wheel.yml@5794c0bb21d0195ff0625c2167218986681b2bac -
Trigger Event:
push
-
Statement type:
File details
Details for the file swmm_toolkit-0.16.2-cp39-abi3-win_amd64.whl.
File metadata
- Download URL: swmm_toolkit-0.16.2-cp39-abi3-win_amd64.whl
- Upload date:
- Size: 999.0 kB
- Tags: CPython 3.9+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06c56f4e2ac916e1fbc9c6cf9d1573cfcde3fe11fdd6543ac37c463f2fe17603
|
|
| MD5 |
0cafdbfec1373ae493f7dd837888cbcd
|
|
| BLAKE2b-256 |
f7151e03f57eb2ea504ab868da8145c7d92b26102e2c7ffcddabd09cf55a0ad1
|
Provenance
The following attestation bundles were made for swmm_toolkit-0.16.2-cp39-abi3-win_amd64.whl:
Publisher:
build_wheel.yml on pyswmm/swmm-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
swmm_toolkit-0.16.2-cp39-abi3-win_amd64.whl -
Subject digest:
06c56f4e2ac916e1fbc9c6cf9d1573cfcde3fe11fdd6543ac37c463f2fe17603 - Sigstore transparency entry: 741743678
- Sigstore integration time:
-
Permalink:
pyswmm/swmm-python@5794c0bb21d0195ff0625c2167218986681b2bac -
Branch / Tag:
refs/tags/v0.16.2 - Owner: https://github.com/pyswmm
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_wheel.yml@5794c0bb21d0195ff0625c2167218986681b2bac -
Trigger Event:
push
-
Statement type:
File details
Details for the file swmm_toolkit-0.16.2-cp39-abi3-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: swmm_toolkit-0.16.2-cp39-abi3-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 556.7 kB
- Tags: CPython 3.9+, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5431fc4687f361b2eb32b905c6d1965af2ffec9a012366b465899bd4dd69dca6
|
|
| MD5 |
76dda5029afa7f5e153eeefc925f276a
|
|
| BLAKE2b-256 |
88df93c7a82110ea4cae49064260f56387a0f13b4f1bae1f681c74772206954b
|
Provenance
The following attestation bundles were made for swmm_toolkit-0.16.2-cp39-abi3-musllinux_1_2_x86_64.whl:
Publisher:
build_wheel.yml on pyswmm/swmm-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
swmm_toolkit-0.16.2-cp39-abi3-musllinux_1_2_x86_64.whl -
Subject digest:
5431fc4687f361b2eb32b905c6d1965af2ffec9a012366b465899bd4dd69dca6 - Sigstore transparency entry: 741743659
- Sigstore integration time:
-
Permalink:
pyswmm/swmm-python@5794c0bb21d0195ff0625c2167218986681b2bac -
Branch / Tag:
refs/tags/v0.16.2 - Owner: https://github.com/pyswmm
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_wheel.yml@5794c0bb21d0195ff0625c2167218986681b2bac -
Trigger Event:
push
-
Statement type:
File details
Details for the file swmm_toolkit-0.16.2-cp39-abi3-musllinux_1_2_aarch64.whl.
File metadata
- Download URL: swmm_toolkit-0.16.2-cp39-abi3-musllinux_1_2_aarch64.whl
- Upload date:
- Size: 534.7 kB
- Tags: CPython 3.9+, musllinux: musl 1.2+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0963a4a15816aa2f29bab0337432b1a8d0f90e9420d316057cedfaa923a81a9
|
|
| MD5 |
b58cf04ae79000805a8653bee505c4c2
|
|
| BLAKE2b-256 |
444c9fbc5665d4cd9df3fe5fccc84c606429e24ab2c0e64e4ae76b80dce57636
|
Provenance
The following attestation bundles were made for swmm_toolkit-0.16.2-cp39-abi3-musllinux_1_2_aarch64.whl:
Publisher:
build_wheel.yml on pyswmm/swmm-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
swmm_toolkit-0.16.2-cp39-abi3-musllinux_1_2_aarch64.whl -
Subject digest:
f0963a4a15816aa2f29bab0337432b1a8d0f90e9420d316057cedfaa923a81a9 - Sigstore transparency entry: 741743716
- Sigstore integration time:
-
Permalink:
pyswmm/swmm-python@5794c0bb21d0195ff0625c2167218986681b2bac -
Branch / Tag:
refs/tags/v0.16.2 - Owner: https://github.com/pyswmm
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_wheel.yml@5794c0bb21d0195ff0625c2167218986681b2bac -
Trigger Event:
push
-
Statement type:
File details
Details for the file swmm_toolkit-0.16.2-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: swmm_toolkit-0.16.2-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 513.6 kB
- Tags: CPython 3.9+, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df642c01184f5cf3b2467cfb7fadea430e4e907d65c7b87df7d1c9a177d87122
|
|
| MD5 |
6ec6afad32c25e664e7bc0396eee12e6
|
|
| BLAKE2b-256 |
60b64acd7dfc67e3056b51b3d519b6382d17f4a76da7e935c51497535bc3ea38
|
Provenance
The following attestation bundles were made for swmm_toolkit-0.16.2-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl:
Publisher:
build_wheel.yml on pyswmm/swmm-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
swmm_toolkit-0.16.2-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
df642c01184f5cf3b2467cfb7fadea430e4e907d65c7b87df7d1c9a177d87122 - Sigstore transparency entry: 741743630
- Sigstore integration time:
-
Permalink:
pyswmm/swmm-python@5794c0bb21d0195ff0625c2167218986681b2bac -
Branch / Tag:
refs/tags/v0.16.2 - Owner: https://github.com/pyswmm
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_wheel.yml@5794c0bb21d0195ff0625c2167218986681b2bac -
Trigger Event:
push
-
Statement type:
File details
Details for the file swmm_toolkit-0.16.2-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.
File metadata
- Download URL: swmm_toolkit-0.16.2-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
- Upload date:
- Size: 489.3 kB
- Tags: CPython 3.9+, manylinux: glibc 2.17+ ARM64, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
822bebc7bc0eec1d529dcc4fc04cd8a180fb7eaeabf56cb5a833c1e47a3573c3
|
|
| MD5 |
16595724d4075bba3ff47f2d1e0364dd
|
|
| BLAKE2b-256 |
17723845def834bbcdba89f987a2fc08d4006c211a1c44cf1df5e9b965441ba8
|
Provenance
The following attestation bundles were made for swmm_toolkit-0.16.2-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl:
Publisher:
build_wheel.yml on pyswmm/swmm-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
swmm_toolkit-0.16.2-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl -
Subject digest:
822bebc7bc0eec1d529dcc4fc04cd8a180fb7eaeabf56cb5a833c1e47a3573c3 - Sigstore transparency entry: 741743689
- Sigstore integration time:
-
Permalink:
pyswmm/swmm-python@5794c0bb21d0195ff0625c2167218986681b2bac -
Branch / Tag:
refs/tags/v0.16.2 - Owner: https://github.com/pyswmm
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_wheel.yml@5794c0bb21d0195ff0625c2167218986681b2bac -
Trigger Event:
push
-
Statement type:
File details
Details for the file swmm_toolkit-0.16.2-cp39-abi3-macosx_11_0_x86_64.whl.
File metadata
- Download URL: swmm_toolkit-0.16.2-cp39-abi3-macosx_11_0_x86_64.whl
- Upload date:
- Size: 676.2 kB
- Tags: CPython 3.9+, macOS 11.0+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96e312ef1f7d635759a6fcee90795b4055bdd1d65ea7a24c1be64137d6360e59
|
|
| MD5 |
b0deaa8563b47263ed10d5549024d851
|
|
| BLAKE2b-256 |
45c533d4d754781b9817c8ff3d1461110cf740ab8fc864cfb3f1d419a0878cd3
|
Provenance
The following attestation bundles were made for swmm_toolkit-0.16.2-cp39-abi3-macosx_11_0_x86_64.whl:
Publisher:
build_wheel.yml on pyswmm/swmm-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
swmm_toolkit-0.16.2-cp39-abi3-macosx_11_0_x86_64.whl -
Subject digest:
96e312ef1f7d635759a6fcee90795b4055bdd1d65ea7a24c1be64137d6360e59 - Sigstore transparency entry: 741743644
- Sigstore integration time:
-
Permalink:
pyswmm/swmm-python@5794c0bb21d0195ff0625c2167218986681b2bac -
Branch / Tag:
refs/tags/v0.16.2 - Owner: https://github.com/pyswmm
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_wheel.yml@5794c0bb21d0195ff0625c2167218986681b2bac -
Trigger Event:
push
-
Statement type:
File details
Details for the file swmm_toolkit-0.16.2-cp39-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: swmm_toolkit-0.16.2-cp39-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 601.6 kB
- Tags: CPython 3.9+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ee67385709d0bd60393994a894aaf33ec70c6451cf5fed9bd76d8591e3568af
|
|
| MD5 |
6c24a0a83f255988a0a32cdb0398c83f
|
|
| BLAKE2b-256 |
9d4267c827dd8fba055fdd1b57bd68888edb39fd1ff49d40ac932cd40d292d2d
|
Provenance
The following attestation bundles were made for swmm_toolkit-0.16.2-cp39-abi3-macosx_11_0_arm64.whl:
Publisher:
build_wheel.yml on pyswmm/swmm-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
swmm_toolkit-0.16.2-cp39-abi3-macosx_11_0_arm64.whl -
Subject digest:
2ee67385709d0bd60393994a894aaf33ec70c6451cf5fed9bd76d8591e3568af - Sigstore transparency entry: 741743705
- Sigstore integration time:
-
Permalink:
pyswmm/swmm-python@5794c0bb21d0195ff0625c2167218986681b2bac -
Branch / Tag:
refs/tags/v0.16.2 - Owner: https://github.com/pyswmm
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_wheel.yml@5794c0bb21d0195ff0625c2167218986681b2bac -
Trigger Event:
push
-
Statement type: