Dataclasses vs Attrs vs Pydantic
Posted by Jack McKew on Fri 07 August 2020 in Data Science • Tagged with datascience, python • 6 min read
Python 3.7 introduced dataclasses, a handy decorator that can make creating classes so much easier and seamless. This post will go into comparing a regular class, a 'dataclass' and a class using attrs. Dataclasses were based on attrs, which is a python package that also aims to make creating …
Continue reading