swarmauri_transport_stdio 0.1.1.dev21__tar.gz → 0.11.0.dev1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {swarmauri_transport_stdio-0.1.1.dev21 → swarmauri_transport_stdio-0.11.0.dev1}/PKG-INFO +23 -25
- swarmauri_transport_stdio-0.11.0.dev1/README.md +52 -0
- {swarmauri_transport_stdio-0.1.1.dev21 → swarmauri_transport_stdio-0.11.0.dev1}/pyproject.toml +6 -4
- {swarmauri_transport_stdio-0.1.1.dev21 → swarmauri_transport_stdio-0.11.0.dev1}/swarmauri_transport_stdio/stdio_transport.py +6 -2
- swarmauri_transport_stdio-0.1.1.dev21/README.md +0 -56
- {swarmauri_transport_stdio-0.1.1.dev21 → swarmauri_transport_stdio-0.11.0.dev1}/LICENSE +0 -0
- {swarmauri_transport_stdio-0.1.1.dev21 → swarmauri_transport_stdio-0.11.0.dev1}/swarmauri_transport_stdio/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: swarmauri_transport_stdio
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.11.0.dev1
|
|
4
4
|
Summary: STDIO bridge transport for spawning Swarmauri-compatible subprocesses.
|
|
5
5
|
License: Copyright 2024 Jacob Stewart
|
|
6
6
|
|
|
@@ -19,47 +19,43 @@ License-File: LICENSE
|
|
|
19
19
|
Keywords: swarmauri,transport,stdio,subprocess,cli,asyncio,bridge,sdk,standards
|
|
20
20
|
Author: Jacob Stewart
|
|
21
21
|
Author-email: jacob@swarmauri.com
|
|
22
|
-
Requires-Python: >=3.10
|
|
22
|
+
Requires-Python: >=3.10,<3.15
|
|
23
23
|
Classifier: Development Status :: 2 - Pre-Alpha
|
|
24
24
|
Classifier: Intended Audience :: Developers
|
|
25
25
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
26
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
27
|
+
Classifier: Topic :: System :: Shells
|
|
26
28
|
Classifier: Programming Language :: Python
|
|
27
29
|
Classifier: Programming Language :: Python :: 3
|
|
28
30
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
29
31
|
Classifier: Programming Language :: Python :: 3.10
|
|
30
32
|
Classifier: Programming Language :: Python :: 3.11
|
|
31
33
|
Classifier: Programming Language :: Python :: 3.12
|
|
32
|
-
Classifier:
|
|
33
|
-
Classifier:
|
|
34
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
35
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
34
36
|
Requires-Dist: swarmauri-base
|
|
35
37
|
Requires-Dist: swarmauri-core
|
|
36
38
|
Project-URL: Homepage, https://github.com/swarmauri/swarmauri-sdk
|
|
37
39
|
Project-URL: Repository, https://github.com/swarmauri/swarmauri-sdk
|
|
38
40
|
Description-Content-Type: text/markdown
|
|
39
41
|
|
|
40
|
-

