Hacker News new | ask | show | jobs
by jstx1 1253 days ago
Why use Pydantic instead of dataclasses?
1 comments

Pydantic can do validation. There’s also the related Typer, which builds command line interfaces from the type annotations on your entry point
You might also want to look at https://www.attrs.org, which is basically what dataclasses were supposed to be.