narrativetrace-asgi
Pure-ASGI middleware that captures one narrativetrace trace tree per HTTP request. Compatible with Starlette and FastAPI.
- Fail-safe — throwing request/user extractors or exporters never fail the request and never mask the handler's own exception.
- Request-boundary export — the captured tree is exported in a
finallyblock with the real status code and duration; an empty tree is never exported. - W3C
traceparent— inbound trace-id adoption plus an outbound injection helper forhttpx. - Request-scoped accessor —
get_narrative_context()returns the context bound to the in-flight request (contextvars-based, so concurrent requests are isolated).
Metadata
Release files for narrativetrace-asgi 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| narrativetrace_asgi-0.2.0.tar.gz | 16.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| narrativetrace_asgi-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.0 kB
Release files / narrativetrace_asgi-0.2.0.tar.gz
| Download URL | narrativetrace_asgi-0.2.0.tar.gz |
|---|---|
| Size | 16.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40dece45c4dd5caf9c792e9706ae89d297af74512e9e67774f282fb2bf3d1112
|
|
BLAKE2b-256 checksum How to use checksums |
7aa67283cde6e19228b7aeeb346b6c08cedcb92658d4e8be2c14a1c0b2b3de2c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.
Transparency logRelease files / narrativetrace_asgi-0.2.0-py3-none-any.whl
| Download URL | narrativetrace_asgi-0.2.0-py3-none-any.whl |
|---|---|
| Size | 11.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6f0d1b7c8ababaaad520dbea80d1f1ac7b2a1dbfce5712ad6b0af5030c4d7cc5
|
|
BLAKE2b-256 checksum How to use checksums |
dc1f58ecb2471807c3983167f25ff54a54a71fa67fb44e4b9dc22f430f338c73
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.
Transparency log