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.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b331f15da2275c1371322d5288e591db7ae4b37e4f1beedc1c3e1ee05160874 |
|
MD5 | a0d8f2c6f155c31097bc5f07391764e9 |
|
BLAKE2b-256 | a7fced7335fd12fbc1bbfb8e9a58f4d71f62c4aa58c2d61c8ef731a6a27281bb |
Close
Hashes for fastapi_debug_toolbar-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 084ca80c7abc97fb240d88f4d9da34360538531a4992a7251df71611fcb2f6a5 |
|
MD5 | 53431976c68d7aa950a835796ca0b8ac |
|
BLAKE2b-256 | b2cf4eead0657acc77eedcb357f13a736eaa62d2ab5eacf6204e3e8f6dfe3ab0 |