Comment Comment by anoncake Check out dataclasses[1]. It's in the standard library of Python 3.7 and there's a backport for earlier versions.https://docs.python.org/3/library/dataclasses.html parent anoncake 7 years ago
https://docs.python.org/3/library/dataclasses.html