Skip to main content

A toolbar overlay for debugging Flask applications.

Reason this release was yanked:

Fails due to missing `packaging` import, use 0.14.1 instead.

Project description

This is a port of the excellent django-debug-toolbar for Flask applications.

https://github.com/pallets-eco/flask-debugtoolbar/actions/workflows/tests.yml/badge.svg

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


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.0.tar.gz (260.4 kB view details)

Uploaded Source

Built Distribution

Flask_DebugToolbar-0.14.0-py3-none-any.whl (324.8 kB view details)

Uploaded Python 3

File details

Details for the file Flask-DebugToolbar-0.14.0.tar.gz.

File metadata

  • Download URL: Flask-DebugToolbar-0.14.0.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

Hashes for Flask-DebugToolbar-0.14.0.tar.gz
Algorithm Hash digest
SHA256 bd0435e902a02b2efc1e8cdddca0f4e4c1b746d68c8b860e449984e962766a18
MD5 e1284f2e11b0d280426e5fbdbbd4b003
BLAKE2b-256 634ed300353389ba67518448ffcbee510b03f5469c45c0c046f649693fd9435b

See more details on using hashes here.

File details

Details for the file Flask_DebugToolbar-0.14.0-py3-none-any.whl.

File metadata

File hashes

Hashes for Flask_DebugToolbar-0.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 20ec8637e1494e09cd2a6e1efefcec3f8277fe7292ae9778aa3d0d411127630d
MD5 25bf73cafb4b3fbdc75f500bc11241bb
BLAKE2b-256 b0bf27adafb7a3dbe4f5c9ec969bc37614fce15b535464647d566794908febdb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page