import os from pydantic_settings import BaseSettings class Settings(BaseSettings): # API Configuration API_V1_STR: str = "/api/v1" PROJECT_NAME: str = "Mutual Fund Investment API" # External API Keys SWARMS_API_KEY: str = os.getenv("SWARMS_API_KEY", "") SWARMS_BASE_URL: str = "https://api.swarms.world" # Mutual Fund API MFAPI_BASE_URL: str = "https://api.mfapi.in/mf" # CORS Configuration BACKEND_CORS_ORIGINS: list[str] = ["http://localhost:8501", "http://localhost:3000"] # Cache TTL (in seconds) CACHE_TTL: int = 3600 class Config: env_file = ".env" settings = Settings()