from pydantic_settings import BaseSettings class Settings(BaseSettings): CRM_API_URL: str CRM_API_KEY: str CRM_API_SECRET: str CRM_STORE_SID: str CRM_STORE_KEY: str class Config: env_file = ".env" # Установите extra = "ignore", если в .env есть другие переменные extra = "ignore" settings = Settings()