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.1.zip
(644.1 kB
view hashes)
Built Distributions
Close
Hashes for swmm_toolkit-0.8.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55367e94f0c1a5c142827c73c21b62a77ff815bbc3da1b8d0f0b4235006c5471 |
|
MD5 | e5628a9b87ecf716568464d11e055b1f |
|
BLAKE2b-256 | 77b1c55dc40931cb29aafda0b8c361b5a31a4f7b3d193e86e2c7c1b06dbbe551 |
Close
Hashes for swmm_toolkit-0.8.1-cp38-cp38-macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89e76e05d98181516cf1099537c1adf1c6fde09780cd6fbc70f93165b835fb92 |
|
MD5 | 1c7250d6ce8cd95ee57adb59fcd81e16 |
|
BLAKE2b-256 | 943d8f59662c59e29d59830550be0630eb82bd4effa4b3041ba98940406b4693 |
Close
Hashes for swmm_toolkit-0.8.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d504356254c4f899b11fe7c27e18a67d16b102c331dd0aff260b046f6a35a17c |
|
MD5 | cf1cf1ad1fc1956bb7cf45ce3bccdac4 |
|
BLAKE2b-256 | 6921269e6ce55a9350a1650efcd480c5ebc4b5551e2375a65ade00336040a742 |
Close
Hashes for swmm_toolkit-0.8.1-cp37-cp37m-macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9adbddecdfd4178dbcb18dcf94b07b280ef4e0a16143c6034e31e45e690be07 |
|
MD5 | 741c04f3ce27f1679da41df7cd208a75 |
|
BLAKE2b-256 | 14efc4c220b7d2ccbcf400c7b674e25c2d93f13e84b14856b7df5689cc3785c2 |
Close
Hashes for swmm_toolkit-0.8.1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d2f8a15aa25efb8d9245df3d8c6e6d657eaa1201c653c3156eb8cb5ff4504f3 |
|
MD5 | bfa02d5ee73ccdb3f1a5f4ea7c65128f |
|
BLAKE2b-256 | 066d94731ec02b47a6ab01f8ccc60797e41d92b4f14046c33764e2c0733f07d6 |
Close
Hashes for swmm_toolkit-0.8.1-cp36-cp36m-macosx_10_10_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 250a732618dbe6f08223559af21613e925dcd07b5b4c55e2014eee75d1a0eaf7 |
|
MD5 | b75472785f338516840c1092fc913bfa |
|
BLAKE2b-256 | 2d4eb641228b320abbe6bd13fe5b60c7265c1868fdb66e6e590e5fd2efaf9f59 |