openstef_core.base_model#

Configuration utilities for OpenSTEF Beam.

This module provides a BaseConfig class extending Pydantic’s BaseModel with convenience helpers for reading from and writing to YAML files. It also exposes two helper functions write_yaml_config and read_yaml_config that operate on arbitrary config instances or Pydantic models / adapters.

Functions#

read_yaml_config(path, class_type)

Read a configuration object from a YAML file.

write_yaml_config(config, path)

Write the config to a YAML file.

Classes#

BaseConfig(**data)

Base configuration model.

BaseModel(**data)

Base model class for OpenSTEF components.

PydanticStringPrimitive()

Base class for Pydantic-compatible types with string serialization.