hydromodpy.schema#

Frontend hooks: JSON Schema export + partial field validator.

This sub-package exposes two stable integration points for external user interfaces (Streamlit, Angular, React, …). There is no HTTP server: the core stays pure Python. Consumers hit these helpers via the Python API or the hmp schema CLI and ship the resulting JSON over whatever transport they prefer.

Public API:

from hydromodpy.schema import export_full_schema, validate_field

export_full_schema("./schema/")
result = validate_field("flow.param_payload.Sy", 1.5)

Modules

export

Full JSON Schema export for the HydroModPy configuration.

partial_validator

Partial field validator for the HydroModPy configuration.

site_selection_manifest

Shared contract helpers for site-selection manifest files.