-
Pydantic is dataclasses, except types are validated at runtime? It's nice and looks just like a normal dataclass looking at https://pydantic-docs.helpmanual.io/
For any larger program, pervasive type annotations and "compile" time checking with mypy is a really good idea though, which somewhat lessens the need for runtime checking.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
dataclasses was explicitly inspired by attrs. https://github.com/ericvsmith/dataclasses/issues/1
-
This is only remotely relevant but I recently learned that the related `dataclasses` id implemented by constructing _string representations_ of functions and calling `exec` on them.
https://github.com/python/cpython/blob/3.10/Lib/dataclasses....
Kind of blew my mind
-
My favourite among this class of Python libraries has been traits from Enthought:
https://github.com/enthought/traits