Skip to main content

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

Build Wheels

Installation

version Downloads

pip install swmm-toolkit

Community

Discord

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swmm_toolkit-0.16.2.tar.gz (587.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

swmm_toolkit-0.16.2-cp39-abi3-win_amd64.whl (999.0 kB view details)

Uploaded CPython 3.9+Windows x86-64

swmm_toolkit-0.16.2-cp39-abi3-musllinux_1_2_x86_64.whl (556.7 kB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ x86-64

swmm_toolkit-0.16.2-cp39-abi3-musllinux_1_2_aarch64.whl (534.7 kB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ ARM64

swmm_toolkit-0.16.2-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (513.6 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

swmm_toolkit-0.16.2-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (489.3 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARM64manylinux: glibc 2.28+ ARM64

swmm_toolkit-0.16.2-cp39-abi3-macosx_11_0_x86_64.whl (676.2 kB view details)

Uploaded CPython 3.9+macOS 11.0+ x86-64

swmm_toolkit-0.16.2-cp39-abi3-macosx_11_0_arm64.whl (601.6 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

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

Hashes for swmm_toolkit-0.16.2.tar.gz
Algorithm Hash digest
SHA256 6454f02b93ec90f09aab5a3bf1f618c3de6cfe456a67288cc4d130e0d692342f
MD5 1e39ed2a5ce72b2d3702b63147063e36
BLAKE2b-256 5a8792b5bb9a90a25a6677f35405844ec15582b1dd9c5076350b5fc309542b9f

See more details on using hashes here.

Provenance

The following attestation bundles were made for swmm_toolkit-0.16.2.tar.gz:

Publisher: build_wheel.yml on pyswmm/swmm-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file swmm_toolkit-0.16.2-cp39-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for swmm_toolkit-0.16.2-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 06c56f4e2ac916e1fbc9c6cf9d1573cfcde3fe11fdd6543ac37c463f2fe17603
MD5 0cafdbfec1373ae493f7dd837888cbcd
BLAKE2b-256 f7151e03f57eb2ea504ab868da8145c7d92b26102e2c7ffcddabd09cf55a0ad1

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file swmm_toolkit-0.16.2-cp39-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for swmm_toolkit-0.16.2-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 5431fc4687f361b2eb32b905c6d1965af2ffec9a012366b465899bd4dd69dca6
MD5 76dda5029afa7f5e153eeefc925f276a
BLAKE2b-256 88df93c7a82110ea4cae49064260f56387a0f13b4f1bae1f681c74772206954b

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file swmm_toolkit-0.16.2-cp39-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for swmm_toolkit-0.16.2-cp39-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 f0963a4a15816aa2f29bab0337432b1a8d0f90e9420d316057cedfaa923a81a9
MD5 b58cf04ae79000805a8653bee505c4c2
BLAKE2b-256 444c9fbc5665d4cd9df3fe5fccc84c606429e24ab2c0e64e4ae76b80dce57636

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

File hashes

Hashes for swmm_toolkit-0.16.2-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 df642c01184f5cf3b2467cfb7fadea430e4e907d65c7b87df7d1c9a177d87122
MD5 6ec6afad32c25e664e7bc0396eee12e6
BLAKE2b-256 60b64acd7dfc67e3056b51b3d519b6382d17f4a76da7e935c51497535bc3ea38

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

File hashes

Hashes for swmm_toolkit-0.16.2-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 822bebc7bc0eec1d529dcc4fc04cd8a180fb7eaeabf56cb5a833c1e47a3573c3
MD5 16595724d4075bba3ff47f2d1e0364dd
BLAKE2b-256 17723845def834bbcdba89f987a2fc08d4006c211a1c44cf1df5e9b965441ba8

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file swmm_toolkit-0.16.2-cp39-abi3-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for swmm_toolkit-0.16.2-cp39-abi3-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 96e312ef1f7d635759a6fcee90795b4055bdd1d65ea7a24c1be64137d6360e59
MD5 b0deaa8563b47263ed10d5549024d851
BLAKE2b-256 45c533d4d754781b9817c8ff3d1461110cf740ab8fc864cfb3f1d419a0878cd3

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file swmm_toolkit-0.16.2-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for swmm_toolkit-0.16.2-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2ee67385709d0bd60393994a894aaf33ec70c6451cf5fed9bd76d8591e3568af
MD5 6c24a0a83f255988a0a32cdb0398c83f
BLAKE2b-256 9d4267c827dd8fba055fdd1b57bd68888edb39fd1ff49d40ac932cd40d292d2d

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page