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.14.1.tar.gz
(260.4 kB
view details)
Built Distribution
File details
Details for the file Flask-DebugToolbar-0.14.1.tar.gz
.
File metadata
- Download URL: Flask-DebugToolbar-0.14.1.tar.gz
- Upload date:
- Size: 260.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccd6a72119ea4f7c486823591b2b2f4a14dc7fb38d6bd495272e0ebdc08724cd |
|
MD5 | 58c3e335069e9286044b9f167ec91bad |
|
BLAKE2b-256 | bed29a4d240564ed973ef15d196d6cdf4cf43de57f954064c69ffcb8c8b8e6f6 |
File details
Details for the file Flask_DebugToolbar-0.14.1-py3-none-any.whl
.
File metadata
- Download URL: Flask_DebugToolbar-0.14.1-py3-none-any.whl
- Upload date:
- Size: 324.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b938b02c418ac86fc18431f484dcd459f24acf3d0c1e72131c06413863bcf04 |
|
MD5 | ad78584eba2471a71e8f5bf64ef35f58 |
|
BLAKE2b-256 | 6537ca4153eace91dfb4291056f2fa8ba26201c22096c9bc0cd9478969b21a1d |