hydromodpy.core.version#

Canonical source of the HydroModPy version string.

The runtime resolves __version__ in this order:

  1. importlib.metadata.version("hydromodpy") - the authoritative answer once the package is installed (wheel / editable install).

  2. pyproject.toml parsed with tomllib - used when HydroModPy is imported straight from a source checkout before pip install -e ..

  3. A hard-coded development fallback, kept in sync with pyproject.toml.

Keeping the logic here (rather than inline in hydromodpy/__init__.py) lets tooling and documentation import it without triggering the package’s heavier bootstrap side effects.