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.6.tar.gz (61.4 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.6-py3-none-any.whl (71.7 kB view details)

Uploaded Python 3

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

Hashes for soothe_client_python-0.9.6.tar.gz
Algorithm Hash digest
SHA256 dc09831ae6777faeb6a811d9e7e33504b4639c1e49f2984b724ac2a2af0c862d
MD5 3995d05fdfb5c508a1885f23b63d0aae
BLAKE2b-256 6c6988eb994fdeeb12549ffa61ba0108e97be0ec84255e501696128cadf84814

See more details on using hashes here.

Provenance

The following attestation bundles were made for soothe_client_python-0.9.6.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.6-py3-none-any.whl.

File metadata

File hashes

Hashes for soothe_client_python-0.9.6-py3-none-any.whl
Algorithm Hash digest
SHA256 70a3f6125e2a61706bde3e0536eef8d22cb24594f44b91825d9ce0d2dfd79595
MD5 036ac539cbe6ac44754b05d32e472a16
BLAKE2b-256 39ff160e7c61f9f4afd261ec456a33b5beb4d4ce1cc6d6b3729ade577f0d8f0b

See more details on using hashes here.

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

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