Skip to main content

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 finally block with the real status code and duration; an empty tree is never exported.
  • W3C traceparent — inbound trace-id adoption plus an outbound injection helper for httpx.
  • 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.5.1

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

Source distribution (sdist)

Source distribution for narrativetrace-asgi 0.5.1
File Size Uploaded Provenance Actions
narrativetrace_asgi-0.5.1.tar.gz 18.6 kB With provenance Details for narrativetrace_asgi-0.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for narrativetrace-asgi 0.5.1
File Interpreter ABI Platform Actions
narrativetrace_asgi-0.5.1-py3-none-any.whl Python 3 none any Details for narrativetrace_asgi-0.5.1-py3-none-any.whl

Total release size: 30.3 kB

Release files / narrativetrace_asgi-0.5.1.tar.gz

Download URL narrativetrace_asgi-0.5.1.tar.gz
Size 18.6 kB
Tags Source
SHA-256 checksum
How to use checksums
81ce2d1c1bbb0d0a7ade7aa66e7abaf59198a65c5e21825f8a87d20f5f4f2e5a
BLAKE2b-256 checksum
How to use checksums
470ab26c6ec1f5850b1aaba99a276e1e0662bfb062cff0290931161621b9cd32
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 30, 2026.

Transparency log

Release files / narrativetrace_asgi-0.5.1-py3-none-any.whl

Download URL narrativetrace_asgi-0.5.1-py3-none-any.whl
Size 11.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f32b4f1915bd5c96d07e5044281d0acf38c0bcbb99f52193fa987a5c1fcb2b6b
BLAKE2b-256 checksum
How to use checksums
4853dab0897bbf962ac93e583d4a9ecf245796865004d6a1303d083fbb270b36
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 30, 2026.

Transparency log

Security for narrativetrace-asgi 0.5.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for narrativetrace_asgi-0.5.1.tar.gz

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 30, 2026.

Transparency log

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.

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