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.6.tar.gz (794.9 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.6-cp37-cp37m-macosx_10_9_x86_64.whl (180.2 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: owa-epanet-1.0.6.tar.gz
  • Upload date:
  • Size: 794.9 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.6.tar.gz
Algorithm Hash digest
SHA256 4379cf6271cdcde939a31a22d14c49da4ce1688c2e5315f26e36412ac560f6a7
MD5 14d9ce718025657b831a88a7871116f4
BLAKE2b-256 80de94e02f0a1d8e19352d20d88444fb3561d24fda02408a94562aae226f62f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: owa_epanet-1.0.6-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 180.2 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.6-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 298d169a862074e1ae8efc1f423716eb264b8bc89dda4efdeac5b2bf33ec92d5
MD5 f9d5adb0608e85f223d19a60e5ae7f57
BLAKE2b-256 6a4f8c8b38e7f73459162a24461864f97522ce6a9f214976b944bddc05ef9479

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