Skip to main content

Boardwalk Python SDK

The Python SDK for Boardwalk agent workflows. A workflow is a plain async function; capabilities are imports:

from boardwalk import agent, phase, secrets

async def run(input, context):
    key = await secrets.get("STRIPE_API_KEY")
    phase("analyze")
    note = await agent(f"Why did payment {input['id']} fail?")
    return {"action": "retry", "note": note}

The entry is a module-level run (async or sync), found by name — positional params, Lambda-style: input is param 0, context is param 1, and declaring fewer params is fine. The return value is the run's output. Typed I/O is opt-in: annotate input with a Pydantic model / dataclass / TypedDict and the return type, and the platform derives the contract — rich types (datetime, bytes, set, Decimal, big int) cross the wire in canonical JSON encodings and arrive revived.

Status: pre-alpha. Built as part of the workflow format redesign; the platform side is still landing.

The surface

from boardwalk import (
    agent,        # run an LLM leaf: await agent(prompt, model=..., schema=..., tools=[...])
    workflows,    # workflows.call / workflows.run / workflows.schedule
    sleep,        # await sleep(1500) / sleep(until=...)
    human_input,  # pause for a person; text / choice / multiselect
    secrets,      # await secrets.get("NAME")
    artifacts,    # await artifacts.write(name, content_type, body)
    computer,     # computer.open_browser() -> BrowserSession / open_desktop() -> DesktopSession
    shell,        # await shell(cmd) -> ShellResult (never raises on non-zero exit)
    parallel,     # run thunks concurrently; failures isolate to None
    phase,        # phase("analyze") — a run-timeline marker
    auth,         # await auth.id_token(audience) / auth.api_token()
    usage,        # await usage.get() — live budget state
    Context,      # run(input, context)'s second parameter (frozen dataclass)
)

Unit testing

install_test_host makes run(input, context) a plain function call over stubs — no socket, no engine:

from boardwalk import install_test_host

host = install_test_host(
    agent=lambda prompt, opts: "LGTM",
    secrets={"STRIPE_API_KEY": "sk_test_1"},
)
out = await run({"id": "pay_1"}, host.context())

How it works

Every capability is a thin client of the Boardwalk host protocol — newline-delimited JSON-RPC 2.0 over a local Unix socket (BOARDWALK_HOST_SOCK) served by the runner inside the run's machine. The SDK holds no model credentials and no platform secrets; the runner brokers everything. Inline agent() tools run in your program process — only their declarations cross the wire, and the engine calls the handlers back over the protocol. The runner invokes your program via python -m boardwalk._loader <entry>.

Development

make install   # uv sync
make check     # ruff lint + format check + mypy --strict + pytest with coverage

Stdlib-only at runtime (pydantic is optional, used for input validation only when your run is annotated with a model and pydantic is importable).

Sibling repos

  • sdk-typescript — @boardwalk-labs/workflow, the TypeScript SDK
  • runner — the worker runtime that serves the host protocol
  • cli — the boardwalk CLI
  • examples — reference workflows

License

MIT

Metadata

Release files for boardwalk 0.1.3

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

Source distribution (sdist)

Source distribution for boardwalk 0.1.3
File Size Uploaded Provenance
boardwalk-0.1.3.tar.gz 53.8 kB With provenance Details

Built distribution (wheel)

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

Total release size: 94.8 kB

Release files / boardwalk-0.1.3.tar.gz

Download URL boardwalk-0.1.3.tar.gz
Size 53.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5c2f3933372b14ccf5a40167400eb1c40776caaf292470d7df7a34d5c4f9757a
BLAKE2b-256 checksum
How to use checksums
634138c25b6b962935f5e0e44075c73550fcb6036d91af4d6640b9bc7d0f0bc1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 4, 2026.

Transparency log

Release files / boardwalk-0.1.3-py3-none-any.whl

Download URL boardwalk-0.1.3-py3-none-any.whl
Size 41.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b817d39bc98fb29d9d7c5a46fe7c8f70185a061282b4eb6cd355c06e52e4ed7f
BLAKE2b-256 checksum
How to use checksums
8000c0dec1db0d439c6ed35a332ae529dfae9992e71e11f18fead0253498dd16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 4, 2026.

Transparency log

Security for boardwalk 0.1.3

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 boardwalk-0.1.3.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 Aug 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.

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