hydromodpy.core.config_kit.export_spec#

Declarative description of a single result export.

One ExportSpec == one output artifact. The same model is built from the Python facade (run.export), the CLI, and the TOML [[simulation.results.export.artifacts]] section, so selection and validation live in exactly one place. It mirrors the hmp.read selector (var / time / layer) and adds the output format, destination, and raster options.

Lives in core.config_kit (next to HydroModelBase) because both results and simulation build it, and core is the only layer both may import without creating a cycle.

Functions

format_from_path(path)

Infer an ExportFormat from a file extension, or None.

Classes

ExportFormat(value[, names, module, ...])

Output formats reachable through the unified export engine.