Pydantic

from blog Roman Imankulov, | ↗ original
Project-specific models See Pydantic model options for more options. from pydantic import BaseModel class Model(BaseModel): """Generic project-specific model.""" class Config: # Allow field population by its name or alias # (helpful for mapping external API values) allow_population_by_field_name = True class FrozenModel(BaseModel): """Generic...