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.4.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.4.2
File Size Uploaded Provenance Actions
narrativetrace_asgi-0.4.2.tar.gz 18.2 kB With provenance Details for narrativetrace_asgi-0.4.2.tar.gz

Built distribution (wheel)

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

Total release size: 29.8 kB

Release files / narrativetrace_asgi-0.4.2.tar.gz

Download URL narrativetrace_asgi-0.4.2.tar.gz
Size 18.2 kB
Tags Source
SHA-256 checksum
How to use checksums
74d78a0212d12236dcb04932f05e049e8cc14a0d9dbc1f2122a5504f0acd95b1
BLAKE2b-256 checksum
How to use checksums
d50560b8fb071850cc73b02e9b47bfb4e4644fedf094d8d7ee3b15be66cf6f4c
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 20, 2026.

Transparency log

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

Download URL narrativetrace_asgi-0.4.2-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
15783ac897be82febaaf882e5460ea181fcce87fc179c9e9dc24132a89e86997
BLAKE2b-256 checksum
How to use checksums
0e6f071f59ed032d7ae478339350790be702663831ffaaea33bd53a13edeec3b
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 20, 2026.

Transparency log

Security for narrativetrace-asgi 0.4.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.4.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 Oct 20, 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