Skip to main content

OWA SWMM Python Toolkit

Reason this release was yanked:

Superceded by v0.8.1

Project description

swmm-toolkit

swmm-toolkit contains SWIG generated Python wrappers for the swmm-solver and swmm-output libraries.

Features

swmm-toolkit makes SWMM a fully fledged Python extension with:

  • Python integration at the speed of C
  • Full access to library APIs
  • Pythonic naming, enums, exceptions, and return value handling

Installation

Build

  1. Initialize submodule
git submodule init
git submodule update 
  1. Create virtual environment
  2. pip install from requirements.txt
  3. python setup.py build

Troubleshoot

Steps to try if python setup.py build fails

Establish working swmm-solver build

  1. Create an environment variable BOOST_ROOT_1_67_0 and set the variable to boost install location
  2. Confirm swmm-solver directory is initialized
  3. Confirm swmm-solver build is working
cd swmm-solver 
mkdir buildprod
cd buildprod
cmake -G "Visual Studio 14 2015 Win64" ..
cmake --build . --config Release --target install 

Basic Usage

Run a SWMM simulation.

from swmm.toolkit import solver

solver.run('input_file.inp', 'report_file.rpt', 'output_file.out')

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.8.0.tar.gz (528.5 kB view hashes)

Uploaded Source

Built Distributions

swmm_toolkit-0.8.0-cp38-cp38-win_amd64.whl (906.2 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

swmm_toolkit-0.8.0-cp38-cp38-manylinux2014_x86_64.whl (501.5 kB view hashes)

Uploaded CPython 3.8

swmm_toolkit-0.8.0-cp38-cp38-macosx_10_10_x86_64.whl (560.8 kB view hashes)

Uploaded CPython 3.8 macOS 10.10+ x86-64

swmm_toolkit-0.8.0-cp37-cp37m-win_amd64.whl (906.3 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

swmm_toolkit-0.8.0-cp37-cp37m-manylinux2014_x86_64.whl (501.0 kB view hashes)

Uploaded CPython 3.7m

swmm_toolkit-0.8.0-cp37-cp37m-macosx_10_10_x86_64.whl (560.3 kB view hashes)

Uploaded CPython 3.7m macOS 10.10+ x86-64

swmm_toolkit-0.8.0-cp36-cp36m-win_amd64.whl (906.3 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

swmm_toolkit-0.8.0-cp36-cp36m-manylinux2014_x86_64.whl (501.0 kB view hashes)

Uploaded CPython 3.6m

swmm_toolkit-0.8.0-cp36-cp36m-macosx_10_10_x86_64.whl (560.3 kB view hashes)

Uploaded CPython 3.6m macOS 10.10+ x86-64

Supported by

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