from pydantic_settings import BaseSettings class Settings(BaseSettings): database_url: str = "postgresql+asyncpg://reddit:changeme@localhost:5432/reddit_monitor" reddit_user_agent: str = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36" seed_subreddits: str = "" digest_hour_utc: int = 23 ai_summary_enabled: bool = False @property def database_url_sync(self) -> str: return self.database_url.replace("+asyncpg", "+psycopg2") model_config = {"env_file": ".env", "env_file_encoding": "utf-8"} settings = Settings()