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.6.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8946cca0332c9da2e83cc78509abae11b36ba9fafe425987a189a3ab82b63b45 |
|
MD5 | a49cfc0f4d0f43894ca5dd56f6664bd1 |
|
BLAKE2b-256 | 85535b5cf126c3678e3b658a80fa8cad86950a4ae69cd56eff05bcc5ba93a50d |
Close
Hashes for fastapi_debug_toolbar-0.6.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7ae0e3cde4151fcb4f913fce610781975138f9a34329cda63125c0ba1fa0e8a |
|
MD5 | 5f28564c1da55498855425872ec7e510 |
|
BLAKE2b-256 | 470ca834f0772bdbd1607832c4f2e89b5356773b6f956a07e8daa05ce743f7aa |