my_module module
- pydantic settings my_module.AutoModuleSettings
Bases:
BaseSettingsDocument your project settings very conveniently. Applies like wise to pydantic models.
- Config:
env_prefix: str = foo_
frozen: bool = False
- Fields:
- Validators:
- field field_plain_with_validator: int = 100
Show standard field with type annotation.
- Validated by:
- field field_with_constraints_and_description: int = 5
Shows constraints within doc string.
- Constraints:
ge = 0
le = 100
- field field_with_validator_and_alias: str = 'FooBar' (alias 'BarFoo')
Shows corresponding validator with link/anchor.
- Validated by:
- field field_without_default: str [Required]
Shows the [Required] marker in the signature.
- validator check_max_length_ten » field_plain_with_validator, field_with_validator_and_alias
Show corresponding field with link/anchor.