Skip to main content
Pydantic Docs

Search documentation

Type to search this documentation.

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 here points at an environment value that didn't match its field. Logfire can record failed validations and their structured errors, so you can see which setting failed and why.

{}

Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu