Pydantic is a widely used Python library that validates data based on type hints. You define models as ordinary Python classes with annotated fields, and Pydantic checks and converts incoming data to match.
It is a common building block in web APIs and AI projects where structured, reliable data matters, such as parsing model outputs. The project is open source on GitHub with a large community, and it is free to install and use in any project.