A debug toolbar for FastAPI.
Project description
Debug Toolbar
🐞A debug toolbar for FastAPI based on the original django-debug-toolbar.🐞
Swagger UI & GraphQL are supported.
Documentation: https://fastapi-debug-toolbar.domake.io
Installation
pip install fastapi-debug-toolbar
Quickstart
Add DebugToolbarMiddleware
middleware to your FastAPI application:
from debug_toolbar.middleware import DebugToolbarMiddleware
from fastapi import FastAPI
app = FastAPI(debug=True)
app.add_middleware(DebugToolbarMiddleware)
SQLAlchemy
Please make sure to use the "Dependency Injection" as described in the FastAPI docs and add the SQLAlchemy panel to the argument list of the Debug Toolbar middleware:
app.add_middleware(
DebugToolbarMiddleware,
panels=["debug_toolbar.panels.sqlalchemy.SQLAlchemyPanel"],
)
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
Built Distribution
Close
Hashes for fastapi-debug-toolbar-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff589ed4466524d398e43d785c96e7ef888942acb12ded3ee6a06a7c4a1f26a6 |
|
MD5 | a9867fe98d7aada87d00104e318da1f1 |
|
BLAKE2b-256 | 3f3f1fd5eeadf4b195be2704df9eebb8c2e14a853538488bc834931ff6840e3d |
Close
Hashes for fastapi_debug_toolbar-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f664fbca980e049dcfe9b6c7bc3073c9c37bb692cebaf380265d4d8044340a2 |
|
MD5 | b7b6f26c8f2265f925dccb007a8aa9df |
|
BLAKE2b-256 | 25e1c2ac7f0419623424d6ce03b077dffc15a2a5a5226502dada2d6c77d20bdd |