Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Swarmauri Logo

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

Swarmauri UDS Unicast Transport

Transport Icon Lifecycle License

The Swarmauri UDS Unicast Transport offers reliable, ordered, local-only communication over Unix domain sockets. It embraces the unified transport lifecycle so the server and client contexts are created directly from the transport instance (.server(...) / .client(...)).

Installation

Using uv

uv add --directory pkgs/standards/swarmauri_transport_uds_unicast swarmauri_transport_uds_unicast

Using pip

pip install swarmauri_transport_uds_unicast

Usage

The example below demonstrates setting up a server and client that echo messages over a Unix domain socket path.

import asyncio
from swarmauri_transport_uds_unicast import UdsUnicastTransport

SOCKET_PATH = "/tmp/swm-uds.sock"

async def main() -> None:
    server = UdsUnicastTransport(SOCKET_PATH)

    async def run_server():
        async with server.server():
            data = await server.recv()
            await server.send("peer", b"echo:" + data)

    async def run_client():
        client = UdsUnicastTransport(SOCKET_PATH)
        async with client.client():
            await client.send("server", b"ping")
            response = await client.recv()
            print(response.decode())

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

asyncio.run(main())

This transport is ideal for same-host communication where low latency and security isolation are required.

Metadata

Release files for swarmauri_transport_uds_unicast 0.11.0.dev1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for swarmauri_transport_uds_unicast 0.11.0.dev1
File Size Uploaded
swarmauri_transport_uds_unicast-0.11.0.dev1.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for swarmauri_transport_uds_unicast 0.11.0.dev1
File Interpreter ABI Platform
swarmauri_transport_uds_unicast-0.11.0.dev1-py3-none-any.whl Python 3 none any Details

Total release size: 6.9 kB

Release files / swarmauri_transport_uds_unicast-0.11.0.dev1.tar.gz

Download URL swarmauri_transport_uds_unicast-0.11.0.dev1.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
71c8e57c7f57b6ca35c8e83de72faff1ebe0f9dcdbd77bcf3392b6a6e09ee082
BLAKE2b-256 checksum
How to use checksums
2ce65fc683414027c6999d730f57c383c41201de794eace343f1abba9d8f82cc
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / swarmauri_transport_uds_unicast-0.11.0.dev1-py3-none-any.whl

Download URL swarmauri_transport_uds_unicast-0.11.0.dev1-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d2adf81525022b86207f987bb095dcaabc6ea8d514cae84f59e5cacc585b86b
BLAKE2b-256 checksum
How to use checksums
c85959afcb5a385beb7f2b638d971fa034fc14c4a227ea7e1821233c93f04ca4
Upload date
Uploaded using Trusted Publishing?
What is 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}
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page