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" system as described in the FastAPI docs and add the SQLAlchemyPanel
to your panel list:
app.add_middleware(
DebugToolbarMiddleware,
panels=["debug_toolbar.panels.sqlalchemy.SQLAlchemyPanel"],
)
Tortoise ORM
Add the TortoisePanel
to your panel list:
app.add_middleware(
DebugToolbarMiddleware,
panels=["debug_toolbar.panels.tortoise.TortoisePanel"],
)
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.3.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d822f207e773e43481de3db29ce08ac8e70d06e7ed8fa1209a48c26ce74fee69 |
|
MD5 | 7bbec1dd5741488e2604954c4ef11611 |
|
BLAKE2b-256 | ab831ba156fd417325ab30872234676269de1b720f5e58c5956382106aae1cb1 |
Close
Hashes for fastapi_debug_toolbar-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b506e400c779a970a282153961f185ae39275957e2c92fa05201245dc80074c |
|
MD5 | a2c7c8e6a1f9d95839728d15bd6cb19c |
|
BLAKE2b-256 | 031310363c159d2202c65c933d690d9782f253238b98c5e3b195e95428e40ff9 |