Skip to main content

openframe-protocol-http

HTTP/ASGI server binding. Wires a QueryHandler/CommandHandler/UseCase (openframe.core.inbound) to a FastAPI route through the shared error mapper and RequestContext builder in openframe-protocol-base, instead of each route hand-mapping HTTPExceptions itself.

Install the [server] extra for the FastAPI/ASGI dependencies — openframe-protocol-http[server].

Wiring example

from openframe.protocol.http import bind_query, bind_command, install_error_handlers

router = APIRouter(prefix="/items")

bind_query(
    router, "/{item_id}",
    handler_dep=get_get_item_handler,
    path_param=("item_id", str),
    response_model=Item,
    not_found_when=lambda item: item is None,
)

bind_command(
    router, "", method="POST",
    handler_dep=get_create_item_handler,
    body_model=Item,
    status_code=201,
    response_model=Item,
)

install_error_handlers(app)

Status

Experimental, M1 of the project's own build plan — proves the inbound handler contract survives a real transport before anything else (HTTP client, gRPC, sessions) is attempted.

Metadata

Release files for openframe-protocol-http 0.8.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-http 0.8.0
File Size Uploaded Provenance
openframe_protocol_http-0.8.0.tar.gz 30.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for openframe-protocol-http 0.8.0
File Interpreter ABI Platform
openframe_protocol_http-0.8.0-py3-none-any.whl Python 3 none any Details

Total release size: 52.3 kB

Release files / openframe_protocol_http-0.8.0.tar.gz

Download URL openframe_protocol_http-0.8.0.tar.gz
Size 30.6 kB
Tags Source
SHA-256 checksum
How to use checksums
af16994ca83f03b8bf3548781267b8ff4d457c9f61f1854d63fe33870277d198
BLAKE2b-256 checksum
How to use checksums
a3d2558cfd0f3e2eacad091a5bbeb0b0bd468658e410dd193021469be86c4b1c
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_http-0.8.0-py3-none-any.whl

Download URL openframe_protocol_http-0.8.0-py3-none-any.whl
Size 21.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7c65f5e01e563d7fc7f791ab1d4d5d9fc32d509654623947eef3c508e5015253
BLAKE2b-256 checksum
How to use checksums
4908ca9d49c920160e409111b15a6c13e1e90c268dcfd7f715f8f18a2da1a3c5
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-http 0.8.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