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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c08da1d23f6e18c6340637d04b8c1d010a83222c25d6f0fb597b3685b4f2b01 |
|
MD5 | f8454c6254b6b6b3636b65f9af4cf6cb |
|
BLAKE2b-256 | 216f63be33f7a2559b278b2af96096e06c058e6720be4a2e0be38bac0d003a30 |
Close
Hashes for fastapi_debug_toolbar-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5626c1b994dd523629537283d72737610e295f05ba15ea922635eeb2a9a90616 |
|
MD5 | 962d38420d846eddfdfb2abd60de0c98 |
|
BLAKE2b-256 | f5e820549991854e7a4939edfd3e6683e88f1b580caa3012193944c6301cfe74 |