Skip to main content

QUIC multiplex transport skeleton for Swarmauri.

Project description

Swarmauri Logo

PyPI - Downloads Hits PyPI - Python Version PyPI - License PyPI - swarmauri_transport_quic Discord

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.11.0.dev1.tar.gz (4.6 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.11.0.dev1.tar.gz.

File metadata

  • Download URL: swarmauri_transport_quic-0.11.0.dev1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","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.11.0.dev1.tar.gz
Algorithm Hash digest
SHA256 bee149f567961a2adb7e980950eec6695eb049bf398ff9a9c49e39ca3f45246d
MD5 8febe40a199fb46ef1718a844c9a2b97
BLAKE2b-256 7fef7c25eb84aeabe2c03a77cfcdc1f9b7bb7c176f81685d42d22e8ee8251c3e

See more details on using hashes here.

File details

Details for the file swarmauri_transport_quic-0.11.0.dev1-py3-none-any.whl.

File metadata

  • Download URL: swarmauri_transport_quic-0.11.0.dev1-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","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.11.0.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 44f43d98a4a97fee6c0cf8a722ac92213183eb01a92c678f90460585770f5956
MD5 6357a6ece23954d8d02c262314a0c1c0
BLAKE2b-256 b4519bbfd8a40a53b8ce9579963b86ccfcd692aab05b09c8a8a986ed1855ec5b

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