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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b738a2817d0020702513e4e43eba1ff116a935780889a83fb3615594fc497340 |
|
MD5 | 0f76da0b3f52d07a2d74a199dc63e3f5 |
|
BLAKE2b-256 | 13f0d229abd9ad9bdf11ef7fba49e880b457dc2ad99c9ddb1c9ad74fc24f00d4 |
Close
Hashes for fastapi_debug_toolbar-0.6.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26aed3a505ca689359a06b5dc37c9845b2b984579dce9f2494c928237c1213be |
|
MD5 | 0cd86118da66a20f060aa66d17c1de15 |
|
BLAKE2b-256 | a593bb5a1b46a2ea16247c123bc4af8f24cc72aafe06ccbdf87a1f791942ed15 |