Skip to main content

openframe-protocol-grpc

gRPC server and client binding, the second transport (after HTTP) to prove openframe-protocol-base's conformance suites for real. Wires a QueryHandler/CommandHandler/UseCase (openframe.core.inbound) to a grpc.aio.Server, and provides GrpcRemoteQueryClient/ GrpcRemoteCommandClient for calling another service built on this platform — through the same shared error mapper and RequestContext builder openframe-protocol-http uses, not a parallel implementation.

One generic RPC (GenericService.Call, {json_payload: string} in both directions) instead of one per route — the domain type travels as JSON inside the payload, the gRPC equivalent of -http's dynamic inspect.Signature trick for avoiding a per-route message type.

Install the [server] extra for a server, [client] extra to call one — both pull in grpcio (unlike HTTP, there's no separate client-only wire library for gRPC, but the extras split is kept for symmetry with every other openframe-protocol-* package).

Server-side wiring example

from openframe.protocol.grpc import bind_service

server = grpc.aio.server()

bind_service(
    server, "get_item",
    handler_factory=get_get_item_handler,
    not_found_when=lambda item: item is None,
)
bind_service(
    server, "create_item",
    handler_factory=get_create_item_handler,
)

server.add_insecure_port("[::]:50051")
await server.start()

Client-side wiring example

from openframe.protocol.grpc import GrpcRemoteQueryClient

get_item = GrpcRemoteQueryClient(target="items-service:50051", route="get_item")
item = await get_item.execute("abc-123")

Status

Experimental, M4 of the project's own build plan. Both TransportConformanceTests and RemoteClientConformanceTests (openframe-protocol-base) pass against this package for real — the point of building it: proving the architecture generalizes past HTTP, not just adding a second transport for its own sake.

Metadata

Release files for openframe-protocol-grpc 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-grpc 0.3.0
File Size Uploaded Provenance
openframe_protocol_grpc-0.3.0.tar.gz 17.5 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 31.3 kB

Release files / openframe_protocol_grpc-0.3.0.tar.gz

Download URL openframe_protocol_grpc-0.3.0.tar.gz
Size 17.5 kB
Tags Source
SHA-256 checksum
How to use checksums
65b03db84ea0a544bc6d7b5f0ce53bb8a2e6ea7daf2561ab63a84e1bb288f16d
BLAKE2b-256 checksum
How to use checksums
203d7356411de3734ec3e10781b56b11646c33bf25d2fec402587109017c8af7
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_grpc-0.3.0-py3-none-any.whl

Download URL openframe_protocol_grpc-0.3.0-py3-none-any.whl
Size 13.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2db05412c2b311345a58cd81391e294936bedca36e29d34b7e61374da7c0983f
BLAKE2b-256 checksum
How to use checksums
d0732a273daf81b60b22577912f6a37032675eb5a9af73d067a7507492c73d7c
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-grpc 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