|
|
41
43
|
|
|
42
44
|
<p align="center">
|
|
43
|
-
<a href="https://
|
|
44
|
-
<img src="https://
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
<a href="https://pypi.org/project/
|
|
50
|
-
<img src="https://img.shields.io/pypi/
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
</a>
|
|
58
|
-
</p>
|
|
59
|
-
|
|
60
|
-
---
|
|
61
|
-
|
|
62
|
-
# Swarmauri Transport – STDIO Bridge
|
|
45
|
+
<a href="https://pepy.tech/project/swarmauri_transport_stdio/">
|
|
46
|
+
<img src="https://static.pepy.tech/badge/swarmauri_transport_stdio/month" alt="PyPI - Downloads"/></a>
|
|
47
|
+
<a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_transport_stdio/">
|
|
48
|
+
<img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_transport_stdio.svg"/></a>
|
|
49
|
+
<a href="https://pypi.org/project/swarmauri_transport_stdio/">
|
|
50
|
+
<img src="https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13%20%7C%203.14-blue" alt="PyPI - Python Version"/></a>
|
|
51
|
+
<a href="https://pypi.org/project/swarmauri_transport_stdio/">
|
|
52
|
+
<img src="https://img.shields.io/pypi/l/swarmauri_transport_stdio" alt="PyPI - License"/></a>
|
|
53
|
+
<a href="https://pypi.org/project/swarmauri_transport_stdio/">
|
|
54
|
+
<img src="https://img.shields.io/pypi/v/swarmauri_transport_stdio?label=swarmauri_transport_stdio&color=green" alt="PyPI - swarmauri_transport_stdio"/></a>
|
|
55
|
+
<a href="https://discord.gg/N4UpBuQv8T">
|
|
56
|
+
<img src="https://img.shields.io/badge/Discord-Join%20Chat-5865F2?logo=discord&logoColor=white" alt="Discord"/></a></p>
|
|
57
|
+
|
|
58
|
+
# Swarmauri Transport ? STDIO Bridge
|
|
63
59
|
|
|
64
60
|
`swarmauri-transport-stdio` spawns subprocesses and communicates over standard input/output so command-line tools can act as Swarmauri peers.
|
|
65
61
|
|
|
@@ -94,3 +90,5 @@ asyncio.run(run_tool())
|
|
|
94
90
|
|
|
95
91
|
Wrap any CLI-friendly model or service and adapt its IO using the Swarmauri transport interfaces.
|
|
96
92
|
|
|
93
|
+
|
|
94
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<a href="https://pepy.tech/project/swarmauri_transport_stdio/">
|
|
5
|
+
<img src="https://static.pepy.tech/badge/swarmauri_transport_stdio/month" alt="PyPI - Downloads"/></a>
|
|
6
|
+
<a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_transport_stdio/">
|
|
7
|
+
<img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_transport_stdio.svg"/></a>
|
|
8
|
+
<a href="https://pypi.org/project/swarmauri_transport_stdio/">
|
|
9
|
+
<img src="https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13%20%7C%203.14-blue" alt="PyPI - Python Version"/></a>
|
|
10
|
+
<a href="https://pypi.org/project/swarmauri_transport_stdio/">
|
|
11
|
+
<img src="https://img.shields.io/pypi/l/swarmauri_transport_stdio" alt="PyPI - License"/></a>
|
|
12
|
+
<a href="https://pypi.org/project/swarmauri_transport_stdio/">
|
|
13
|
+
<img src="https://img.shields.io/pypi/v/swarmauri_transport_stdio?label=swarmauri_transport_stdio&color=green" alt="PyPI - swarmauri_transport_stdio"/></a>
|
|
14
|
+
<a href="https://discord.gg/N4UpBuQv8T">
|
|
15
|
+
<img src="https://img.shields.io/badge/Discord-Join%20Chat-5865F2?logo=discord&logoColor=white" alt="Discord"/></a></p>
|
|
16
|
+
|
|
17
|
+
# Swarmauri Transport ? STDIO Bridge
|
|
18
|
+
|
|
19
|
+
`swarmauri-transport-stdio` spawns subprocesses and communicates over standard input/output so command-line tools can act as Swarmauri peers.
|
|
20
|
+
|
|
21
|
+
## Installation
|
|
22
|
+
|
|
23
|
+
### Using `uv`
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
uv pip install swarmauri-transport-stdio --index-url https://pypi.org/simple
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Using `pip`
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
pip install swarmauri-transport-stdio
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Usage
|
|
36
|
+
|
|
37
|
+
```python
|
|
38
|
+
import asyncio
|
|
39
|
+
from swarmauri_transport_stdio import StdioTransport
|
|
40
|
+
|
|
41
|
+
async def run_tool() -> None:
|
|
42
|
+
transport = StdioTransport(["python", "script.py"])
|
|
43
|
+
async with transport.client():
|
|
44
|
+
await transport.send("tool", b"input\n")
|
|
45
|
+
print(await transport.recv())
|
|
46
|
+
|
|
47
|
+
asyncio.run(run_tool())
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Wrap any CLI-friendly model or service and adapt its IO using the Swarmauri transport interfaces.
|
|
51
|
+
|
|
52
|
+
|
{swarmauri_transport_stdio-0.1.1.dev21 → swarmauri_transport_stdio-0.11.0.dev1}/pyproject.toml
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "swarmauri_transport_stdio"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.11.0.dev1"
|
|
4
4
|
description = "STDIO bridge transport for spawning Swarmauri-compatible subprocesses."
|
|
5
5
|
readme = "README.md"
|
|
6
|
-
requires-python = ">=3.10"
|
|
6
|
+
requires-python = ">=3.10,<3.15"
|
|
7
7
|
authors = [{ name = "Jacob Stewart", email = "jacob@swarmauri.com" }]
|
|
8
8
|
license = { file = "LICENSE" }
|
|
9
9
|
dependencies = [
|
|
@@ -25,14 +25,16 @@ classifiers = [
|
|
|
25
25
|
"Development Status :: 2 - Pre-Alpha",
|
|
26
26
|
"Intended Audience :: Developers",
|
|
27
27
|
"License :: OSI Approved :: Apache Software License",
|
|
28
|
+
"Topic :: Software Development :: Libraries",
|
|
29
|
+
"Topic :: System :: Shells",
|
|
28
30
|
"Programming Language :: Python",
|
|
29
31
|
"Programming Language :: Python :: 3",
|
|
30
32
|
"Programming Language :: Python :: 3 :: Only",
|
|
31
33
|
"Programming Language :: Python :: 3.10",
|
|
32
34
|
"Programming Language :: Python :: 3.11",
|
|
33
35
|
"Programming Language :: Python :: 3.12",
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
+
"Programming Language :: Python :: 3.13",
|
|
37
|
+
"Programming Language :: Python :: 3.14",
|
|
36
38
|
]
|
|
37
39
|
|
|
38
40
|
[project.urls]
|
|
@@ -40,7 +40,9 @@ class StdioTransport(
|
|
|
40
40
|
)
|
|
41
41
|
|
|
42
42
|
async def _start_server(self, **kwargs) -> None:
|
|
43
|
-
raise NotImplementedError(
|
|
43
|
+
raise NotImplementedError(
|
|
44
|
+
"STDIO transport launches child processes only"
|
|
45
|
+
)
|
|
44
46
|
|
|
45
47
|
async def _open_client(self) -> None:
|
|
46
48
|
self._process = await asyncio.create_subprocess_exec(
|
|
@@ -67,4 +69,6 @@ class StdioTransport(
|
|
|
67
69
|
async def recv(self, *, timeout: Optional[float] = None) -> bytes:
|
|
68
70
|
if self._process is None or self._process.stdout is None:
|
|
69
71
|
raise RuntimeError("not connected")
|
|
70
|
-
return await asyncio.wait_for(
|
|
72
|
+
return await asyncio.wait_for(
|
|
73
|
+
self._process.stdout.read(65536), timeout
|
|
74
|
+
)
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-

|
|
2
|
-
|
|
3
|
-
<p align="center">
|
|
4
|
-
<a href="https://pypi.org/project/swarmauri-transport-stdio/">
|
|
5
|
-
<img src="https://img.shields.io/pypi/dm/swarmauri-transport-stdio" alt="PyPI - Downloads"/>
|
|
6
|
-
</a>
|
|
7
|
-
<a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/swarmauri_transport_stdio/">
|
|
8
|
-
<img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/swarmauri_transport_stdio.svg"/>
|
|
9
|
-
</a>
|
|
10
|
-
<a href="https://pypi.org/project/swarmauri-transport-stdio/">
|
|
11
|
-
<img src="https://img.shields.io/pypi/pyversions/swarmauri-transport-stdio" alt="PyPI - Python Version"/>
|
|
12
|
-
</a>
|
|
13
|
-
<a href="https://pypi.org/project/swarmauri-transport-stdio/">
|
|
14
|
-
<img src="https://img.shields.io/pypi/l/swarmauri-transport-stdio" alt="PyPI - License"/>
|
|
15
|
-
</a>
|
|
16
|
-
<a href="https://pypi.org/project/swarmauri-transport-stdio/">
|
|
17
|
-
<img src="https://img.shields.io/pypi/v/swarmauri-transport-stdio?label=swarmauri-transport-stdio&color=green" alt="PyPI - swarmauri-transport-stdio"/>
|
|
18
|
-
</a>
|
|
19
|
-
</p>
|
|
20
|
-
|
|
21
|
-
---
|
|
22
|
-
|
|
23
|
-
# Swarmauri Transport – STDIO Bridge
|
|
24
|
-
|
|
25
|
-
`swarmauri-transport-stdio` spawns subprocesses and communicates over standard input/output so command-line tools can act as Swarmauri peers.
|
|
26
|
-
|
|
27
|
-
## Installation
|
|
28
|
-
|
|
29
|
-
### Using `uv`
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
uv pip install swarmauri-transport-stdio --index-url https://pypi.org/simple
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
### Using `pip`
|
|
36
|
-
|
|
37
|
-
```bash
|
|
38
|
-
pip install swarmauri-transport-stdio
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
## Usage
|
|
42
|
-
|
|
43
|
-
```python
|
|
44
|
-
import asyncio
|
|
45
|
-
from swarmauri_transport_stdio import StdioTransport
|
|
46
|
-
|
|
47
|
-
async def run_tool() -> None:
|
|
48
|
-
transport = StdioTransport(["python", "script.py"])
|
|
49
|
-
async with transport.client():
|
|
50
|
-
await transport.send("tool", b"input\n")
|
|
51
|
-
print(await transport.recv())
|
|
52
|
-
|
|
53
|
-
asyncio.run(run_tool())
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
Wrap any CLI-friendly model or service and adapt its IO using the Swarmauri transport interfaces.
|
|
File without changes
|