Y
Hacker News
new
|
ask
|
show
|
jobs
by
jstx1
1253 days ago
Why use Pydantic instead of dataclasses?
1 comments
rsfern
1253 days ago
Pydantic can do validation. There’s also the related Typer, which builds command line interfaces from the type annotations on your entry point
link
BerislavLopac
1253 days ago
You might also want to look at
https://www.attrs.org
, which is basically what dataclasses were supposed to be.
link