Skip to main content

openframe-protocol-base

Shared, transport-neutral mechanics every openframe-protocol-* binding package builds on. No transport dependencies of its own.

  • errors.py — categorize(exc) -> ErrorCategory and build_envelope(exc), the one place every transport maps OpenFrameError (and anything else) to a caller-safe error shape.
  • context.py — build_request_context(headers), building openframe.core.inbound.RequestContext consistently across transports (trace id, then a correlation header, then a generated uuid4).
  • testing.py — TransportConformanceTests + TransportDriver, the suite every binding proves itself against.

Wiring example

from openframe.protocol.base import build_envelope, build_request_context

context = build_request_context(request.headers)
try:
    result = await handler.execute(command, context)
except Exception as exc:
    envelope = build_envelope(exc, correlation_id=context.correlation_id)
    # serialise envelope in whatever shape this transport uses

Status

Experimental — incubating the inbound conformance suite here until two transports (HTTP, gRPC) both pass it for real, per the project's own rule-of-three discipline for promoting shared infrastructure into openframe-core.

Metadata

Release files for openframe-protocol-base 0.3.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 openframe-protocol-base 0.3.0
File Size Uploaded Provenance
openframe_protocol_base-0.3.0.tar.gz 15.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for openframe-protocol-base 0.3.0
File Interpreter ABI Platform
openframe_protocol_base-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 28.1 kB

Release files / openframe_protocol_base-0.3.0.tar.gz

Download URL openframe_protocol_base-0.3.0.tar.gz
Size 15.5 kB
Tags Source
SHA-256 checksum
How to use checksums
12777e08f981ba74eae0c5a515b66e0e3ae606fbc06af38856b4b10d0db43725
BLAKE2b-256 checksum
How to use checksums
c95d916e68fa94b8f1c96f4bc6da12c44b7c3ccd344450eee193bfd608f82a1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / openframe_protocol_base-0.3.0-py3-none-any.whl

Download URL openframe_protocol_base-0.3.0-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f4e2508f67c208247b1853d899314e04f21366f54927813aba281ddf088d0a98
BLAKE2b-256 checksum
How to use checksums
d3ed086e799efa509f9d683e20c8bcd7085db7e15d541728b800cc465fd96a57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for openframe-protocol-base 0.3.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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