OWA SWMM Python Toolkit
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
- Initialize submodule
git submodule init
git submodule update
- Create virtual environment
pip install
from requirements.txtpython setup.py build
Troubleshoot
Steps to try if python setup.py build
fails
Establish working swmm-solver build
- Create an environment variable
BOOST_ROOT_1_67_0
and set the variable to boost install location - Confirm swmm-solver directory is initialized
- 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
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
swmm-toolkit-0.8.2.zip
(623.1 kB
view hashes)
Built Distributions
Close
Hashes for swmm_toolkit-0.8.2-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e43db497c26d9da6fcd811f87e9a9b09b99fdd62618816c786077cb87000744 |
|
MD5 | 748abe36c15ccae31794530981a59808 |
|
BLAKE2b-256 | 2dd46d93ab4cd9a07b84c6c7f026915acc8be6eb6b1454da598af05eb846d8d0 |
Close
Hashes for swmm_toolkit-0.8.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 869d625e4f44b3e98628ef1e1fb24e86d044ac362b5e2841035efb09c9e02fe9 |
|
MD5 | 2f5a16eab6b25a3806d502f28aa073d6 |
|
BLAKE2b-256 | 35d81cd9fc85a58752dd1b258e87e16ff93bdaa9fea4a4d101ed5947194bc087 |
Close
Hashes for swmm_toolkit-0.8.2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f02a6788266590fbed83811dd4290b109f5bb9b6d82a7e6d37978b4b3e9f8ee5 |
|
MD5 | c8f6cf6b28371f5202fd371427803ab2 |
|
BLAKE2b-256 | 087793a6386b46491457e29bf4fe74fa1a0bf150fea78ad44d63c4e7dfd5c06d |
Close
Hashes for swmm_toolkit-0.8.2-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac255d3d3cc360726ed1998ae72600a82c21e356509e4b5999cfe36651c67d9d |
|
MD5 | e2409db644b7884f69df5deef1badbe9 |
|
BLAKE2b-256 | 059254576b30ae6b0bef5cb7927fc9e6af2083f207898981f918dbb074ce0e09 |
Close
Hashes for swmm_toolkit-0.8.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0f87b5b08be59c5c29c94e89e3b0d8429b8e34071d0467ce81c6f6d4428c932 |
|
MD5 | 65d3fd5a2d2f5e3cd83e591a6835ad13 |
|
BLAKE2b-256 | 692d7488ab877d804c1d19f73b8473bd944420cfc49dc6132f48ce60932a24b9 |
Close
Hashes for swmm_toolkit-0.8.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36f9090fe3c2e1df2318b6c25559205422536660969d171831c95d3ace6682e1 |
|
MD5 | a912fe36971907e4809aa977b4169bd0 |
|
BLAKE2b-256 | ef0c07620008a711fcc0f1286687883733b7e580cd92dc9d38590162a12fbe8e |
Close
Hashes for swmm_toolkit-0.8.2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 259f614e73a07c8da768e79a18b0445bb91716db7367188f4e20d13aa58162be |
|
MD5 | d67a1da40749112fbbd602becc8f03d3 |
|
BLAKE2b-256 | 97912075bea8c5dd5ec570a84c62395e35c1aedee7e383d452afce4b60ddc6ac |
Close
Hashes for swmm_toolkit-0.8.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc2d9fef7756599e1ba87ccd96606ca46d31bc9307d06a3fda514884c1f1d421 |
|
MD5 | 1230c37c47dd8bcb345815fc2897d10d |
|
BLAKE2b-256 | 0891895cdd98357eb17f0c24b8cd8e9629fe29db0f5596d8ed4ce22d8337574e |
Close
Hashes for swmm_toolkit-0.8.2-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f04e9949556c40a3e161dd999173cabfba776339810db1c712a45f1e1c3ba85e |
|
MD5 | 77427be30c478a4f5da74f840e015866 |
|
BLAKE2b-256 | ba1f2c1d4a338e6f69956e411e7ad8806e886a704db04b323ce24d63cd0a242b |
Close
Hashes for swmm_toolkit-0.8.2-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce2d1d8e98707aa9b2e8db015ceb0e8f4606af658e87334a15b60db44f7b6bd9 |
|
MD5 | ac02d434e3a97e2726023920a275f45c |
|
BLAKE2b-256 | d11d9840cdd9b89662694f5ee7e1f22bd8de689b9b9bbdf4e9d098b8ba21a0fc |
Close
Hashes for swmm_toolkit-0.8.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f1c106249b4561c0e26e161898425fa77a3194fe2fd51825b1bbb2ef9d7b05b |
|
MD5 | 92bd068b5596cb07aef4ab90183f5c28 |
|
BLAKE2b-256 | f5c3f3acae3089825b10c5c013e8b33c2c1ecfbb92a1d804c46afeb162f56628 |
Close
Hashes for swmm_toolkit-0.8.2-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc70a6d5abd7135c9f41722e072aceefa42162aebb488f82bfb89aab0e65e799 |
|
MD5 | a54a25feb345a4291a21351ee805aeda |
|
BLAKE2b-256 | 6653627b21beb888ec45b27ce25c4176747c57281a155f24b0984c5e311727b1 |