pi-server
Python port of @earendil-works/pi-server — Agent server (Unix socket + JSONL).
Install
pip install pi-server
Quick Start
import asyncio
from pi_server import serve, send_request
# Start server in background
asyncio.create_task(serve())
# Client: list instances
response = await send_request({"type": "list"})
print(response["instances"])
Commands
spawn— create new agent instancelist— list all instancesstatus— get instance statusstop— stop an instancerpc— forward command to agentrpc_stream— open bidirectional event stream
Links
- GitHub | Issues
- PORTING.md — deviations from upstream
Metadata
Release files for pi-py-server 0.84.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pi_py_server-0.84.1.tar.gz | 9.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pi_py_server-0.84.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.8 kB
Release files / pi_py_server-0.84.1.tar.gz
| Download URL | pi_py_server-0.84.1.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0f0069644b54ae08a1aee8664d6d1931525e43275ef81dbbb19ca145a1ff3a15
|
|
BLAKE2b-256 checksum How to use checksums |
ef14815a3bdb9f8c5cec4bababcae3c0b0d821dadac1274c9c55022b312d8c63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / pi_py_server-0.84.1-py3-none-any.whl
| Download URL | pi_py_server-0.84.1-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f708afef02d62cb31a4f3baf84a584a79e446bc2628956007d3df2139aa7c216
|
|
BLAKE2b-256 checksum How to use checksums |
20a9634526d43e5b121e3db4293b364fd5ab8dbc39e0b5cf9bf6fb12d81f4357
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|