News for hackers. Stuff that matters.
Re:Using attrs for everything in Python by Myrmornis on Thursday August 25, 2016 @01:09PM (#12360659)
How does this compare to schematics? It avoids inheritance, whereas in schematics and similar projects you'd have to inherit from their `Model` class (and thus acquire methods you might not want).
Re:Using attrs for everything in Python by jgalt212 on Thursday August 25, 2016 @02:13PM (#12361142)
Until your comment, I had never seen schematics. I poked around a bit and my initial impression is that it seems like marshmallow-- it's heavily focused on validation rather than reducing boilerplate.
Re:Using attrs for everything in Python by StavrosK on Thursday August 25, 2016 @04:07PM (#12362062)
Schematics looks a bit like a less elegant version of schema. It does seem more focused on validation than attrs, I agree.
Re:Using attrs for everything in Python by asciihacker on Friday August 26, 2016 @09:45AM (#12366156)
Schema [1] does not appear to have any support for object initialization.

[1] https://pypi.python.org/pypi/schema/0.6.2