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.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa19c26463c8b0909f50a98764fdf2e844493cf5d71c1e1ec1dd78f519b318a0 |
|
MD5 | d4b980dc93af491967ae855c4c88fdf0 |
|
BLAKE2b-256 | 09a52c8b7552420a784cd7e69f083153b734558142d86291beef8d322a868191 |
Close
Hashes for fastapi_debug_toolbar-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0974b4f137abbdc6008825d4076774a6d77c892288ccd209e59974aeb65d7753 |
|
MD5 | bdf85f7fbb70d3a9265ab4aa088efe2b |
|
BLAKE2b-256 | 246126282327637703ea6030596ce09cc6e401e6fba33c89315dc757fd039c0d |