News for hackers. Stuff that matters.
Re:Show HN: PySchemes – A library for validating data struct... by fermigier on Sunday November 05, 2017 @08:43AM (#15629324)
Re:Show HN: PySchemes – A library for validating data struct... by shazzy on Sunday November 05, 2017 @09:14AM (#15629459)
Also a shameless plug for my python library for declarative multi-field validation:

https://github.com/shezadkhan137/required

It makes it easier to expresses complex inter-field validation rules, and is meant to be used with other validation libraries.

Re:Show HN: PySchemes – A library for validating data struct... by willvarfar on Sunday November 05, 2017 @12:00PM (#15630264)
May I join you in shameless plugging? My own obiwan:

https://pypi.python.org/pypi/obiwan

It predates the MyPy syntax and, in my opinion, is a gazillion times prettier and my "pythonic". I'm not bitter ;)

It's "actively maintained" but I haven't needed to do anything in ages - it just works :)

PySchemes seems to have very similar syntax, but obiwan is also able to validate signatures in function annotations and is particularly good at validating JSON and msgpack APIs (the python code to validate an API is self-describing and makes excellent API documentation for other parties).

Re:Show HN: PySchemes – A library for validating data struct... by chucksmash on Sunday November 05, 2017 @11:18AM (#15630040)
It looks similar to voluptuous. Browsing READMEs, the other three examples expose their own library level representations for primitive types (e.g. Field.int() or {"type": "int"} instead of the primitive Python type int).
Re:Show HN: PySchemes – A library for validating data struct... by xapata on Sunday November 05, 2017 @02:53PM (#15631219)
https://github.com/selik/destructure

Similar design to Voluptuous, but it also supports a destructuring bind instead of just validation.

Re:Show HN: PySchemes – A library for validating data struct... by carapace on Sunday November 05, 2017 @06:51PM (#15632513)
Re:Show HN: PySchemes – A library for validating data struct... by BerislavLopac on Sunday November 05, 2017 @03:08PM (#15631294)
Re:Show HN: PySchemes – A library for validating data struct... by fermigier on Sunday November 05, 2017 @08:51AM (#15629351)
Even more interesting projects here:

- https://awesome-python.com/#data-validation

Re:Show HN: PySchemes – A library for validating data struct... by logronoide on Sunday November 05, 2017 @09:19AM (#15629487)
Why is better PySchemes than others like Voluptuous? I’m happy with it, but open to new stuff.
Re:Show HN: PySchemes – A library for validating data struct... by StavrosK on Sunday November 05, 2017 @09:43AM (#15629594)
My preferred library is "schema", as it's very functional.