# Overview # Key Considerations - Pydantic tries to convert data types by default # Implementation Details ## Notes from Pydantic Course - [here](https://www.youtube.com/watch?v=M81pfi64eeM) - `default_factory` is a function that gets called to create a default value - As a an example, you could create one for a `created_at` timestamp, which provides time from `now()` - ![[image-37.png]] - You can use it to add constraints, such as minimum and maximum value - ![[Pydantic-1772635415782.webp]] # Useful Links - [Welcome to Pydantic - Pydantic](https://docs.pydantic.dev/latest/) # Related Topics - [[Python]] - [[Type Hinting]] ## Reference #### Working Notes #### Sources - [Python Pydantic Tutorial: Complete Data Validation Course (Used by FastAPI) - YouTube](https://www.youtube.com/watch?v=M81pfi64eeM)