Manage settings with Pydantic
Pydantic is a wonderful library that allows to easily validate your data, simply defining a schema. It is highly customizable and can be used, for instance, to validate data coming from a POST request.
In this tutorial we will use it to create a Settings
class whose fields can be changed in different ways, triggering any time the validation.