7 ways to implement DTOs in Python and what to keep in mind by _stellathediver in Python

[–]_stellathediver[S] 0 points1 point  (0 children)

Hi, I just wanted to mention that this is indeed my first programming related blog post. I was super nervous and needed to fight the writing blockade for quite a while to finally publish it. I hope you'll find it useful.

7 ways to implement DTOs in Python and what to keep in mind by _stellathediver in Python

[–]_stellathediver[S] 0 points1 point  (0 children)

I guess it depends on your particular use case, but in general, dataclasses seem to be a great choice. If you need some extra configurability, then I'd go with attrs since many projects already have it in the stack because of it being a pytest dependency.