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

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.7
File Size Uploaded Provenance Actions
rivora_rcp-2.0.7.tar.gz 8.3 kB Without provenance Details for rivora_rcp-2.0.7.tar.gz

Built distribution (wheel)

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

Total release size: 18.7 kB

Release files / rivora_rcp-2.0.7.tar.gz

Download URL rivora_rcp-2.0.7.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c60ed9af9e2678412703a4ab7970d24dc0355fb0a67ec2283765ec449984430b
BLAKE2b-256 checksum
How to use checksums
22474cd8e917b171a22904990fccf40b0ddd25fccf75cbbadb8ff9580d74438b
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.7-py3-none-any.whl

Download URL rivora_rcp-2.0.7-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
374f9a23c04f81f8928d8eba3a17c63018084129e1985e85826c0cc2b2e7f12f
BLAKE2b-256 checksum
How to use checksums
4f0f746ed612222d3466ee7647e1ebc6fe73b79377fac2859f07cbee033bd05d
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.7

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