WebSocket client + appkit for soothe-daemon (Python)
Project description
soothe-client-python
Talk to a running soothe-daemon over WebSocket — send prompts, stream agent turns, run jobs.
pip install soothe-client-python
Requires a local daemon (default ws://127.0.0.1:8765).
Quick start
import asyncio
from soothe_client.appkit import DaemonSession
async def main() -> None:
session = DaemonSession("ws://127.0.0.1:8765")
await session.connect()
await session.send_turn("Summarize this in one sentence: agents need tools.")
async for _namespace, mode, data in session.iter_turn_chunks():
if mode == "custom" and isinstance(data, dict):
text = data.get("content") or data.get("text")
if text:
print(text, end="", flush=True)
print()
await session.close()
asyncio.run(main())
More patterns: examples/ (hello → streaming → multi-turn → pool → jobs).
What you get
| Need | Use |
|---|---|
| One conversation, stream replies | DaemonSession |
| Raw WebSocket / custom RPCs | WebSocketClient |
| Many users / HTTP backend | ConnectionPool + TurnRunner |
| Jobs / autopilot / cron | WsCommandClient |
Develop
make sync-dev
make check # lint + unit tests
make test-examples-offline # offline appkit examples
make test-examples # live 01–06 (needs soothed)
make test-integration # live integration suite (needs soothed)
Project details
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 soothe_client_python-0.9.6.tar.gz.
File metadata
- Download URL: soothe_client_python-0.9.6.tar.gz
- Upload date:
- Size: 61.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc09831ae6777faeb6a811d9e7e33504b4639c1e49f2984b724ac2a2af0c862d
|
|
| MD5 |
3995d05fdfb5c508a1885f23b63d0aae
|
|
| BLAKE2b-256 |
6c6988eb994fdeeb12549ffa61ba0108e97be0ec84255e501696128cadf84814
|
Provenance
The following attestation bundles were made for soothe_client_python-0.9.6.tar.gz:
Publisher:
release.yml on mirasoth/soothe-client-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
soothe_client_python-0.9.6.tar.gz -
Subject digest:
dc09831ae6777faeb6a811d9e7e33504b4639c1e49f2984b724ac2a2af0c862d - Sigstore transparency entry: 2178095994
- Sigstore integration time:
-
Permalink:
mirasoth/soothe-client-python@5bff4c9d4ecc7351742f727ea2950d1f18904f4f -
Branch / Tag:
refs/tags/v0.9.6 - Owner: https://github.com/mirasoth
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5bff4c9d4ecc7351742f727ea2950d1f18904f4f -
Trigger Event:
release
-
Statement type:
File details
Details for the file soothe_client_python-0.9.6-py3-none-any.whl.
File metadata
- Download URL: soothe_client_python-0.9.6-py3-none-any.whl
- Upload date:
- Size: 71.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70a3f6125e2a61706bde3e0536eef8d22cb24594f44b91825d9ce0d2dfd79595
|
|
| MD5 |
036ac539cbe6ac44754b05d32e472a16
|
|
| BLAKE2b-256 |
39ff160e7c61f9f4afd261ec456a33b5beb4d4ce1cc6d6b3729ade577f0d8f0b
|
Provenance
The following attestation bundles were made for soothe_client_python-0.9.6-py3-none-any.whl:
Publisher:
release.yml on mirasoth/soothe-client-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
soothe_client_python-0.9.6-py3-none-any.whl -
Subject digest:
70a3f6125e2a61706bde3e0536eef8d22cb24594f44b91825d9ce0d2dfd79595 - Sigstore transparency entry: 2178096145
- Sigstore integration time:
-
Permalink:
mirasoth/soothe-client-python@5bff4c9d4ecc7351742f727ea2950d1f18904f4f -
Branch / Tag:
refs/tags/v0.9.6 - Owner: https://github.com/mirasoth
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5bff4c9d4ecc7351742f727ea2950d1f18904f4f -
Trigger Event:
release
-
Statement type: