You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
594 B
Python
30 lines
594 B
Python
from pydantic_settings import BaseSettings
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
google_project_id: str
|
|
google_location: str = "us-central1"
|
|
|
|
db_host: str
|
|
db_port: int = 5432
|
|
db_user: str
|
|
db_password: str
|
|
db_name: str
|
|
|
|
mockaroo_api_key: str
|
|
mockaroo_base_url: str = "https://api.mockaroo.com/api"
|
|
use_mockaroo_writes: bool = False
|
|
|
|
environment: str = "production"
|
|
debug: bool = False
|
|
|
|
# Cloud SQL
|
|
cloud_sql_connection_name: str | None = None
|
|
|
|
class Config:
|
|
env_file = ".env"
|
|
extra = "ignore"
|
|
|
|
|
|
settings = Settings()
|