Pydantic or dataclasses? Why not both? Convert Between Them
Use dataclasses in your FastAPI projects, and speed up your pydantic model operations
Published in
5 min readJun 21, 2022
Python dataclasses are fantastic. Pydantic is fantastic. It is a tough choice if indeed we are confronted with choosing one or the other. I would say that comparing these two great modules is like comparing pears with…