hydromodpy.core.config_kit.types#

Shared constrained config types and reusable Literal aliases.

Module attributes

IdentifierStr

Snake-case identifier starting with a lowercase letter.

NormalizedStr

String stripped of surrounding whitespace.

NormalizedLowerStr

String stripped and lower-cased (use for case-insensitive enums).

NonEmptyStr

Non-empty string after stripping whitespace.

OptionalText

Optional free-form text.

IsoDateStr

Optional ISO-8601 date (YYYY-MM-DD).

StripLower

Reusable BeforeValidator to combine with a Literal for case-insensitive enums.

Probability

Float in the closed interval [0, 1].

CellSamplingDensity

Sub-sampling density per cell axis used when rasterising masks.

TimePeriodUnit

Calendar period unit used by simulation/time windows.

CoveragePolicy

Reaction policy when input data does not cover a window.

InterpolationMethod

Spatial interpolation method shared by spatial and physics layers.