a thin wrapper for epanet hydraulic toolkit
Project description
epanet python package
A slender, auto-generated python wrapper around the owa:epanet hydraulic network analysis toolkit. This package uses SWIG and scikit-build to generate python bindings into the C library. The objective of this package is to establish basic python support for the toolkit, rather than present a "pythonic" interface. More abstractions can be built atop this package to further abstract the API, but the set of functions here is meant to (as closely as practical) mirror the well-known and established C API.
Where possible, SWIG has been configured to throw warnings/exceptions instead of using the customary EPANET return integer value for success-checking. Also any output (pointer) parameters from the C API have been re-routed to return values. In these cases, the return tuple from the Python API will contain the values desired.
Installation
To install with pip:
pip install owa-epanet
Wheels are now provided for most installations, some extra work will be needed if installing from source.
Building the libraries
Ensure the EPANET subproject is initialized by running git submodule update --init
(if necessary) and running the following commands (on Windows skip the line ./script/clean.sh
). The following method uses scikit-build
to invoke cmake
for compiling and linking the shared libaries, and builds a python wheel.
./scripts/clean.sh
python3 setup.py sdist bdist_wheel
Test your builds using the following commands.
cd test && \
pipenv install ../dist/*.whl && \
pipenv install pytest && \
pipenv run pytest
This python library was packaged in the following way:
python3 setup.py sdist bdist_wheel
python3 -m twine upload dist/*
Versioning
This package loosely follows EPANET's release version numbers. Its major and minor numbers will correspond to the given EPANET version, but the patch number is independent. This system might change in the future.
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
Built Distributions
File details
Details for the file owa-epanet-2.2.4.tar.gz
.
File metadata
- Download URL: owa-epanet-2.2.4.tar.gz
- Upload date:
- Size: 797.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bce8f4bc322aca6655b61cddef8d88507a5bfa939abd0bedf7f8752001aa42e |
|
MD5 | 058e2a765a53f23607199a011d7fee1f |
|
BLAKE2b-256 | 136a262e789a86babc446eac17a6f2f17c18d9b12c67a94455ae8d82d6b871ba |
File details
Details for the file owa_epanet-2.2.4-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: owa_epanet-2.2.4-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 288.8 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c8e4b1f85ed6fcf5a63f2faff4d9a6518674523c82319e4a7ada858e8842d82 |
|
MD5 | 258ad677bef7bfe866119377f743c59d |
|
BLAKE2b-256 | 579856ddd762a69c767a8a43d203ce2c08f670c1f56540a6e788fa2c0bf28826 |
File details
Details for the file owa_epanet-2.2.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: owa_epanet-2.2.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 216.4 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b9197e7e9f20873f1c1d94560ed3a5fcbe93c28aed2efa45124cce6d4c0391e |
|
MD5 | 9d33367f844e3a6a9ac6b9ef47c161e0 |
|
BLAKE2b-256 | 89fbaf0b5cf4734d0c5c5b35c578a47cd5be14cf1ba55dd3427d4968acb9d1a7 |
File details
Details for the file owa_epanet-2.2.4-cp310-cp310-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: owa_epanet-2.2.4-cp310-cp310-macosx_10_9_x86_64.whl
- Upload date:
- Size: 186.2 kB
- Tags: CPython 3.10, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d09aec9997858b9cc26516416946ebc140317249656e6ffe42ff843de553714 |
|
MD5 | d4455fa0c738b5f4eee57a00ffba6177 |
|
BLAKE2b-256 | c0088594bab49424097266631686a69efa41b74d8dc9b32ac25801f2724206a3 |
File details
Details for the file owa_epanet-2.2.4-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: owa_epanet-2.2.4-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 261.9 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe96c0073d410c4757ebaa444cfc48dac3a3c225a8c3e4f12e388c723c81959a |
|
MD5 | a430a99195a5cd2d97df8b9ac82784ea |
|
BLAKE2b-256 | ee6e335df7eb848f8999ce2c41a61729cc8e5b73af698fe6e26217abf5638fff |
File details
Details for the file owa_epanet-2.2.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: owa_epanet-2.2.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 216.4 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7556e592e8e6de85a1c033d5e321a2a34df9f5017b6cbe53cbee34370835c06e |
|
MD5 | 51ba2aa0ae367c0a774cf052943e9ca0 |
|
BLAKE2b-256 | f47386961d88c1638aa1d89da205e7d5cbad05c08ecba53f63e0cb3e738613bb |
File details
Details for the file owa_epanet-2.2.4-cp39-cp39-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: owa_epanet-2.2.4-cp39-cp39-macosx_10_9_x86_64.whl
- Upload date:
- Size: 186.2 kB
- Tags: CPython 3.9, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b46b327cf943d646703c51d00ce31473da43e032707a34098daeda34695bb1e |
|
MD5 | 6c77db78a631486a5c8097c647e8466d |
|
BLAKE2b-256 | 26471a07bba41be33d06e58d4d380752b716fef1ad3ea304bdfa644d63d7c29a |
File details
Details for the file owa_epanet-2.2.4-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: owa_epanet-2.2.4-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 288.7 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d31189aea05c551459b5cc9b61e42a35a54b9ed555fcc0b55b3b421890cca226 |
|
MD5 | a1776792fa5cea6152588eb93a0973f6 |
|
BLAKE2b-256 | dcf350b573703d671ab56600f6f24e897d93bc9ba93b85bdb40c5a7fe2bdf7ce |
File details
Details for the file owa_epanet-2.2.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: owa_epanet-2.2.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 216.3 kB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12b0588c67c2217994360c134d7231e1bfb33fe55eeb70694da70b4266bde867 |
|
MD5 | 74321bb70ca34db65fea74b037fec29c |
|
BLAKE2b-256 | 63682bcbfcf770218ae67630bddd3d9c68c7f0b1bbb558793e2fb8283692eaab |
File details
Details for the file owa_epanet-2.2.4-cp38-cp38-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: owa_epanet-2.2.4-cp38-cp38-macosx_10_9_x86_64.whl
- Upload date:
- Size: 186.4 kB
- Tags: CPython 3.8, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68f2fcbd50e29cc8d24e1e7a86be38656e962e8dc11ca1851126e376186c4af0 |
|
MD5 | 545016b2f47420a0096b9a16365e698b |
|
BLAKE2b-256 | 1accb0f876f09e062f243ce487e3aade33d6fc9794ecb7c96650c8390f9f5607 |
File details
Details for the file owa_epanet-2.2.4-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: owa_epanet-2.2.4-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 261.6 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e80d3509a72b3ae98b699660466437b7f0c5dcbdbd8976a8df846ea1a791bd53 |
|
MD5 | 1f4fe3038c33d262b0b498087b247b27 |
|
BLAKE2b-256 | 69515efc7b0e296744631279e508bdd1fda6ce7faf9eac5114026a806a305e7f |
File details
Details for the file owa_epanet-2.2.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: owa_epanet-2.2.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 215.9 kB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e197fe72dcb40ddd4e63c3eb9e108e36c3a443c4e14425bcfdd0978ac65f998f |
|
MD5 | c8b67242588cad467e146538ade38f8e |
|
BLAKE2b-256 | 8f9f0eedbfc3a284ce112b82f59635df13948d8e17d48083e43525f06f5155ec |
File details
Details for the file owa_epanet-2.2.4-cp37-cp37m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: owa_epanet-2.2.4-cp37-cp37m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 185.2 kB
- Tags: CPython 3.7m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d79bf91f9ab422c4e3192c42da00879bcccc6f01d685539c9bd5d8173603cab5 |
|
MD5 | 6fc5a14277d53d71e66d0b38b45b1126 |
|
BLAKE2b-256 | 3059ef31bde409a6e95715ff57733b1762bbc001a3280661ffab4c347f9c0e2c |
File details
Details for the file owa_epanet-2.2.4-cp36-cp36m-win_amd64.whl
.
File metadata
- Download URL: owa_epanet-2.2.4-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 287.9 kB
- Tags: CPython 3.6m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c51afed05c7ae59877d399da2924244c3620428b765cf6f8746192619a251b2e |
|
MD5 | ca6e7934b30f4d83fbe611994ef35dcc |
|
BLAKE2b-256 | e2644cccfde0c4195bcdd4ebf305ac75d16d3c52414abb12551037750a20da87 |
File details
Details for the file owa_epanet-2.2.4-cp36-cp36m-win32.whl
.
File metadata
- Download URL: owa_epanet-2.2.4-cp36-cp36m-win32.whl
- Upload date:
- Size: 261.5 kB
- Tags: CPython 3.6m, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72f25525e87059449e80c8e6204551f06ee146000b7470b47e56e423c1e77d13 |
|
MD5 | db25126972476a1fda9ea78f32054475 |
|
BLAKE2b-256 | 96490f5ac5b75af1970ca9cb467ebf939f4c84e8422e78657aa0cb2b6f0a6d88 |
File details
Details for the file owa_epanet-2.2.4-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: owa_epanet-2.2.4-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 215.9 kB
- Tags: CPython 3.6m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96d693066832f358866a638b8a0d0a005e66ad2ad43f0b5f63c43cb7bab2dc92 |
|
MD5 | 1bce82d64e117fcf2846fce64cf4e7de |
|
BLAKE2b-256 | 3f9251ec82a4c0b8eca62515d5caac060bfe5c9e911a4db8d5b02d6c735dd50c |
File details
Details for the file owa_epanet-2.2.4-cp36-cp36m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: owa_epanet-2.2.4-cp36-cp36m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 185.2 kB
- Tags: CPython 3.6m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9c4b94bcb58b04a3854a1cf4704c1f4272c4a28ad168160aae058ca6481929d |
|
MD5 | b394997ee970c6a5949ba2f4a47364f0 |
|
BLAKE2b-256 | e099ac07e2c8252f983295c93a4d703ea75c27ba305cecce26be53ce3ccf800b |