Skip to main content

mv37-workdir

Python SDK for workdir.

pip install mv37-workdir
import time
from workdir import Client

workdir = Client("https://api.workdir.dev", api_key="...")

box = workdir.sandboxes.create()
print(box.exec("echo hello").stdout)

job = box.exec("pytest", background=True)
status = box.exec_status(job.cmd_id)
while status.state == "running":
    time.sleep(1)
    status = box.exec_status(job.cmd_id)
print(box.exec_logs(job.cmd_id))
box.delete()
workdir.templates.create(
    "node-app",
    create={
        "image": "node-python",
        "resources": {"cpu": 2, "memory_mb": 4096, "disk_gb": 16},
        "startup": {"git": {"url": "https://github.com/acme/app.git", "ref": "main"}},
    },
)
boxes = workdir.templates.spawn("node-app", count=2)

run = workdir.agent_runs.create(
    template="node-app",
    repo={"url": "https://github.com/acme/app.git", "ref": "main"},
    agent="codex",
    model="gpt-5",
    api_key_secret="OPENAI_API_KEY",
    prompt="Fix the failing tests and leave a clean diff.",
    task={"name": "Fix failing tests", "labels": ["delegated"]},
    verify=[{"name": "tests", "run": "pnpm test", "fail_run": True}],
    github={"token_secret": "GITHUB_TOKEN", "draft": True},
)
finished = workdir.agent_runs.wait(run.id)
print(workdir.agent_runs.report(finished.id).summary)

The SDK uses only the Python standard library.

Metadata

Release files for mv37-workdir 0.3.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 mv37-workdir 0.3.2
File Size Uploaded
mv37_workdir-0.3.2.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mv37-workdir 0.3.2
File Interpreter ABI Platform
mv37_workdir-0.3.2-py3-none-any.whl Python 3 none any Details

Total release size: 13.2 kB

Release files / mv37_workdir-0.3.2.tar.gz

Download URL mv37_workdir-0.3.2.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
bd60a3e23270af3dcfa3120977030d317a60bc7719eb6095574067c473b78a30
BLAKE2b-256 checksum
How to use checksums
6a3d79ab6a158f14aea1bff1f10f317794afee8d3bc1398888130be0f844b780
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 6, 2026.

Transparency log

Release files / mv37_workdir-0.3.2-py3-none-any.whl

Download URL mv37_workdir-0.3.2-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
804bd84ed1eeacb59b86c8ac575de07bdcf44a31bfebdbd9765176c08a7750a1
BLAKE2b-256 checksum
How to use checksums
d5e60d2b5ed967c7b51d1141146ec5db34b470b38a9351454c98e69ae0e28219
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jul 6, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.2 This release

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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