Skip to main content

HTTP/2 transport adapter built on the Swarmauri H2 mux.

Project description

Swarmauri Logo

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

Swarmauri Transport ? HTTP/2 Adapter

swarmauri-transport-h2 layers HTTP semantics on top of the reusable H2MuxTransport, giving you request/response helpers while preserving multiplexed channel control.

Installation

Using uv

uv pip install swarmauri-transport-h2 --index-url https://pypi.org/simple

Using pip

pip install swarmauri-transport-h2

Usage

import asyncio
from swarmauri_transport_h2 import H2Transport

async def run_request() -> None:
    transport = H2Transport()
    async with transport.client(host="example.com", port=443):
        status, headers, body = await transport.request("GET", "/")
        print(status, headers, body)

asyncio.run(run_request())

The adapter lets you reuse a single HTTP/2 connection for multiple requests, plug in custom channel management, or proxy calls to Swarmauri agents.

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_h2-0.11.0.dev1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

swarmauri_transport_h2-0.11.0.dev1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file swarmauri_transport_h2-0.11.0.dev1.tar.gz.

File metadata

  • Download URL: swarmauri_transport_h2-0.11.0.dev1.tar.gz
  • Upload date:
  • Size: 4.1 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_h2-0.11.0.dev1.tar.gz
Algorithm Hash digest
SHA256 7cd73a219c599177a4b824f9e98b0ad514b3b489a6cbcf56efa9719ffb5e24ab
MD5 983c40112ebae38f3dcfa74769ad80da
BLAKE2b-256 039042bb6e7bcf19ffa59f91ab86c995f2e548c2ee29ca34db8e3195fede7bc4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: swarmauri_transport_h2-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_h2-0.11.0.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 88855c0232eaa7ca00b55966917d7e31cdea37b2e3292ce25cb2e3d7ec6fc612
MD5 9bce56fcf0887c3f90d2057fc00719f4
BLAKE2b-256 324ba82994de243d78a4c2ed47165b1d1f4ae56a0183eb3655310f999dbc238e

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