Skip to main content

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 instance
  • list — list all instances
  • status — get instance status
  • stop — stop an instance
  • rpc — forward command to agent
  • rpc_stream — open bidirectional event stream

Links

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pi_py_server-0.83.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

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

Hashes for pi_py_server-0.83.0.tar.gz
Algorithm Hash digest
SHA256 007fd99dfff2834eaaf8777a39b2dba3a0672cdb1a1f8f43b3a9ec118cf60290
MD5 a19fc96ae3d69bd0509a302e0d8cd98f
BLAKE2b-256 694b2c40cb27bc06d9ae6b577ca038551eeb51df947852c07bbc5f84a52117c3

See more details on using hashes here.

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

Hashes for pi_py_server-0.83.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bbf3dfeafd7c30fcbf90337a8abdbc15a230806348bff8b8b0819a330b9bfec0
MD5 7991833486f434b4111df2e0a0a46067
BLAKE2b-256 fa589ffe3a016be49de47f920f298f41519057c496eb7ceec20289ec020449d9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page