FastAPI applications manage configuration with pydantic-settings (BaseSettings) — a class that reads config from environment variables (and .env files) with validation and type conversion, keeping secrets out of code and ensuring config is correct at startup.
