pydantic is an elegant and popular Python library, that is used for performing data parsing and validation at runtime, using Python‘s type hints, and providing user-friendly errors, when the data is invalid.
Here is the link to the article on pydantic:
Enjoy 🙂 !!!