A toolbar overlay for debugging Flask applications.
Project description
This is a port of the excellent django-debug-toolbar for Flask applications.
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.
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
flask_debugtoolbar-0.15.0.tar.gz
(346.1 kB
view details)
Built Distribution
File details
Details for the file flask_debugtoolbar-0.15.0.tar.gz
.
File metadata
- Download URL: flask_debugtoolbar-0.15.0.tar.gz
- Upload date:
- Size: 346.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 191ad326a447dfe1516196b3474c84b9800b5feafa99aad8149c52525ab347fb |
|
MD5 | f02c75af7339f19b8f528ee827b36c94 |
|
BLAKE2b-256 | 63d7a09a4ad2ed778028e9b09a0ba52fabd066f9c627fba9893ad3651a9576e1 |
File details
Details for the file Flask_DebugToolbar-0.15.0-py3-none-any.whl
.
File metadata
- Download URL: Flask_DebugToolbar-0.15.0-py3-none-any.whl
- Upload date:
- Size: 411.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca9e3e3ec0c955238c55ec4c8bb1e3ae39862c8251f6fefc110ecb85e2328c1a |
|
MD5 | b58a8aa363c4ef6b126af5612a444a30 |
|
BLAKE2b-256 | 4fcc101aeeacc353d462b0477425506db9725cd69b5fbcfc03202cf2a2f41587 |