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

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

Built distribution (wheel)

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

Total release size: 29.8 kB

Release files / narrativetrace_asgi-0.5.0.tar.gz

Download URL narrativetrace_asgi-0.5.0.tar.gz
Size 18.2 kB
Tags Source
SHA-256 checksum
How to use checksums
bde02b4da0bc37cf038f8d6017627f3790d6dd6cb9966da0d8ab4f5dbfd6fab7
BLAKE2b-256 checksum
How to use checksums
3d777afef9be3c3626f1251569878179bece96220acede9d25c3d92409ba85ac
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 24, 2026.

Transparency log

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

Download URL narrativetrace_asgi-0.5.0-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c32ed8879b7e5407748039549b2245c65589c9febc34494687956a7184add26
BLAKE2b-256 checksum
How to use checksums
8bc3bb25cbdd5d66df7c7e86611242a43cca37799647c41cf0eeaf7c3526b5e7
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 24, 2026.

Transparency log

Security for narrativetrace-asgi 0.5.0

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.0.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 24, 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