News for hackers. Stuff that matters.
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.
Re:Parse, Don't Validate (2019) by theptip on Saturday June 26, 2021 @12:20PM (#27643187)
Where did you find it valuable to wire in to Django?
Re:Parse, Don't Validate (2019) by dnadler on Monday June 28, 2021 @01:46PM (#27665028)
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.