Base
sereto.models.base
¶
SeretoBaseModel
¶
Bases: BaseModel
Pydantic BaseModel with custom strict configuration.
This class is a subclass of pydantic's BaseModel. It is used to define custom configuration for Pydantic models.
Source code in sereto/models/base.py
9 10 11 12 13 14 15 |
|
SeretoBaseSettings
¶
Bases: BaseSettings
Pydantic's BaseSettings with custom configuration.
Source code in sereto/models/base.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
|
settings_customise_sources(settings_cls, init_settings, env_settings, dotenv_settings, file_secret_settings)
classmethod
¶
Define the sources and their order for loading the settings values.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
settings_cls
|
type[BaseSettings]
|
The Settings class. |
required |
init_settings
|
PydanticBaseSettingsSource
|
The |
required |
env_settings
|
PydanticBaseSettingsSource
|
The |
required |
dotenv_settings
|
PydanticBaseSettingsSource
|
The |
required |
file_secret_settings
|
PydanticBaseSettingsSource
|
The |
required |
Returns:
Type | Description |
---|---|
tuple[PydanticBaseSettingsSource, ...]
|
A tuple containing the sources and their order for loading the settings values. |
Source code in sereto/models/base.py
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
|