Starlette-bugsnag
Bugsnag integration for Starlette ASGI framework.
Installation:
pip install starlette-bugsnag
Usage:
from starlette_bugsnag import BugsnagMiddleware
import bugsnag
bugsnag.configure(...)
app = ...
app = BugsnagMiddleware(app)
Here's a more complete example using Starlette and uvicorn:
import bugsnag
import os
import uvicorn
from starlette_bugsnag import BugsnagMiddleware
from starlette.applications import Starlette
from starlette.responses import PlainTextResponse
bugsnag.configure(api_key=os.getenv('BUGSNAG_API_KEY'), project_root=os.getcwd())
app = Starlette()
app.add_middleware(BugsnagMiddleware, debug=False)
@app.route("/")
def index(request):
return PlainTextResponse("Hello World")
@app.route("/error")
def raiser(request):
raise ValueError("This Is an Error")
if __name__ == "__main__":
uvicorn.run(app, host="0.0.0.0", port=8000)
See examples for more.
Metadata
Release files for starlette-bugsnag 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| starlette-bugsnag-0.2.1.tar.gz | 3.9 kB | Without provenance | Details for starlette-bugsnag-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| starlette_bugsnag-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for starlette_bugsnag-0.2.1-py3-none-any.whl |
Total release size: 9.6 kB
Release files / starlette-bugsnag-0.2.1.tar.gz
| Download URL | starlette-bugsnag-0.2.1.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
13f653f2d065cb0804605a397dac4c2774ea76d2f2901441a9e442f341eebfbe
|
|
BLAKE2b-256 checksum How to use checksums |
f23b53e9e57cbba9e51c73594685f0e21ed16da6b368524732950cc0864d2464
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3
|
Release files / starlette_bugsnag-0.2.1-py3-none-any.whl
| Download URL | starlette_bugsnag-0.2.1-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be30e2cf695c051e9953ee4bdd37c2dd630574ffc0db8ebf4579ad62a029b09f
|
|
BLAKE2b-256 checksum How to use checksums |
2421baa213f91e92a9c40c41e5f6069907c6b09950a19d9062999632c18ab9f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3
|
Security for starlette-bugsnag 0.2.1
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.