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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22853c98026f655057b2812e09e19e308e379b16f6ce62bef753beca0dfcbd28 |
|
MD5 | 5c781d3dfd029f92735736d1f74e32ec |
|
BLAKE2b-256 | 75b8feff7b5744a573c0faa33efa43cc069063719ea5d16e9dddeadd53bde35d |
Close
Hashes for fastapi_debug_toolbar-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1742b20f658ba66afb5ad59ea2c625d41c76970f2075fed3098234200c36cc3 |
|
MD5 | c4b3bcfcb427dc2b468503c8b3e0cf7d |
|
BLAKE2b-256 | 4068ff48ed135ea958a4ddfa900313e7a4f8716015d47e6a7c802599ddbab0a4 |