Default panels
Here's a list of default panels available:
Versions
Timer
Settings
Add your pydantic's BaseSettings classes to this panel:
from debug_toolbar.middleware import DebugToolbarMiddleware
from fastapi import FastAPI
from pydantic import SecretStr
from pydantic_settings import BaseSettings
class APISettings(BaseSettings):
SECRET_KEY: SecretStr
app = FastAPI(debug=True)
app.add_middleware(DebugToolbarMiddleware, settings=[APISettings()])
Request
Headers
Routes
Logging
Profiling
Profiling reports provided by Pyinstrument, you can configure the profiler parameters by adding profiler_options
settings:
from debug_toolbar.middleware import DebugToolbarMiddleware
from fastapi import FastAPI
app = FastAPI(debug=True)
app.add_middleware(DebugToolbarMiddleware, profiler_options={'interval': .0002})