from pydantic import BaseSettings class Settings(BaseSettings): app_name: str = "FastAPI App" app_env: str = "development" host: str = "127.0.0.1" port: int = 8000 debug: bool = True class Config: env_file = ".env" env_file_encoding = "utf-8" settings = Settings()