mHM Tools
mHM-Tools is a toolbox to pre- and post-process data for and from the mesoscale Hydrologic Model (mHM). Everything is available as the command line tool mhm-tools and as a Python API.
As of version 0.3 it covers three main use cases:
- Delineate a catchment and create a local mHM setup from a larger existing setup.
- Create an mHM setup from raw data.
- Evaluate your mHM runs against river discharge, evapotranspiration, soil moisture, snow or total water storage anomalies.
Installation
$ pip install mhm-tools
The restart creation (create-mhm-restart-from-setup) also needs mHM 5.13 or newer. Install it along with mhm-tools with pip install "mhm-tools[mhm]", or with [mhm5] to stay on mHM 5 once mHM 6 is released; the installation docs describe the conda and module options.
To install from a source checkout into a clean conda environment, which nothing else in your shell interferes with (e.g. on an HPC system or to test a release), use the install script. It creates the environment if needed, ignores PYTHONPATH, the user site-packages and pip settings, and checks the result:
$ scripts/install_mhm_tools.sh /path/to/envs/mhm-tools [--editable] [--extras test,doc] [--python 3.12]
$ conda activate /path/to/envs/mhm-tools
For a first overview how to run the model you can use the help function of the CLI:
$ mhm-tools -h
or the interactive terminal user interface (TUI)
$ mhm-tools tui
Documentation and source code
-
Documentation, with the command line reference and the API reference
We are currently migrating the documentation to Read the Docs. The previous version is still available on GitLab Pages.
-
Release notes and the full changelog
-
mHM homepage
License
LGPLv3, Copyright © 2026, the mHM-Tools developers from Helmholtz-Zentrum für Umweltforschung GmbH - UFZ. All rights reserved.
Metadata
Release files for mhm-tools 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mhm_tools-0.3.2.tar.gz | 1.3 MB | Without provenance | Details for mhm_tools-0.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mhm_tools-0.3.2-py3-none-any.whl | Python 3 | none | any | Details for mhm_tools-0.3.2-py3-none-any.whl |
Total release size: 1.9 MB
Release files / mhm_tools-0.3.2.tar.gz
| Download URL | mhm_tools-0.3.2.tar.gz |
|---|---|
| Size | 1.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b36c1326193405596ec8369bcc35fb18f6f7281de184d2ab96a0de322adb8d57
|
|
BLAKE2b-256 checksum How to use checksums |
133b4b179d50d33ee488092798bd19dc0b7b87e4d808843e11dcfa99312c520b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / mhm_tools-0.3.2-py3-none-any.whl
| Download URL | mhm_tools-0.3.2-py3-none-any.whl |
|---|---|
| Size | 589.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
11d6586c41ccb99263daf2e54281ef198747a7fbf9eee5aa5ff80f12c0ef33e9
|
|
BLAKE2b-256 checksum How to use checksums |
07a736c12c87b20d1961c3bdf27de5a0b9ae1399c6c1ecb99585dc7698520d8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for mhm-tools 0.3.2
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.