Skip to main content

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

soothe_client_python-0.9.7.tar.gz (61.9 kB view details)

Uploaded Source

Built Distribution

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

soothe_client_python-0.9.7-py3-none-any.whl (72.7 kB view details)

Uploaded Python 3

File details

Details for the file soothe_client_python-0.9.7.tar.gz.

File metadata

  • Download URL: soothe_client_python-0.9.7.tar.gz
  • Upload date:
  • Size: 61.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for soothe_client_python-0.9.7.tar.gz
Algorithm Hash digest
SHA256 c40a315fb171fb354305340978c326657514c01ac4adf6fdbb0070bfa6f6f410
MD5 81e9822157a2d5fb78caa3ca9bf660f6
BLAKE2b-256 cee7c99e5f6bb3f50e4fbf548f4f493e915b0b657ab4c7313bf6bfb297f04795

See more details on using hashes here.

Provenance

The following attestation bundles were made for soothe_client_python-0.9.7.tar.gz:

Publisher: release.yml on mirasoth/soothe-client-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file soothe_client_python-0.9.7-py3-none-any.whl.

File metadata

File hashes

Hashes for soothe_client_python-0.9.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d68bf748a46af2b394b4c3c9f7093a8a00fac94c4c27a9549afa3371d87f21eb
MD5 9753de7c01ee4cfc5dcd32524bd8e180
BLAKE2b-256 13bc748fa1039c337cce5bc5475c137449738e407ad0684fcf5a810e8b482a81

See more details on using hashes here.

Provenance

The following attestation bundles were made for soothe_client_python-0.9.7-py3-none-any.whl:

Publisher: release.yml on mirasoth/soothe-client-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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