Skip to main content

QUIC multiplex transport skeleton for Swarmauri.

Project description

Swarmauri QUIC Transport

Transport Icon Multiplex Lifecycle

The Swarmauri QUIC Transport outlines a multiplexed, encrypted transport based on QUIC. It shares the unified lifecycle helpers so that future implementations can expose .server(...), .client(...), and channel-aware APIs directly on the transport instance.

Note: This package currently ships a skeleton with NotImplementedError placeholders so downstream teams can integrate their preferred QUIC stack.

Installation

Using uv

uv add --directory pkgs/standards/swarmauri_transport_quic swarmauri_transport_quic

Using pip

pip install swarmauri_transport_quic

Usage

The example below demonstrates the lifecycle of a QUIC transport once the implementation details are filled in.

import asyncio
from swarmauri_transport_quic import QuicTransport

async def main():
    server = QuicTransport(cert="srv.pem", key="srv.key")
    client = QuicTransport(server_name="localhost")

    async def run_server():
        async with server.server(host="0.0.0.0", port=4433):
            channel = await server.open_channel()
            await server.send_on(channel, b"welcome")
            data = await server.recv_on(channel)
            await server.send_on(channel, b"ack:" + data)
            await server.close_channel(channel)

    async def run_client():
        async with client.client(host="127.0.0.1", port=4433):
            channel = await client.open_channel()
            await client.send_on(channel, b"hi-quic")
            response = await client.recv_on(channel)
            print(response.decode())
            await client.close_channel(channel)

    await asyncio.gather(run_server(), run_client())

asyncio.run(main())

Replace the placeholders with concrete QUIC operations once your chosen library is integrated.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swarmauri_transport_quic-0.1.0.dev42.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file swarmauri_transport_quic-0.1.0.dev42.tar.gz.

File metadata

  • Download URL: swarmauri_transport_quic-0.1.0.dev42.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for swarmauri_transport_quic-0.1.0.dev42.tar.gz
Algorithm Hash digest
SHA256 3b7c21476eaf3aaff6108e2bed1a38b732c07cd1ef10c488c1b4c7f1d1294b45
MD5 577590e1e520a952d7fd2133db857ef6
BLAKE2b-256 ec243d64ebad3dc11b3b079a5412021d178a695b955ba28c47d8009d635b9deb

See more details on using hashes here.

File details

Details for the file swarmauri_transport_quic-0.1.0.dev42-py3-none-any.whl.

File metadata

  • Download URL: swarmauri_transport_quic-0.1.0.dev42-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for swarmauri_transport_quic-0.1.0.dev42-py3-none-any.whl
Algorithm Hash digest
SHA256 bf655a804a26641cc8dbbc38a2c746ddd827434e0b8873866d315348116e8d6a
MD5 41abfc48e21eb2b47c2d60e1f03d69b0
BLAKE2b-256 3427d7c5885ab4c530cce1a1d6038ca19d634d68f2cffa375e179f752070338d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page