☆
7
Dataclass or Pydantic model for application config?
Config comes from environment variables and a YAML file. I want validation for ports and URLs. Pydantic feels heavy for ten fields but dataclasses have no validation. What do you use?
3 replies