Showing posts with label PYDANTIC. Show all posts
Showing posts with label PYDANTIC. Show all posts

Monday, 11 July 2022

Pydantic or dataclasses? Why not both? Convert Between Them by Diego Barba via @TDataScience

Use data classes in your FastAPI projects, and speed up your pydantic model operations.

This was definitely something lacking in my knowledge and I am glad to have that gap now filled. Definitely, something to carefully think about. I'm so glad it gives some examples and sample code.

Monday, 7 September 2020

The Beginner’s Guide to Pydantic by Ng Wai Foong via @BttrProgramming

 A Python package to parse and validate data.

This looks really useful and well worth investigation and some experimentation. Certainly I only did the basics with it but can already see the value in it's use.