Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

owa-epanet-1.0.3.tar.gz (787.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

owa_epanet-1.0.3-cp37-cp37m-macosx_10_9_x86_64.whl (178.0 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

Details for the file owa-epanet-1.0.3.tar.gz.

File metadata

  • Download URL: owa-epanet-1.0.3.tar.gz
  • Upload date:
  • Size: 787.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for owa-epanet-1.0.3.tar.gz
Algorithm Hash digest
SHA256 0c41f6852f78e7aae37733ab58cd5ed9d245fafa403eb2127296af92da7a3bd2
MD5 0125bd8a326f8fed08da15de46df39b9
BLAKE2b-256 fc5e735efbddb371896f4430556fc4f4407d1cbe33c3afef128197b5dcd3c6c2

See more details on using hashes here.

File details

Details for the file owa_epanet-1.0.3-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: owa_epanet-1.0.3-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 178.0 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

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

See more details on using hashes here.

Supported by

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