In the world of modern Python development, data validation and serialization are crucial parts of building robust and maintainable applications. We will investigate Pydantic as an ultimate tool for these purposes. We will explore how Pydantic may help you to simplify your validation and parsing tasks. We will walk through Pydantic model, fields and validators. Finally, we'll take a look into Pydantic BaseSettings class as a powerful tool for your settings management and a part of 12 factor Python application.
Agenda:
What is pydantic?
Why pydantic?
Pydantic models
Pydantic Fields
Pydantic Validators and Serialization
Pydantic Settings Management