1 2 3 4 5 6 7 8 9 10 11 12 13 14
from pydantic_settings import BaseSettings class Settings(BaseSettings): PROJECT_NAME: str = "Order Service API" DATABASE_URL: str class Config: env_file = ".env" env_file_encoding = "utf-8" settings = Settings()