config
stac_fastapi.types.config ¶
stac_fastapi.types.config module.
ApiSettings ¶
Bases: BaseSettings
ApiSettings.
Defines api configuration, potentially through environment variables.
See pydantic-docs.helpmanual.io/usage/settings/.
Attributes:
environment: name of the environment (ex. dev/prod).
debug: toggles debug mode.
forbidden_fields: set of fields defined by STAC but not included in the database.
indexed_fields:
set of fields which are usually in item.properties
but are indexed
as distinct columns in the database.
Source code in stac_fastapi/types/config.py
10 11 12 13 14 15 16 17 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 50 51 52 53 |
|
check_incompatible_options ¶
check_incompatible_options() -> Self
Check for incompatible options.
Source code in stac_fastapi/types/config.py
45 46 47 48 49 50 51 52 53 |
|
Settings ¶
Holds the global instance of settings.
Source code in stac_fastapi/types/config.py
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
|
get
classmethod
¶
get() -> ApiSettings
Get the settings.
If they have not yet been set, throws an exception.
Source code in stac_fastapi/types/config.py
66 67 68 69 70 71 72 73 74 |
|
set
classmethod
¶
set(base_settings: ApiSettings)
Set the global settings.
Source code in stac_fastapi/types/config.py
61 62 63 64 |
|