Adds warnings support to Flask-Debugtoolbar
Project description
Adds warning support for Flask-Debugtoolbar
Installation
flask-debugtoolbar-warnings is available on pypi and installable with:
pip install flask-debugtoolbar-warnings
This package supports Python 2.7, 3.4, 3.5, 3.6 (and presumably Python 3.7 and the pypy versions of these Python versions, though it is untested).
Usage
After installing this package, register it into the flask-debugtoolbar loader by setting the DEBUG_TB_PANELS configuration variable before calling init_app on the DebugToolbar object:
app.config['DEBUG_TB_PANELS'] = [ 'flask_debugtoolbar_warnings.WarningsPanel' ]
After the first request through your application, this panel will begin intercepting all warnings that are not ignored or already filtered by being set to once or module, or have been set to error (these throw exceptions rather than pass fully through the warning machinery).
You may view these warnings in the DebugToolbar side panel under the Warnings section. The warnings panel will display the category (e.g. what kind of warning), filename, line number, message and source (if provided).
v0.1.0 (2018-06-xx)
Initial release.
Will it into existence.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for flask-debugtoolbar-warnings-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60e0cb34b2ddc64bcf941030a52adeb11b48886df4593b60c2563fa960c86ed9 |
|
MD5 | a7d0ccbe098e6f9b372e679e7432554f |
|
BLAKE2b-256 | aac69636375d2184a946ebfbbc445c1d332510ec6f60cbe5d9244809ba161c5a |
Hashes for flask_debugtoolbar_warnings-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44170c26c6d691c00518125882816e415c5ed3512b266706cac4f721d8081235 |
|
MD5 | 8f632d2375cb0290bc24c761c163a8ca |
|
BLAKE2b-256 | 71aa64d90f4ae4ad0950c318d350e7b37f3ce350bf334e0ec92ce2ae8313ef7d |