Skip to main content

harness-sdk-python

The runs subsystem for Python Statewire hosts: @run_manager turns one async method into the run executor and mounts the run/* command surface (enqueue, steer, dequeue, edit, reload, stop, continue, input), each run in its own tray. Part of harness-sdk, with statewire and pinned.

Install

uv add harness-sdk-python

Extras: uv add "harness-sdk-python[postgres]", uv add "harness-sdk-python[deepagents]".

Use

from statewire import Statewire, command

from harness_sdk import HARNESS_PROTOCOL, RunManager, run_manager


class RunsHost(Statewire):
    protocols = (HARNESS_PROTOCOL,)

    async def lifespan(self):
        self.state = {"messages": []}
        yield

    @run_manager()
    async def run(self, ctx: RunManager.RunContext):
        for message in ctx.messages:
            self.state["messages"].append({"id": message["id"]})
        ctx.applied()
        return RunManager.Complete()

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

Docs

Metadata

Release files for harness-sdk-python 0.39.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for harness-sdk-python 0.39.0
File Size Uploaded Provenance Actions
harness_sdk_python-0.39.0.tar.gz 143.2 kB With provenance Details for harness_sdk_python-0.39.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for harness-sdk-python 0.39.0
File Interpreter ABI Platform Actions
harness_sdk_python-0.39.0-py3-none-any.whl Python 3 none any Details for harness_sdk_python-0.39.0-py3-none-any.whl

Total release size: 211.1 kB

Release files / harness_sdk_python-0.39.0.tar.gz

Download URL harness_sdk_python-0.39.0.tar.gz
Size 143.2 kB
Tags Source
SHA-256 checksum
How to use checksums
878e32acee3b84ddd64c4757aa8f7e9e338a64ecca189d7aca88d640da9f8873
BLAKE2b-256 checksum
How to use checksums
fc9e4fbb60da7d4602853139e75772bfea535699f719ec0b46831eb3b456540b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Release files / harness_sdk_python-0.39.0-py3-none-any.whl

Download URL harness_sdk_python-0.39.0-py3-none-any.whl
Size 67.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9c806da6f1f29346f5a0c06421f166a237b26fc86dcc96a31231135e219e7786
BLAKE2b-256 checksum
How to use checksums
4122b80a2c09698a80758469a1a27c57f94da2032d4c3cf66c50519b29656709
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Security for harness-sdk-python 0.39.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for harness_sdk_python-0.39.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.39.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page