Skip to main content

starlette-x-bugsnag

Shiny Bugsnag integration for Starlette framework ✨

test codecov dependencies version pyversions black license

Scope details, local variables and installed packages will be attached to each event for ease of debugging.

Installation:

pip install starlette-x-bugsnag

Usage:

from starlette.applications import Starlette
from starlette.middleware import Middleware
from starlette.requests import Request
from starlette.responses import JSONResponse
from starlette.routing import Route

from starlette_x_bugsnag.middleware import BugsnagMiddleware


async def home(request: Request) -> JSONResponse:
    return JSONResponse({"message": "Hello world!"})


routes = [Route("/", home)]

# Using application constructor
application = Starlette(
    routes=routes, middleware=[Middleware(BugsnagMiddleware, api_key="secret")],
)

# Or using add_middleware method
application.add_middleware(BugsnagMiddleware, api_key="secret")

BugsnagMiddleware accepts same arguments as bugsnag.configure function, so you can pass additional information about your app, such as app_version.

application = Starlette(
    routes=routes,
    middleware=[
        Middleware(
            BugsnagMiddleware,
            api_key="secret",
            app_version="1.2.3",
            release_stage="production",
            project_root=None,  # Save traceback not only from the current directory
        ),
    ],
)

Metadata

Release files for starlette-x-bugsnag 0.1.6

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-x-bugsnag 0.1.6
File Size Uploaded
starlette-x-bugsnag-0.1.6.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for starlette-x-bugsnag 0.1.6
File Interpreter ABI Platform
starlette_x_bugsnag-0.1.6-py3-none-any.whl Python 3 none any Details

Total release size: 7.9 kB

Release files / starlette-x-bugsnag-0.1.6.tar.gz

Download URL starlette-x-bugsnag-0.1.6.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9003055f9279069323db9427a499eee9059f9ecf5c153dd7749e605b26e3e783
BLAKE2b-256 checksum
How to use checksums
4749a0345a73862b05d7cafa9fb9dc29a21e2ccd72d679fe4b919b929960f485
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.10 CPython/3.8.5 Linux/5.4.0-42-generic

Release files / starlette_x_bugsnag-0.1.6-py3-none-any.whl

Download URL starlette_x_bugsnag-0.1.6-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2cceb96a8117f93f6a6b63c7a5bc08d7724a63d960c266010b54a1265524595d
BLAKE2b-256 checksum
How to use checksums
9b4b46acc6beaa031fbfd992170e552d17de48a8514a0e436875bba3c7b1cf46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.10 CPython/3.8.5 Linux/5.4.0-42-generic

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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