How do you do deep input data validation?

justin walters walters.justin01 at gmail.com
Sat Jul 22 11:54:28 EDT 2017


On Sat, Jul 22, 2017 at 2:01 AM, Amirouche Boubekki <
amirouche.boubekki at gmail.com> wrote:

> It seems that aiohttp recommends using one of trafaret, colander or
> jsonschema
> <http://aiohttp.readthedocs.io/en/stable/tutorial.html?highlight=colander
> >.
> I am not very familiar with those libraries.
>
> I am wondering what's the rational behind this choice. Why is trafaret the
> first in this list? Is it a strong recommendation to use trafaret?
>
> I tried to ask a question on SO about deep validation
> <https://stackoverflow.com/questions/45252612/how-do-you-
> validate-application-logic-using-pyramids-colander>.
> Basically, how do you validate data in your project? What are the best
> pratices?
>
> TIA!
> --
> https://mail.python.org/mailman/listinfo/python-list
>

Personally, I like to use Marshmallow:
http://marshmallow.readthedocs.io/en/latest/



More information about the Python-list mailing list