Skip to main content

paddockai

The Python server SDK for paddock: templates, agents, sessions, events, and streams.

from paddockai import Paddock

client = Paddock()                                   # PADDOCK_API_KEY, PADDOCK_BASE_URL
client.templates.create("./agents/code-maintainer/template.yaml")
agent = client.agents.create(template="code-maintainer@3", metadata={"teamId": "t_42"})
session = agent.sessions.create(cwd="repos/web")
session.send("CI failed on main; fix it.")
token = session.create_token(ttl=3600)               # for the browser

with session.stream(after=0) as events:
    for event in events:
        if event.event == "message" and event.data.message.kind == "tool_call":
            print(event.data.message.tool_call.tool)

AsyncPaddock has the same methods as coroutines; its lists and streams are async iterators (async with session.stream() as events: async for event in events: ...).

Idempotent requests are retried with capped backoff (max_retries, default 2); a POST is never retried. The stream reconnects on its own and resumes after the highest seq it yielded. A non-2xx response raises paddockai.PaddockError with status, code, message, details, and request_id; no response raises paddockai.ConnectionError (or its subclass paddockai.TimeoutError).

Metadata

Release files for paddockai 0.0.1

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

Source distribution (sdist)

Source distribution for paddockai 0.0.1
File Size Uploaded Provenance Actions
paddockai-0.0.1.tar.gz 37.6 kB Without provenance Details for paddockai-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for paddockai 0.0.1
File Interpreter ABI Platform Actions
paddockai-0.0.1-py3-none-any.whl Python 3 none any Details for paddockai-0.0.1-py3-none-any.whl

Total release size: 86.3 kB

Release files / paddockai-0.0.1.tar.gz

Download URL paddockai-0.0.1.tar.gz
Size 37.6 kB
Tags Source
SHA-256 checksum
How to use checksums
dcb6fd7b41555251c81c3294c7dd9bb01afaa1e88724c93226428ae8f679262b
BLAKE2b-256 checksum
How to use checksums
0684470e8f1b8f2e0439d3033acbfdabf19009b89d8b5a913fa2699b5a54c58f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / paddockai-0.0.1-py3-none-any.whl

Download URL paddockai-0.0.1-py3-none-any.whl
Size 48.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4770ed0d6fcf6b8fc39432072354af9550574d3f4cc184f7a2f5718186cc548c
BLAKE2b-256 checksum
How to use checksums
9486b180a762f16a7277150f1d5f57f7bdfa330d082f2288039149905e015e67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Security for paddockai 0.0.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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