SettingsConfigDict
settus.SettingsConfigDict
ยค
Bases: SettingsConfigDict
Cloud configuration
ATTRIBUTE | DESCRIPTION |
---|---|
keyvault_url |
Keyvault URL |
keyvault_credentials |
Azure Token credentials
TYPE:
|
aws_secret_name |
AWS secret name |
Examples:
from settus import BaseSettings
from settus import Field
from settus import SettingsConfigDict
class Settings(BaseSettings):
model_config = SettingsConfigDict(
keyvault_url="https://o3-kv-settus-dev.vault.azure.net/"
)
my_azure_secret: str = Field(default="undefined", alias="my-secret")
settings = Settings()
print(settings)
#> my_azure_secret='secretsauce'