Skip to main content

Rivora Contract Protocol (RCP)

RCP defines a common contract between applications, frameworks, and servers, so each can be built and updated separately. It describes how HTTP requests, WebTransport sessions, application lifecycles, and protocol events are represented through scopes, receive events, and send events.

It is optimized around HTTP/3 and QUIC and Webtransport over HTTP/3

Install

pip install rivora-rcp

Quick start

from rcp import HTTPResponseEventType


async def app(scope, receive, send):
    await send({"type": HTTPResponseEventType.START, "status": 200})
    await send(
        {
            "type": HTTPResponseEventType.BODY,
            "body": b"Hello from RCP",
            "more_body": False,
        }
    )

RCP applications are asynchronous callables that receive a scope, receive, and send. Servers provide these values and translate RCP events to and from the underlying transport.

Protocol versions

Version Capabilities
1.0 HTTP/3, QUIC, lifespan, and extensions
2.0 Version 1.0 plus WebTransport

The RCP protocol version is separate from the Python package version.

To learn more about rcp, please read the documentation.

RCP is licensed under the MIT License.

Metadata

Release files for rivora-rcp 2.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rivora-rcp 2.0.8
File Size Uploaded Provenance Actions
rivora_rcp-2.0.8.tar.gz 8.7 kB Without provenance Details for rivora_rcp-2.0.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rivora-rcp 2.0.8
File Interpreter ABI Platform Actions
rivora_rcp-2.0.8-py3-none-any.whl Python 3 none any Details for rivora_rcp-2.0.8-py3-none-any.whl

Total release size: 19.9 kB

Release files / rivora_rcp-2.0.8.tar.gz

Download URL rivora_rcp-2.0.8.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8a8ea94c90dc1292f1bd581299e20b48a9bd9acce6b3f5a71777866e340a52f6
BLAKE2b-256 checksum
How to use checksums
6252f5fc75e97035b59d7f07c0be8185fea4dfbf82cccd03c2d6e5c40cd74a8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / rivora_rcp-2.0.8-py3-none-any.whl

Download URL rivora_rcp-2.0.8-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
76017f739cef6df84caeebdcfdccb96635e16abe6a62d077a29544270883fe49
BLAKE2b-256 checksum
How to use checksums
982bb0e0c319d6d9eb899d6659260428bc0b45a0d57d7a15ebd8f91bcd5f9c87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for rivora-rcp 2.0.8

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