A port of the Django Debug Toolbar to Bottle
JavaScript Python
Latest commit c959f76 Nov 9, 2012 @sramana Merge pull request #1 from FSX/master
Added support for Python 3
Permalink
Failed to load latest commit information.
bottle_debugtoolbar
docs
example
.gitignore
LICENSE
MANIFEST.in
README.rst
setup.py

README.rst

Bottle Debug Toolbar

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

Credits

  1. django-debug-toolbar
  2. flask-debug-toolbar
  3. django-dtpanel-htmltidy

Contributing

Fork us on GitHub