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 SQLAlchemy panel to the argument list of the Debug Toolbar middleware:
app.add_middleware(
DebugToolbarMiddleware,
panels=["debug_toolbar.panels.sqlalchemy.SQLAlchemyPanel"],
)
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.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4774052b9063cad18869b45ae45e2aa3e1cd92901fd8d1bce646ebf881b4ac14 |
|
MD5 | 1921becd7de3cda5ee770b4cdc5dfa18 |
|
BLAKE2b-256 | c7070bfa3af52d60cde9336c9324d497784c49ebc93197bdb305d0e0a3e1ac40 |
Close
Hashes for fastapi_debug_toolbar-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f89588377ca85ebc46e161f6877a5a4c3d05242d27c2040267b15e66741e8f67 |
|
MD5 | 46cb5ac3d277eaf264d716c99c6ce386 |
|
BLAKE2b-256 | 0db3c3decd0fae587dd3e88705f484f7b1a19a279c0e73ae94606f2586ada778 |