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.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.