WTForms is awesome for validating POST data. What about other request data?
The Flask-Inputs extension adds support for WTForms to validate request data from args to headers to json.
To install Flask-Inputs, simply:
$ pip install Flask-Inputs
- JSON validation requires the optional jsonschema package
- e-mail validation requires email_validator package
$ pip install Flask-Inputs jsonschema email_validator
make clean install test build
Documentation is available at http://pythonhosted.org/Flask-Inputs