Skip to main content

Command line script and Python library to read Storm Water Management Model binary output.

Project description

Tests Test Coverage Latest release BSD-3 clause license PyPI - Python Version

swmmtoolbox - Overview

The swmmtoolbox is a Python script to read the Storm Water Management Model (SWMM) version 5 binary output files.

Requirements

Python - of course, version 3.7+.

Installation

The swmmtoolbox is available via pip or conda.

pip

pip install swmmtoolbox

conda

conda install -c conda-forge swmmtoolbox

Usage

Command Line

Just run ‘swmmtoolbox –help’ to get a list of subcommands and options:

usage: swmmtoolbox [-h]
                   {about,catalog,extract,listdetail,listvariables,stdtoswmm5}
                   ...

positional arguments:
  {about,catalog,extract,listdetail,listvariables,stdtoswmm5}
    about               Display version number and system information.
    catalog             List the catalog of objects in output file.
    extract             Get the time series data for a particular object and
                        variable.
    listdetail          List nodes and metadata in output file.
    listvariables       List variables available for each type.
    stdtoswmm5          Take the toolbox standard format and return SWMM5
                        format.

options:
  -h, --help            show this help message and exit

Python API

Simply import swmmtoolbox:

import swmmtoolbox

ntsd = swmmtoolbox.extract("tests/frutal.out", "node,45,Hydraulic_head")

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

swmmtoolbox-4.1.0.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

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

swmmtoolbox-4.1.0-py3-none-any.whl (64.1 kB view details)

Uploaded Python 3

File details

Details for the file swmmtoolbox-4.1.0.tar.gz.

File metadata

  • Download URL: swmmtoolbox-4.1.0.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for swmmtoolbox-4.1.0.tar.gz
Algorithm Hash digest
SHA256 6348e71a1ce5565db580310d7c4e6d43579803a368aa9bb049a26640d7a0500d
MD5 b4566006f1880170077f3471ae1bd53f
BLAKE2b-256 85e4ff72fcd622edbd0fabb77a876a388e9736962f5f3d105120ed72b3776743

See more details on using hashes here.

Provenance

The following attestation bundles were made for swmmtoolbox-4.1.0.tar.gz:

Publisher: pypi-package.yml on timcera/swmmtoolbox

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

File details

Details for the file swmmtoolbox-4.1.0-py3-none-any.whl.

File metadata

  • Download URL: swmmtoolbox-4.1.0-py3-none-any.whl
  • Upload date:
  • Size: 64.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for swmmtoolbox-4.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 667adbc77e9c6c1b910f0abc0ee7404ed1ffc548d3b64f1e1e4106b1434b0ea8
MD5 59faadbae826bb7ca3582e41ba9aa8b7
BLAKE2b-256 b2be9875ee16a17aaa04c8a16214a0cd2745b3aa9763e0dd14cc60bd162c40d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for swmmtoolbox-4.1.0-py3-none-any.whl:

Publisher: pypi-package.yml on timcera/swmmtoolbox

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