Skip to content

a tool to wrap Flask apps so that error messages are JSON and not HTML

License

Notifications You must be signed in to change notification settings

eric-s-s/bind_json_error_handlers

Repository files navigation

https://travis-ci.com/eric-s-s/bind_json_error_handlers.svg?branch=master https://coveralls.io/repos/github/eric-s-s/bind_json_error_handlers/badge.svg?branch=master

bind_json_error_handlers

This binds json error handlers to a Flask so that any error generated is handled as a json response

To install:

$ pip install git+https://github.com/eric-s-s/bind_json_error_handlers

or:

$ git clone https://github.com/eric-s-s/bind_json_error_handlers
$ cd sentences
$ python setup.py install  # or pip install .

to use:

from bind_json_error_handlers import bind_json_error_handlers
app = Flask(__name__)
bind_json_error_handler(app)

the end.

About

a tool to wrap Flask apps so that error messages are JSON and not HTML

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages