Python API#

HydroModPy exposes its top-level verbs through import hydromodpy as hmp. Each verb mirrors a CLI subcommand so hmp.run("cfg.toml") and hmp run cfg.toml execute the same workflow. The functions are re-exported from hydromodpy._api.

Catalog and indexing#

  • hydromodpy.open() – the single door to a workspace catalog (object access, DataFrames, and schema discovery). Replaces the former open_catalog.

  • hydromodpy.index() – open the machine-wide global index of workspaces.

Workflow launchers#

  • hydromodpy.run() – run any workflow from a TOML file or config object; dispatches on [workflow] mode (simulation, overview, comparison, mesh, testbed).

  • hydromodpy.calibrate() – run a calibration workflow.

Analysis and reporting#

Diagnostics#