Skip to main content

Mutual TLS transport utilities for Swarmauri unicast channels.

Project description

Swarmauri Logo

PyPI - Downloads Hits PyPI - Python Version PyPI - License PyPI - swarmauri-transport-mtlsunicast


Swarmauri Transport – Mutual TLS Unicast

swarmauri-transport-mtlsunicast scaffolds mutually authenticated TLS channels for Swarmauri agents.

Installation

Using uv

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

Using pip

pip install swarmauri-transport-mtlsunicast

Usage

import asyncio
import ssl
from swarmauri_transport_mtlsunicast import MTLSUnicast

async def secure_client() -> None:
    ctx = ssl.create_default_context(ssl.Purpose.SERVER_AUTH)
    ctx.load_cert_chain("client.crt", "client.key")
    ctx.load_verify_locations("ca.crt")

    transport = MTLSUnicast(ctx)
    async with transport.client(host="secure.example", port=9443):
        await transport.send("server", b"hello")
        reply = await transport.recv()
        print(reply)

asyncio.run(secure_client())

Customize the SSL context for your environment—pin certificates, enable ALPN, or integrate with service mesh trust stores.

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

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_mtlsunicast-0.1.1.dev20.tar.gz.

File metadata

  • Download URL: swarmauri_transport_mtlsunicast-0.1.1.dev20.tar.gz
  • Upload date:
  • Size: 3.6 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_mtlsunicast-0.1.1.dev20.tar.gz
Algorithm Hash digest
SHA256 c17234aa23c985db7b3e47155296c7b1cac4f256979cc520c3acc5c2c8db7cde
MD5 724e172ba637d15b3ee35f1ff56b3135
BLAKE2b-256 bbad512609d262dd4f366136f8088f428557c42f379a192f1f2b3add95d3b044

See more details on using hashes here.

File details

Details for the file swarmauri_transport_mtlsunicast-0.1.1.dev20-py3-none-any.whl.

File metadata

  • Download URL: swarmauri_transport_mtlsunicast-0.1.1.dev20-py3-none-any.whl
  • Upload date:
  • Size: 4.6 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_mtlsunicast-0.1.1.dev20-py3-none-any.whl
Algorithm Hash digest
SHA256 0a3d3eb8b764836d0f57e4c339c86bf79925c320c1af1c73473b701354ff822d
MD5 b09344206bb592379c840d5e28b17f07
BLAKE2b-256 cdfeb36777c85f76ada1330cc18bc8203f33ff448123ab09f71b941df846d4fb

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