hydromodpy.core.config_kit#

Pydantic helpers shared by every HydroModPy configuration model.

Hosts the strict HydroModelBase root, the Profile enum, the VisibleWhen field-visibility tag, and the introspection / schema export helpers that operate on these primitives. None of the symbols here carry hydrology-specific behaviour: they are pure Pydantic foundations consumed by every sub-config in the codebase.

Layer rule: this sub-package may import only pydantic, the standard library, and hydromodpy.core.*.

Modules

base

Root Pydantic base class shared by every HydroModPy config model.

export_spec

Declarative description of a single result export.

field_metadata

Typed convention for Field(json_schema_extra=...) metadata.

introspect

Introspection helpers for HydroModPy Pydantic config fields.

mesh_input

Schema contract for the optional [mesh_input] section.

persistence

Single-switch persistence configuration (Principe 8).

profile

Hierarchical visibility profiles for Pydantic config fields.

registry

Single source of truth for HydroModPy root TOML sections.

root_config_protocol

Protocol decoupling core helpers from the application root config.

types

Shared constrained config types and reusable Literal aliases.

validators

Shared field-validator callables for Pydantic configuration models.

visible_when

Profile visibility tags and helpers.