Back to Pydantic

Settings Management

docs/concepts/pydantic_settings.md

2.14.0b1561 B
Original Source

Settings Management

Pydantic Settings provides optional Pydantic features for loading a settings or config class from environment variables or secrets files.

Settings are validated from environment variables and secrets files, so a [ValidationError][pydantic_core.ValidationError] here points at an environment value that didn't match its field. Logfire records each validation and its structured errors, so you can see which setting failed and why.

{{ pydantic_settings }}