Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
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.
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