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.13.1.tar.gz
(259.3 kB
view details)
Built Distribution
File details
Details for the file Flask-DebugToolbar-0.13.1.tar.gz
.
File metadata
- Download URL: Flask-DebugToolbar-0.13.1.tar.gz
- Upload date:
- Size: 259.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/26.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.48.2 importlib-metadata/4.11.3 keyring/18.0.1 rfc3986/1.4.0 colorama/0.4.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c26aa013a9813b8886857bf0ec24d28ab494114a264baf06c951cadc4dd0dae |
|
MD5 | b2e0a7c99851b6861c3c3b514a587f24 |
|
BLAKE2b-256 | cf756891fdfeed6c6c8ca8af5d90c772e856c590312ce68c491c6aac09a30b00 |
File details
Details for the file Flask_DebugToolbar-0.13.1-py3-none-any.whl
.
File metadata
- Download URL: Flask_DebugToolbar-0.13.1-py3-none-any.whl
- Upload date:
- Size: 324.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/26.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.48.2 importlib-metadata/4.11.3 keyring/18.0.1 rfc3986/1.4.0 colorama/0.4.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 491c737f321830c06a2835784acf1fc8488fd257a0ef318810b3b6bed5f600d5 |
|
MD5 | 41eb0fa767f1cad39653da3d6b47612c |
|
BLAKE2b-256 | 5da3fb5f6fd765ba566f09fb736bcb7be99774106389d24f1ac5506866f507dd |