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.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5f6512b06faaa54bf9da531510fae2c84464d2d14387f5ed42e0bf938896d81 |
|
MD5 | de240121a7ccf4aa308e818209b9afc0 |
|
BLAKE2b-256 | 499dcd363bed635e0e0183b8a3b062cdb334c3822760e024d5aad08c7f8041e3 |
Close
Hashes for fastapi_debug_toolbar-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a04780ffc04eca1ac500f57057e5e96b0228278e11a60db38481c9fec2a78354 |
|
MD5 | a5394e274e64251803696a71707bea1b |
|
BLAKE2b-256 | ff98f132c16485fd0cd8767d4a3103ec069c2df03f56b5159c74316abf42d286 |