Skip to main content

Acclimate Python SDK

Deliver versioned agent instructions, skills and memory to jobs with the Acclimate Python SDK. It requires Python 3.11 or later on Linux or macOS and has no third-party dependencies.

Install

Use the wheel from a GitHub release or build it from a checkout. Verify release artifacts against SHA256SUMS and install the wheel without an index. Registry installation with pip install acclimate-sdk requires a separate PyPI publication.

python3.11 -m pip install --no-index --no-deps /absolute/path/to/release/acclimate_sdk-0.3.0-py3-none-any.whl

To build a wheel from a checkout, run python3.11 -m pip wheel --no-deps --wheel-dir /tmp/acclimate-wheel ./python or uv build --wheel --out-dir /tmp/acclimate-wheel ./python. Neither writes build files into the checkout, and neither needs Node.js. Importing the package on Python 3.10 or earlier fails with a message naming the version found.

Deliver the released version to a job

import os
from acclimate import AcclimateClient

client = AcclimateClient(
    os.environ["ACCLIMATE_URL"], os.environ["ACCLIMATE_TOKEN"], "support-agent",
    connection_id=os.environ["ACCLIMATE_CONNECTION"],
)
with client.prepare(workspace_id, bundle_id, channel="stable") as prepared:
    # system_prompt renders the bundle exactly as learning rollouts see it.
    result = run_agent(task, system_prompt=prepared.system_prompt)
    save_job_result(result, version=prepared.version["version"]["id"], digest=prepared.version["version"]["digest"])

run_agent and save_job_result belong to your application. For background work, keep the prepared object and call cleanup() after the job stops and its result is saved. The verified cache defaults to ~/.cache/acclimate/python; set cache_dir and destination to change the cache and job directories. Only use directories the current user controls.

Set the connection UUID in ACCLIMATE_CONNECTION. Each new job checks its connection online. Verified file contents can then be reused from disk. A job already running keeps its prepared files until cleanup.

Report a production outcome

Use job.expect(expected, input=task, output=response) with a write credential. The service admits and splits the task.

Client conventions

  • Method names, keyword arguments and attributes are snake_case. HTTP dictionaries keep the service's camelCase keys, described by the TypedDicts in acclimate.types.
  • Use the same idempotency key and request when retrying a mutation that accepts an explicit key. Learning outcomes use their outcome UUID for durable replay.
  • ApiError has status, code, request_id and details. Transport failures raise TransportError.
  • The client rejects redirects, so the token never leaves the configured origin, and bounds every response.
  • See the Python SDK reference.

The client and delivery helpers are synchronous.

Report delivery

With a separate receipt credential, pass a DeliveryReporter to client.prepare and call prepared.report_started() from the job's actual start event. Save the returned record with your job ID so the connection can link it to the outcome. Calling it again on the same job returns the same event ID. Without a reporter, or when the queue is full, it returns None.

DeliveryReporter starts one daemon thread on the first observation and keeps at most max_queue events. Report failures never affect delivery. flush() retries failed events with their original IDs, wait(timeout=1) waits for scheduled work, and close(timeout=0.1) stops the worker. A short-lived CLI can call wait(1.2) and then close(0) before it exits. Reports live in memory; a missing report means unknown, not that the agent didn't use the content.

The checkout's delivery check prints the pinned version, digest and staged files:

export ACCLIMATE_URL=http://127.0.0.1:3000
export ACCLIMATE_WORKSPACE=YOUR_WORKSPACE ACCLIMATE_BUNDLE=YOUR_BUNDLE
# Set ACCLIMATE_TOKEN privately to your content-read credential.
export ACCLIMATE_CONNECTION=YOUR_CONNECTION_ID
# Optional: set ACCLIMATE_RECEIPT_TOKEN privately to report delivery.
PYTHONPATH=python python3.11 python/examples/delivery_check.py

Use python -m acclimate pull --bundle NAME --out payload.json to save a released payload to a new file. It reads ACCLIMATE_URL, ACCLIMATE_WORKSPACE and ACCLIMATE_TOKEN, or a private config file passed with --config. To publish and release bundles from a shell, use the acclimate command of the TypeScript SDK.

Develop the SDK

From the repository root, run the offline tests with PYTHONPATH=python python3.11 -m unittest discover -s python/tests -v. The strict typing fixtures check an installed wheel from outside the checkout.

Metadata

Release files for acclimate-sdk 0.3.0

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

Built distribution (wheel)

Table of built distributions (wheels) for acclimate-sdk 0.3.0
File Interpreter ABI Platform Actions
acclimate_sdk-0.3.0-py3-none-any.whl Python 3 none any Details for acclimate_sdk-0.3.0-py3-none-any.whl

Release files / acclimate_sdk-0.3.0-py3-none-any.whl

Download URL acclimate_sdk-0.3.0-py3-none-any.whl
Size 33.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ceb124d4b9867640465e6a6cfa8f0126b2d8368c3f39aadf826af6b483904259
BLAKE2b-256 checksum
How to use checksums
b543b0dd4da881878a291be947449a02d783829849bac85909878cb2f4cc7a04
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 27, 2026.

Transparency log

Security for acclimate-sdk 0.3.0

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

1 file in this release has been uploaded with provenance metadata.

Attestation for acclimate_sdk-0.3.0-py3-none-any.whl

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 27, 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.3.0 This release

1 release file 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