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.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c108568e22b85817f7f37117c45d63eb2f41fcba807ff1a44502da4b84edfe74 |
|
MD5 | 2734d3c5ec1feb32ea4916e425d66a19 |
|
BLAKE2b-256 | ea871d765fccc84277447c65815569b7aa24570002d892b20edc07a8b45f8a70 |
Close
Hashes for fastapi_debug_toolbar-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c122b96b532db88e715bd494eb9c2bd5a9c41c30448a3e1c5ee16cff3210e02f |
|
MD5 | 46d5dec208ba00be2180773457a703b8 |
|
BLAKE2b-256 | adb90055878243fe0d1495eb9486789e3e84d8ecaf62ec8e09b3418f75e45458 |