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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d0e8e60117cc85fa318d13916169821709c9b2b8f98ad17bd2d2d74ce24c555 |
|
MD5 | 758622159072a8076f2b5e14ed3ac06d |
|
BLAKE2b-256 | 5b3ffda16a9eaf1046eacd8c50fedad1dfd27004d0fb55fbd50de32fd1c5d48e |
Close
Hashes for fastapi_debug_toolbar-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a82759ca476ec8e4ffe47fbe521c12f5d47abab67ccb2366abacc6579498326a |
|
MD5 | 243f7c8b910d1f036902de7ab9e8a8e4 |
|
BLAKE2b-256 | a560dd5a3a958a29aab612a3e174a137dc40058caca05a3f21070a63ff924124 |