Re:Parse, Don't Validate (2019)
by dnadler on Saturday June 26, 2021 @10:45AM
(#27642308)
We've had a similar experience using pydantic. We integrated it quite tightly with a django project and it's been awesome.
[ Parent
| on HN ]
Where did you find it valuable to wire in to Django?
We effectively use them as serializers, and also as a way to allow users to interact with the models in a controlled manner.
In our app, django essentially sits between a compute cluster and a front end. The pydantic objects are used to define the work to be done on the compute cluster.