asynch-hlm: the Python package of ASYNCH (import asynch)
Python interface to ASYNCH, the asynchronous solver of hydrological models on river networks.
The numerical work is done by the C library libasynch.so; Python drives it.
from asynch import Simulation
with Simulation("test_2015.gbl") as sim: # run in examples/
sim.run() # same output files as `asynch test_2015.gbl`
q = sim.states[:, 0] # discharge of every link
Simulation: run a global file, advance in steps, get/set states and parameters, custom outputs, MPI.Model: define a new model with C code (compiled, as fast as the built-in models) or Python functions.GlobalConfig: read, change and write global files (.gbl).asynch.io: read output files, write input files.
Installation, tutorial and reference: https://gurbuzf.github.io/asynch/guide/10_python.html.
Ready-made (Linux x86-64, glibc 2.31 or newer). The wheel attached to each release of
https://github.com/gurbuzf/asynch/releases carries the library and the asynch program, compiled; pip installs MPI
with it (the mpich package, with mpiexec). Nothing to build:
pip install --upgrade pip && pip install asynch_hlm-<version>-py3-none-manylinux_2_31_x86_64.whl
asynch test.gbl # the program; mpiexec -n 4 asynch test.gbl
From the sources, after building and installing ASYNCH (make install puts libasynch.so in /usr/local/lib):
pip install ./python # or: export PYTHONPATH=$PWD/python
python3 -m asynch library # shows which libasynch.so is used (override with ASYNCH_LIBRARY)
Needs Python >= 3.8 and NumPy; h5py to read .h5 files; a C compiler for models written in C; mpi4py only
to pass another communicator.
Release files for asynch-hlm 1.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| asynch_hlm-1.5.0-py3-none-manylinux_2_31_x86_64.whl | Python 3 | none | Linux glibc 2.31+ x86-64 | Details |
Release files / asynch_hlm-1.5.0-py3-none-manylinux_2_31_x86_64.whl
| Download URL | asynch_hlm-1.5.0-py3-none-manylinux_2_31_x86_64.whl |
|---|---|
| Size | 8.5 MB |
| Tags | Linux glibc 2.31+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
6ea289c4b09b843c3875b720722136f9b8f6a600e694c7d5568bc535a8abe389
|
|
BLAKE2b-256 checksum How to use checksums |
7718d6eaf72c7e62c7209d13ae8c9efd1b764523d7768755e13b7b51fd67a287
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency log