a thin wrapper for epanet hydraulic toolkit
Project description
epanet python package
A slender, auto-generated python wrapper around owa:epanet hydraulic network analysis toolkit. This package uses SWIG and scikit-build to generate python bindings into the C library. The goal 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.
./scripts/clean.sh
python3 setup.py sdist bdist_wheel
cd test && pipenv install ../dist/*.whl && pipenv run python -c 'from epanet import toolkit; print(toolkit.__dict__)'
This python library was packaged in the following way:
python3 setup.py sdist bdist_wheel
python3 -m twine upload dist/*
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 Distribution
Hashes for owa_epanet-1.0.3-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 043791b2de78bae6591f4d229b73b9d6d415d0c3abfe850aaf1b8b94eb040f96 |
|
MD5 | 8415c2212c8cf6c09726050d8bfb3c4a |
|
BLAKE2b-256 | 6fccb50396a7d1b18e743197636037820cee655523403ac2497eefadd67ee103 |