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.dev23.tar.gz.

File metadata

  • Download URL: swarmauri_transport_mtlsunicast-0.1.1.dev23.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.dev23.tar.gz
Algorithm Hash digest
SHA256 378efda71471b717478ab8ec0b9b2409a7a144d3feb4ad5380e756eca7ff16c9
MD5 6ffb8d19a6b9a383e1af1eba2d6f022a
BLAKE2b-256 e621ee0d59daf71cc572b2d4ffa31390c55f958df1f6f546f67a1ef10f4f1fa1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: swarmauri_transport_mtlsunicast-0.1.1.dev23-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.dev23-py3-none-any.whl
Algorithm Hash digest
SHA256 aafb5a222cf036f6770bf3935ae0201ca0036fe7e0edbdedaa98a0da71d46b2a
MD5 cb42c791a09bd6de9625218a5b1568ac
BLAKE2b-256 a9e7d6aa4457446db88a593ec9e20d6b61842345fded7b4885a58e30fc29841f

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