It would be highly beneficial to add support for pydantic-settings within griffe-pydantic. Currently, griffe-pydantic effectively handles Pydantic BaseModel classes, but lacks the ability to process pydantic_settings.BaseSettings classes.
https://docs.pydantic.dev/latest/concepts/pydantic_settings/
Motivation:
pydantic-settings is widely used for managing application configurations, particularly in modern Python projects. Integrating it with griffe-pydantic would:
- Simplify Configuration Documentation: Enable automatic generation of documentation for settings models, including environment variable names, default values, and validation constraints.
- Enhance Developer Experience: Provide a consistent and streamlined approach to documenting both data models and configuration settings within Pydantic-based projects.
- Improve Code Maintainability: Ensure that configuration settings are documented alongside the rest of the codebase, reducing the risk of inconsistencies.
It would be highly beneficial to add support for
pydantic-settingswithin griffe-pydantic. Currently, griffe-pydantic effectively handles PydanticBaseModelclasses, but lacks the ability to processpydantic_settings.BaseSettingsclasses.https://docs.pydantic.dev/latest/concepts/pydantic_settings/
Motivation:
pydantic-settingsis widely used for managing application configurations, particularly in modern Python projects. Integrating it with griffe-pydantic would: