config.py 257 B

12345678910111213
  1. from pydantic_settings import BaseSettings
  2. class Settings(BaseSettings):
  3. app_name: str = "MyApp"
  4. debug: bool = True
  5. database_url: str
  6. redis_url: str
  7. api_token: str
  8. class Config:
  9. env_file = ".env"
  10. settings = Settings()