Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
axzak
· 8y ago · 0 comments
It will be nice to have this but for data deserialization, which is the case in the example, I would still use drf serializers or marshmallow schemas.
Comments
[–]
aldanor
8y ago
Re: serialization, worth mentioning cattrs project (work with attrs classes, but would work the same way with stdlib dataclass):
https://github.com/Tinche/cattrs