Hacker Newsnew | past | comments | ask | show | jobs | submitlogin



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.


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).


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).


https://github.com/selik/destructure

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




Even more interesting projects here:

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


Why is better PySchemes than others like Voluptuous? I’m happy with it, but open to new stuff.


My preferred library is "schema", as it's very functional.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: