Pydantic¶
Pydantic is a data validation library for Python, schema validation and serialization are controlled by type annotations.
Interesting constructs:
- BaseSettings Base class for settings, allowing values to be overridden by environment variables. Attention import pydantic_settings and install pydantic-settings
- YamlConfigSettingsSource get configuration from Yaml file