Skip to main content

Werkzeug debugger middleware for Starlette

codecov version downloads license

This package contains interactive debuger middleware for Starlette / FastAPI.

Install

pip install starlette_werkzeug_debugger

Usage with Starlette

from starlette.applications import Starlette
from starlette.middleware import Middleware
from starlette.routing import Route
import starlette_werkzeug_debugger


async def raise_error(request):
        local_var = 3
        raise RuntimeError("Raised error")


middleware = [
        Middleware(starlette_werkzeug_debugger.WerkzeugDebugMiddleware, evalex=True)
]


app = Starlette(debug=True, middleware=middleware, routes=[
        Route('/', raise_error),
])

Usage with FastAPI

from fastapi import FastAPI
import starlette_werkzeug_debugger


app = FastAPI()


app.add_middleware(starlette_werkzeug_debugger.WerkzeugDebugMiddleware, evalex=True)


@app.get("/")
async def raise_error():
        local_var = 3
        raise RuntimeError("Raised error")

Screenshots

https://raw.github.com/wiki/mireq/starlette-werkzeug-debugger/debugger.png?v=2023-06-20

Metadata

Release files for starlette-werkzeug-debugger 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for starlette-werkzeug-debugger 0.2.0
File Size Uploaded Provenance
starlette_werkzeug_debugger-0.2.0.tar.gz 15.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for starlette-werkzeug-debugger 0.2.0
File Interpreter ABI Platform
starlette_werkzeug_debugger-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.9 kB

Release files / starlette_werkzeug_debugger-0.2.0.tar.gz

Download URL starlette_werkzeug_debugger-0.2.0.tar.gz
Size 15.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f0d436dcf4509a32b752e829766bbaf53e918a093e80367626042521384322cd
BLAKE2b-256 checksum
How to use checksums
240d131e4e8f6e425953aca1c8f6111792f5f3a853a449059530f95999d9ef5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.12

Release files / starlette_werkzeug_debugger-0.2.0-py3-none-any.whl

Download URL starlette_werkzeug_debugger-0.2.0-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7fc46b4d85c8d568b7ddcd30f4ee3cadb82054118151d12a1285b91c0fd62c29
BLAKE2b-256 checksum
How to use checksums
5d06b0a838a116ebbfe84a9db58b98953be336bc617fb595b4139883d2f0c25e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.12

Security for starlette-werkzeug-debugger 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page