prefect.settings.base
PrefectBaseSettings
Bases: BaseSettings
Source code in src/prefect/settings/base.py
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 |
|
settings_customise_sources(settings_cls, init_settings, env_settings, dotenv_settings, file_secret_settings)
classmethod
Define an order for Prefect settings sources.
The order of the returned callables decides the priority of inputs; first item is the highest priority.
See https://docs.pydantic.dev/latest/concepts/pydantic_settings/#customise-settings-sources
Source code in src/prefect/settings/base.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
|
to_environment_variables(exclude_unset=False, include_secrets=True)
Convert the settings object to a dictionary of environment variables.
Source code in src/prefect/settings/base.py
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
|
PrefectSettingsConfigDict
Bases: SettingsConfigDict
Configuration for the behavior of Prefect settings models.
Source code in src/prefect/settings/base.py
146 147 148 149 150 151 152 153 154 155 156 157 158 |
|
prefect_toml_table_header: tuple[str, ...]
instance-attribute
Header of the TOML table within a prefect.toml file to use when filling variables.
This is supplied as a tuple[str, ...]
instead of a str
to accommodate for headers
containing a .
.
To use the root table, exclude this config setting or provide an empty tuple.