Comment on Parse, don’t validate
Ephera@lemmy.ml 9 months ago
Hmm, I guess, this is why even a loosey goosey language like Python would have Pydantic…
Comment on Parse, don’t validate
Ephera@lemmy.ml 9 months ago
Hmm, I guess, this is why even a loosey goosey language like Python would have Pydantic…
bugsmith@programming.dev 9 months ago
Honestly, for any large scale project in Python, Pydantic makes it bearable. We use Python heavily at work (and I’d argue we shouldn’t be for the projects we’re working on…), and Pydantic is the one library we’re using that I wouldn’t be without. Precisely because it allows us to inject some of these static typing concepts and keeps us honest, and our code understandable.