from pydantic_settings import BaseSettings from functools import lru_cache class Settings(BaseSettings): database_url: str = "sqlite:///./tasks.db" debug: bool = False secret_key: str = "your-secret-key-change-in-production-min-32-chars" algorithm: str = "HS256" access_token_expire_minutes: int = 30 refresh_token_expire_days: int = 7 class Config: env_file = ".env" @lru_cache def get_settings() -> Settings: return Settings()