Skip to content

settings_base_model

Base for Pydantic settings classes.

Classes

SettingsBaseModel

Bases: BaseModel

Basemodel configuration for settings classes

Attributes

model_config class-attribute instance-attribute
model_config = ConfigDict(
    extra="allow",
    frozen=True,
    populate_by_name=True,
    arbitrary_types_allowed=True,
    strict=False,
)

Functions

dump_yaml
dump_yaml() -> str

Serializes the settings object to YAML format.

Returns:

  • str ( str ) –

    The YAML representation of the settings object.

Functions