News for hackers. Stuff that matters.
Re:Attrs – the Python library everyone needs (2016) by kissgyorgy on Saturday December 25, 2021 @01:43AM (#29681066)
Apples and oranges. pydantic is a serialization and input validation library, attrs is a class-generator library. Completely different features, completely different use cases.

Yes, you can do validation in attrs, but it's not meant to be used the same way as pydantic. For serialization, you need cattrs, which is a completely different package.

There are no comments on this comment yet.