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.1.0.tar.gz
(13.6 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.1.0.tar.gz.
File metadata
- Download URL: harness_sdk_python-0.1.0.tar.gz
- Upload date:
- Size: 13.6 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 |
fe5426b755a80ab0bab53125d3d096bdb977bbab081fb444589ceb2ac960cc95
|
|
| MD5 |
a601712b16ff77b2942b9e4d24436a25
|
|
| BLAKE2b-256 |
d9e85dc4fda8dfe11096eade7dad44877a90d7356e019760efeb4d73d997490d
|
File details
Details for the file harness_sdk_python-0.1.0-py3-none-any.whl.
File metadata
- Download URL: harness_sdk_python-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.0 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 |
55b66c27e99e9ec06822acc0e49205690beb9a06cf6e4d66fead4de4baf99c30
|
|
| MD5 |
4eb471194b635ed5b46cdb3e5b5178e2
|
|
| BLAKE2b-256 |
5400e82e2545f263250c79f602cd81e0e0acd2fcadf69a1ce2077434b9ab7015
|