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["runs"],
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.2.0.tar.gz
(18.0 kB
view details)
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 harness_sdk_python-0.2.0.tar.gz.
File metadata
- Download URL: harness_sdk_python-0.2.0.tar.gz
- Upload date:
- Size: 18.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97f0b53b15822a7c6994422d99d7e4bb36897aac4460b5ce4886cc84e1f13f54
|
|
| MD5 |
84050ddce24a4959c7a2f2eba657d428
|
|
| BLAKE2b-256 |
5621269466145ec862b3194aeccc355646a23d8fc339ae8cc43e5cc49f013cf2
|
File details
Details for the file harness_sdk_python-0.2.0-py3-none-any.whl.
File metadata
- Download URL: harness_sdk_python-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20ccd7a1837e70f4cace8b45bdece83f85e965f9f096a6be6adff2b7e5048769
|
|
| MD5 |
789512c87a0ceffca99088f4569b3b39
|
|
| BLAKE2b-256 |
d8513f35098aa5a6b5f3c4d2bc2e3362529c5469853e81831139d3ce136799d8
|