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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pi_py_server-0.83.0.tar.gz
(9.3 kB
view details)
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 pi_py_server-0.83.0.tar.gz.
File metadata
- Download URL: pi_py_server-0.83.0.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
007fd99dfff2834eaaf8777a39b2dba3a0672cdb1a1f8f43b3a9ec118cf60290
|
|
| MD5 |
a19fc96ae3d69bd0509a302e0d8cd98f
|
|
| BLAKE2b-256 |
694b2c40cb27bc06d9ae6b577ca038551eeb51df947852c07bbc5f84a52117c3
|
File details
Details for the file pi_py_server-0.83.0-py3-none-any.whl.
File metadata
- Download URL: pi_py_server-0.83.0-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbf3dfeafd7c30fcbf90337a8abdbc15a230806348bff8b8b0819a330b9bfec0
|
|
| MD5 |
7991833486f434b4111df2e0a0a46067
|
|
| BLAKE2b-256 |
fa589ffe3a016be49de47f920f298f41519057c496eb7ceec20289ec020449d9
|