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.2

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.2
File Size Uploaded Provenance Actions
narrativetrace_asgi-0.5.2.tar.gz 19.1 kB With provenance Details for narrativetrace_asgi-0.5.2.tar.gz

Built distribution (wheel)

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

Total release size: 31.0 kB

Release files / narrativetrace_asgi-0.5.2.tar.gz

Download URL narrativetrace_asgi-0.5.2.tar.gz
Size 19.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e27b3d1ef78ddafcc79315ccbb0e77009be01ff45e5a1eb65a9ea6a526c29f0e
BLAKE2b-256 checksum
How to use checksums
c0ce315ce8d074c9574242ad9f7e57492ea7add833e0fde924b1da98ff778d27
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 Nov 22, 2026.

Transparency log

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

Download URL narrativetrace_asgi-0.5.2-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
980751170d6a69161728783944d5f2b4564d160c6f3f8a2ebe7c24c388df8052
BLAKE2b-256 checksum
How to use checksums
20022dffabe60e4db1b07b9329d93930f7e2f7ea54e93a700c5557924f128c9c
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 Nov 22, 2026.

Transparency log

Security for narrativetrace-asgi 0.5.2

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.2.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 Nov 22, 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