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,
            version=ctx.version,
        )

Docs

Metadata

Release files for harness-sdk-python 0.39.2

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.2
File Size Uploaded Provenance Actions
harness_sdk_python-0.39.2.tar.gz 144.5 kB With provenance Details for harness_sdk_python-0.39.2.tar.gz

Built distribution (wheel)

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

Total release size: 212.6 kB

Release files / harness_sdk_python-0.39.2.tar.gz

Download URL harness_sdk_python-0.39.2.tar.gz
Size 144.5 kB
Tags Source
SHA-256 checksum
How to use checksums
be4257af03769eb8d119921c2de3e80e9698dc761dc4ddc6501073b08a7271f9
BLAKE2b-256 checksum
How to use checksums
569d50a3d0456419fe76c84ef327d3178c5f59d8864c00fbaff3fdd8f3b9f682
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 4, 2026.

Transparency log

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

Download URL harness_sdk_python-0.39.2-py3-none-any.whl
Size 68.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec5fbce2ec3111c9efabacf3ad4305880ad7b238973adb5986cf8ca1b711051b
BLAKE2b-256 checksum
How to use checksums
33833665c34e6de362ccee763894ecd52eafffb9a1dfff7bf972c9b553cb0f4b
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 4, 2026.

Transparency log

Security for harness-sdk-python 0.39.2

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for harness_sdk_python-0.39.2.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 4, 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.2 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