Python SDK for OpenWOP, the open-source protocol for multi-agent workflow orchestration: run AI agents as workflows you can watch, pause for human approval and replay, on any host that implements it.
pip install openwop-client==2.9.0 Copy PIP instructions
OpenWOP is the open-source protocol for multi-agent workflow orchestration: run AI agents as workflows you can watch, pause for human approval and replay, on any host that implements it.
pip install "openwop-client>=2,<3" from openwop_client import CreateRunRequest, OpenwopClient client = OpenwopClient(base_url="https://api.example.com", api_key="hk_test_abc123") resp = client.runs_create(CreateRunRequest(workflowId="my-workflow", inputs={"q": "hello"})) for event in client.runs_events(resp.runId): print(event.sequence, event.type) For implementers This package is the reference Python client for the v2 major (spec/v2/, RFC 0168 §D): synchronous, zero runtime deps, one typed method per operation in spec/v2/path-manifest.json (55 operations), typed dataclasses, and pure-stdlib SSE iterators for the run and host event channels.
pip install "openwop-client>=2,<3" # 2.9.0 — v2-only; the 1.x client stays on openwop-client<2 Spec: github.com/openwop/openwop · Corpus tag: see CORPUS_TAG · Mirrors: api/v2/openapi.yaml, schemas/v2/, spec/v2/errors.json · Sibling: the TypeScript client at sdk/typescript-v2/
The 1.x package (sdk/python/) is untouched and keeps publishing for v1 hosts. This is a v2-ONLY client: it never sends a /v1/… path. The import name stays openwop_client.
from openwop_client import CreateRunRequest, OpenwopClient, RunConfigurable, WopError, is_terminal_run_status client = OpenwopClient(base_url="https://api.example.com", api_key="hk_test_abc123") # major=2 → OpenWOP-Version: 2.0 caps = client.discovery_capabilities() # the closed v2 root print(caps.preferredVersion, caps.protocolVersions, "webhooks" in caps.families) resp = client.runs_create( CreateRunRequest(workflowId="my-workflow", inputs={"q": "hello"}, configurable=RunConfigurable(run={"runTimeoutMs": 60_000})), idempotency_key="idem-1", dedup=True, ) for event in client.runs_events(resp.runId, stream_mode=("updates", "messages")): print(event.sequence, event.type) cursor = None while True: # long-poll fallback page = client.runs_poll_events(resp.runId, after_sequence=cursor) cursor = page.lastSequence if page.isTerminal: break comp = client.runs_compensation(resp.runId) # None when `compensation` is unadvertised try: client.runs_get("tenant/does-not-exist") except WopError as err: if err.envelope and err.envelope.error == "not_found": ... Webhook receivers:
from openwop_client import read_webhook_headers, verify_webhook_signature read = read_webhook_headers(request.headers) outcome = verify_webhook_signature(secret, read.signature, read.timestamp, raw_body, algorithm_header=read.algorithm) if read else None Generated surface src/openwop_client/_generated.py is produced by scripts/generate.py from the vendored spec/v2/errors.json and schemas/v2/capabilities.schema.json; python3 scripts/generate.py --check (run by scripts/sdks-check.sh) fails when it drifts.
python3 scripts/generate.py --check ruff check . PYTHONPATH=src python3 -m unittest discover -s tests Project links Data verified by PyPI on Nov 1, 2026 Data provided by the project maintainers, verified at the time the release was uploaded to PyPI. Bug Tracker Changelog Repository Source Documentation Homepage Spec corpus Key dates PyPI data Data sourced directly from PyPI's database. Released: Nov 1, 2026 Latest release 1 maintainer PyPI data Data sourced directly from PyPI's database. davidscotttufts Credits Author: openwop spec working group
All 2 files in this release have provenance metadata.
agent-orchestration ai-agents human-in-the-loop llm multi-agent openwop orchestration sdk workflow workflow-orchestration
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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 verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.
All 2 files in this release have been uploaded with provenance metadata.
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.




