3 ms·
Exactly this. From SQL Alchemy to pydantic model, from pydantic model to pydantic dto, from pydantic dto to json/protobuf/binary to ship over the wire…
by reactordev 1y ago
Exactly this. From SQL Alchemy to pydantic model, from pydantic model to pydantic dto, from pydantic dto to json/protobuf/binary to ship over the wire…
- morkalork 1y agoOkay, so seeing pydantic types used in every part of an app not just the API layer is normal.
- reactordev 1y agoYes. It’s the only way to ensure typing in a dynamic typed world. You can attrs, you can validate, but pydantic does it all.