Skip to main content

A port of the Django Debug Toolbar to Bottle

Project description

This is a port of the flask-debug-toolbar (which is a port of the django-debug-toolbar) for Bottle applications.

Installation

Installing is simple with pip:

$ pip install bottle-debugtoolbar

Usage

Setting up the debug toolbar is simple:

import bottle
from bottle_debugtoolbar import DebugToolbarPlugin

config = {
    'DEBUG_TB_ENABLED': True,
    'DEBUG_TB_INTERCEPT_REDIRECTS': True,
}
plugin = DebugToolbarPlugin(config)
bottle.install(plugin)

Screenshot

https://github.com/sramana/bottle-debugtoolbar/raw/master/docs/images/Bottle_Debug_Toolbar_Screenshot.png

Configuration

The toolbar support several configuration options:

Name Description Default
DEBUG_TB_ENABLED Enable the toolbar? bottle.DEBUG
DEBUG_TB_HOSTS Whitelist of hosts to display toolbar any host
DEBUG_TB_INTERCEPT_REDIRECTS Should intercept redirects? True
DEBUG_TB_PANELS List of module/class names of panels enable all built-in panels

Contributing

Fork us on GitHub

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
Bottle-DebugToolbar-0.5.tar.gz (249.9 kB) Copy SHA256 hash SHA256 Source None Nov 9, 2012

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page