hydromodpy.core.config_kit.root_config_protocol#

Protocol decoupling core helpers from the application root config.

The 15x15 layer matrix forbids core -> config. The config_kit registry and JSON Schema exporter need the root Pydantic model to introspect its fields. They consume that information through this Protocol; the concrete provider is wired in at package bootstrap by hydromodpy._bootstrap.

Other layers consume the same Protocol when they need to build or validate a root config from raw payloads without depending on hydromodpy.config.

Functions

get_root_config_provider()

Return the installed provider, running the lazy bootstrap if needed.

set_root_config_provider(provider)

Install the root-config provider used by core config helpers.

Classes

RootConfigProvider(*args, **kwargs)

Read-only access to the top-level configuration model class.