STDIO bridge transport for spawning Swarmauri-compatible subprocesses.
Project description
Swarmauri Transport – STDIO Bridge
swarmauri-transport-stdio spawns subprocesses and communicates over standard input/output so command-line tools can act as Swarmauri peers.
Installation
Using uv
uv pip install swarmauri-transport-stdio --index-url https://pypi.org/simple
Using pip
pip install swarmauri-transport-stdio
Usage
import asyncio
from swarmauri_transport_stdio import StdioTransport
async def run_tool() -> None:
transport = StdioTransport(["python", "script.py"])
async with transport.client():
await transport.send("tool", b"input\n")
print(await transport.recv())
asyncio.run(run_tool())
Wrap any CLI-friendly model or service and adapt its IO using the Swarmauri transport interfaces.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file swarmauri_transport_stdio-0.1.1.dev19.tar.gz.
File metadata
- Download URL: swarmauri_transport_stdio-0.1.1.dev19.tar.gz
- Upload date:
- Size: 3.3 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fde188ff83e02c09e46a7fb8db941e59452e27f3dceeb47ae1ba5234da7e41d5
|
|
| MD5 |
ef1d6462f6d2ce5bb65f33886241a79b
|
|
| BLAKE2b-256 |
4b6c39fdac18c551fe0011e491ec9e5a19659d0cbe1bc11059874f0ba494c69b
|
File details
Details for the file swarmauri_transport_stdio-0.1.1.dev19-py3-none-any.whl.
File metadata
- Download URL: swarmauri_transport_stdio-0.1.1.dev19-py3-none-any.whl
- Upload date:
- Size: 4.2 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a21a460ae30f4d98467602820dddd3fa3b7fb4f48ec9de0b3b53a5ccc62bbd8d
|
|
| MD5 |
392e58c6e2e38542c4e4637c412ff826
|
|
| BLAKE2b-256 |
cd3ddce816a88429281e066c30c590feef22589d6fcfc216bea7b1567ecbc1a0
|