Flask Debug-toolbar
===================
This is a port of the excellent `django-debug-toolbar <https://github.com/jazzband/django-debug-toolbar>`_
for Flask applications.
.. image:: https://github.com/pallets-eco/flask-debugtoolbar/actions/workflows/tests.yml/badge.svg
:target: https://github.com/pallets-eco/flask-debugtoolbar/actions
Installation
------------
Installing is simple with pip::
$ pip install flask-debugtoolbar
Usage
-----
Setting up the debug toolbar is simple::
from flask import Flask
from flask_debugtoolbar import DebugToolbarExtension
app = Flask(__name__)
# the toolbar is only enabled in debug mode:
app.debug = True
# set a 'SECRET_KEY' to enable the Flask session cookies
app.config['SECRET_KEY'] = '<replace with a secret key>'
toolbar = DebugToolbarExtension(app)
The toolbar will automatically be injected into Jinja templates when debug mode is on.
In production, setting ``app.debug = False`` will disable the toolbar.
See the `documentation`_ for more information.
.. _documentation: https://flask-debugtoolbar.readthedocs.io/
Raw data
{
"_id": null,
"home_page": "https://github.com/pallets-eco/flask-debugtoolbar",
"name": "Flask-DebugToolbar",
"maintainer": "Matt Good",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "matt@matt-good.net",
"keywords": "flask, debug, toolbar",
"author": "Michael van Tellingen",
"author_email": "michaelvantellingen@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/c8/21/a78b55c8d90e69d2724a8c37a3148dd5e9d47b39360130cf6a9f65c71d6a/flask_debugtoolbar-0.15.1.tar.gz",
"platform": null,
"description": "Flask Debug-toolbar\n===================\n\nThis is a port of the excellent `django-debug-toolbar <https://github.com/jazzband/django-debug-toolbar>`_\nfor Flask applications.\n\n.. image:: https://github.com/pallets-eco/flask-debugtoolbar/actions/workflows/tests.yml/badge.svg\n :target: https://github.com/pallets-eco/flask-debugtoolbar/actions\n\n\nInstallation\n------------\n\nInstalling is simple with pip::\n\n $ pip install flask-debugtoolbar\n\n\nUsage\n-----\n\nSetting up the debug toolbar is simple::\n\n from flask import Flask\n from flask_debugtoolbar import DebugToolbarExtension\n\n app = Flask(__name__)\n\n # the toolbar is only enabled in debug mode:\n app.debug = True\n\n # set a 'SECRET_KEY' to enable the Flask session cookies\n app.config['SECRET_KEY'] = '<replace with a secret key>'\n\n toolbar = DebugToolbarExtension(app)\n\n\nThe toolbar will automatically be injected into Jinja templates when debug mode is on.\nIn production, setting ``app.debug = False`` will disable the toolbar.\n\nSee the `documentation`_ for more information.\n\n.. _documentation: https://flask-debugtoolbar.readthedocs.io/\n",
"bugtrack_url": null,
"license": null,
"summary": "A toolbar overlay for debugging Flask applications.",
"version": "0.15.1",
"project_urls": {
"Changelog": "https://github.com/pallets-eco/flask-debugtoolbar/releases",
"Documentation": "https://flask-debugtoolbar.readthedocs.io/",
"Homepage": "https://github.com/pallets-eco/flask-debugtoolbar"
},
"split_keywords": [
"flask",
" debug",
" toolbar"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "667917658fe19bb12871556f495a50e907a6ab0a2c0a5ed1c490e1cfa2f019b2",
"md5": "a810af79680475057851732b5f475533",
"sha256": "f3043d96e9fb9bc3b13ee8a02a5ecc531974f2fdceefa19ce3ba4a700ad40f36"
},
"downloads": -1,
"filename": "Flask_DebugToolbar-0.15.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a810af79680475057851732b5f475533",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 411804,
"upload_time": "2024-04-27T18:08:51",
"upload_time_iso_8601": "2024-04-27T18:08:51.224753Z",
"url": "https://files.pythonhosted.org/packages/66/79/17658fe19bb12871556f495a50e907a6ab0a2c0a5ed1c490e1cfa2f019b2/Flask_DebugToolbar-0.15.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c821a78b55c8d90e69d2724a8c37a3148dd5e9d47b39360130cf6a9f65c71d6a",
"md5": "f94d3efd6b2df1651ab2bf2269053fbc",
"sha256": "8c76666f1553641567da8d91c74fe92caa072cfc01429564aa5e109de10b1806"
},
"downloads": -1,
"filename": "flask_debugtoolbar-0.15.1.tar.gz",
"has_sig": false,
"md5_digest": "f94d3efd6b2df1651ab2bf2269053fbc",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 346044,
"upload_time": "2024-04-27T18:08:55",
"upload_time_iso_8601": "2024-04-27T18:08:55.989373Z",
"url": "https://files.pythonhosted.org/packages/c8/21/a78b55c8d90e69d2724a8c37a3148dd5e9d47b39360130cf6a9f65c71d6a/flask_debugtoolbar-0.15.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-27 18:08:55",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "pallets-eco",
"github_project": "flask-debugtoolbar",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "flask-debugtoolbar"
}