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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b66db0ef8fc85bbb57c8484bf9c576018ecdb9f28e5d802b79a6cbb4fa7b7ca8 |
|
MD5 | 4a07450a24014f1d83fee535f3a47e22 |
|
BLAKE2b-256 | 265a24d9fd053b26d9e9ca6eb24fed17363aac6b92a7d4ac727b6905e18cdb88 |
Close
Hashes for fastapi_debug_toolbar-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c23a150b34e5bf289650573afaafd09674bb5e8faed8937ec39ee08017677478 |
|
MD5 | 948fa06da426b1f8f3556cdca3938cb9 |
|
BLAKE2b-256 | e0eac574fa0c6e848f9c9dc8f540912e12eb79771a7c76340773cae6f6022900 |