Skip to main content

harness-sdk-python

RunManager: the harness-sdk runs subsystem for Python Statewire hosts — the run/* command protocol (queues, steering, edit/reload, stop/resume, crash replay) driving a single async start(ctx) executor entrypoint.

class MyHost(Statewire):
    async def lifespan(self):
        self.state = initial_state()
        self.runs = RunManager(
            state=self.state,
            start=self._start,
            get_message_meta=self._get_message_meta,
            create_task=self.create_task,
            capabilities=("rewind",),
        )
        yield

    @command("run/enqueue")
    async def run_enqueue(self, params, *, caller):
        return await self.runs.enqueue(params, caller=caller)

    @command("run/steer")
    async def run_steer(self, params, *, caller):
        return await self.runs.steer(params, caller=caller)

    @command("run/dequeue")
    async def run_dequeue(self, params):
        return await self.runs.dequeue(params)

    @command("run/edit")
    async def run_edit(self, params):
        return await self.runs.edit(params)

    @command("run/reload")
    async def run_reload(self, params):
        return await self.runs.reload(params)

    @command("run/stop")
    async def run_stop(self):
        return await self.runs.stop()

    @command("run/continue")
    async def run_continue(self):
        return await self.runs.continue_run()

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

harness_sdk_python-0.5.0.tar.gz (31.7 kB view details)

Uploaded Source

Built Distribution

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

harness_sdk_python-0.5.0-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file harness_sdk_python-0.5.0.tar.gz.

File metadata

  • Download URL: harness_sdk_python-0.5.0.tar.gz
  • Upload date:
  • Size: 31.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for harness_sdk_python-0.5.0.tar.gz
Algorithm Hash digest
SHA256 f8d583e88b2922e5a209f66ebf4a15a50addf551c00937b7758264b2ece5e4ab
MD5 3ab72fa474ec6ecfacc8ed540ded9eaf
BLAKE2b-256 bbb4293b0b63e0c4a2f2a6ffc213e998cfc5ee89ebedb353159ad8e01363c89d

See more details on using hashes here.

Provenance

The following attestation bundles were made for harness_sdk_python-0.5.0.tar.gz:

Publisher: pypi-publish.yaml on assistant-ui/harness-sdk

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

File details

Details for the file harness_sdk_python-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for harness_sdk_python-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b60c9f2021dc7869a3cb2cfa3e1375fc70203625b4cc9537ddb8e7dfb0515a64
MD5 a1bc5c95a88ecf0b6485391f9cc986ef
BLAKE2b-256 7e0c76119d2fa5124d0adff9fc025922543e16a15b4e518365e0984e0e5f6ff0

See more details on using hashes here.

Provenance

The following attestation bundles were made for harness_sdk_python-0.5.0-py3-none-any.whl:

Publisher: pypi-publish.yaml on assistant-ui/harness-sdk

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 Sentry Error logging StatusPage Status page