Skip to main content

Chalk Sandbox SDK

Python SDK for the Chalk Sandbox gRPC service. Create sandboxes, execute commands, and stream output over bidirectional gRPC streams.

Contributor note: for testing deployed functions against local chalkcompute or local chalk-remote-call-python changes, see local-sdk-remote-call-testing.md.

Install

pip install chalkcompute

Cancelling deferred calls

Handles returned by function and class-method defer() calls support cancellation:

import chalkcompute as cc

call = worker.defer(inputs)
result = call.cancel()  # Succeeds only before a consumer acquires the input.

try:
    call.get()
except cc.CallCancelledError:
    pass

Inside an event loop, use await call.cancel(). Successful cancellation removes queued input, returns the cancelled status, and makes get() and stream() raise CallCancelledError without resubmitting work. Repeating a successful cancellation is idempotent. A result timeout does not cancel the call.

Acquisition is the execution boundary: buffered/coalesced inputs and deliveries whose acquisition response was lost already count as acquired. Cancellation after that boundary fails with gRPC FAILED_PRECONDITION (the call has already been acquired), and execution, output, and normal retries continue unchanged. There is no cancellation-induced generator restart or output replay.

Cancellation requires a Stream-backed queue whose consumer uses the DP API AcquireWork path; legacy Redis List queues do not support it. The SDK's pinned chalk-remote-call-python==1.10.14 already supports that path. Generated function/class images advertise CHALK_FNQ_CANCELLATION_SUPPORTED=true; set it to false in the deployment environment to opt out. Custom images must advertise support only when their consumers use the DP API acquisition path.

Quick start

import chalkcompute as cc

# Omitting image= uses Image.sandbox(): Python, Git and SSH in /workspace.
# Credentials come from the environment, as with SandboxClient.from_env().
sandbox = cc.Sandbox(
    image=cc.Image.sandbox().with_tmux(),
    cpu="1",
    memory="2Gi",
).run()
try:
    result = sandbox.exec("echo", "hello world")
    print(result.stdout_text)  # "hello world\n"
    print(result.exit_code)    # 0
finally:
    sandbox.terminate()

Sandbox(...) only describes the sandbox; .run() builds the image, starts it and waits until it is ready. See Coding agent tools for a sandbox with Claude Code, gh and Git identity configured.

Model routers

Define a stable model alias in Python and deploy it to your Chalk environment:

import chalkcompute as cc

from chalkcompute.router import Classifier, Connection

provider = Connection.from_name("my-openai")
small = provider.model("gpt-4.1-mini")
large = provider.model("gpt-4.1")

router = cc.Router(
    "assistant",
    default=small,
    fallbacks=[large],
    classifier=Classifier.heuristic(),
    routes={"0": small, "1": large},
).deploy()

print(router.model)  # chalk/assistant

Construction is local; deployment creates or updates persistent route configuration. It uses normal Chalk credentials, reuses saved provider connections, and returns the same handle. See the full router example for connection creation, function and model classifiers, inference, and resource lifecycle.

Logging and progress

The SDK leaves Python logging configuration to your application. Importing chalkcompute does not install handlers, change log levels, or configure the root logger. Deployment status is visible by default in terminals, notebooks, and captured scripts, independently of Python logging. With no logging configuration, Python's default stderr handler reports warnings and errors. Progress and the SDK's console diagnostics use stderr, leaving stdout available for script results.

Context Default output
Interactive terminal Colored deployment status lines on stderr
Notebook, CI, redirected stderr, or TERM=dumb Plain deployment status lines on stderr
Application with logging configured Deployment status remains visible; diagnostic records also go to the application's handlers

CHALK_SANDBOX_TUI=false (or 0) disables progress, including in a terminal. CHALK_SANDBOX_TUI=true (or 1) explicitly enables status lines, including plain text in notebooks. Unset it or use auto for the default behavior above. Terminal detection controls color, not visibility. Progress uses a named group with a vertical guide for its steps and a closing success/failure line. It prints only when a step changes. If concurrent deployments interleave, the group heading repeats with (continued) to identify the following steps. It never rewrites previous lines, replaces standard streams, or hides warnings and errors. No renderer dependency is required.

Color is automatic for interactive terminals. NO_COLOR, TERM=dumb, notebooks, CI, and redirected streams disable it. If a program controls a pseudo terminal, set NO_COLOR=1 for plain status, or CHALK_SANDBOX_TUI=false to disable status. Disabling progress does not disable diagnostics or customer output. To route SDK information only through your application's logging, disable progress and configure the chalkcompute logger as shown below.

Function "fraud"
  │ › Registering function
  │ ✓ Function registered
  │ › Waiting for readiness
  │ › Pending ready=0 available=0
  │ › Pending ready=0 available=0 — waiting for startup probe
  └ ✓ Ready

For additional console diagnostics in a script or notebook:

import chalkcompute as cc

cc.configure_logging()          # INFO: lifecycle events and readiness changes
# cc.configure_logging("DEBUG") # Every readiness poll and transport retry
# cc.configure_logging("WARNING") # Warning/error diagnostics only; progress remains

The helper writes unwrapped text to stderr, with colored level labels on interactive terminals and plain text elsewhere. It never interprets markup. Pass color=False to disable color, or stream= to use another text stream. It is safe to rerun in notebook cells: each call replaces only the helper's previous handler. It configures only the chalkcompute logger and disables propagation to the root logger to avoid duplicate log records. Configuring logging does not change progress. INFO diagnostics include lifecycle events also shown in progress; set CHALK_SANDBOX_TUI=false if you prefer just the diagnostic format.

Local customer print() output and application logging are untouched. Container and sandbox .exec() output remains captured in result objects; streaming APIs return output events for the caller to consume. Remote function stdout/stderr is not automatically forwarded to the caller by this SDK.

An unobserved background deployment failure always writes its explanation to stderr and exits unsuccessfully, even when logging or progress is disabled. This fatal report is independent of diagnostic log levels and handlers.

If your application already configures logging, use that configuration instead of the helper. All Python SDK loggers are under chalkcompute, so they work with your existing text, JSON, file, or telemetry handlers:

import logging

# In an application's logging setup:
logging.basicConfig(format="%(levelname)s %(name)s: %(message)s")
logging.getLogger("chalkcompute").setLevel(logging.INFO)

At INFO, functions, classes, containers, and scaling groups report readiness only when the state, replica counts, or status message changes. Repeated polls and routine transport recovery are DEBUG diagnostics. For example, a slow startup produces these status records rather than a line every half second:

INFO chalkcompute._function: Scaling group fraud: Pending ready=0 available=0
INFO chalkcompute._function: Scaling group fraud: Pending ready=0 available=0 — waiting for externally routed startup probe
INFO chalkcompute._function: Scaling group fraud: Available ready=1 available=1

Background deployment failures are ERROR records, including the Python definition location and actionable exception details. Definition-only deploy scripts still exit unsuccessfully when a background deployment fails. Remote command stdout and stderr remain available in result objects and stream events for callers to handle.

Environment variables and secrets

Deployment env mappings accept strings and Secret references together:

import chalkcompute as cc

sandbox = cc.Sandbox(
    image="ubuntu:latest",
    env={
        "GIT_AUTHOR_NAME": "Elliot Marx",
        "SUPER_SECRET_VALUE": cc.Secret.from_chalk_env("MY_CHALK_SECRET"),
    },
)

The dictionary key sets the injected environment variable name. This works across SandboxClient.create, Container, ScalingGroup, @cc.function, @cc.cls, and @cc.training.

Use Secret.from_local_env("LOCAL_VAR") for a value read at run/deploy time, or Secret.from_chalk_integration("postgres", keys=["PASSWORD"]) to select one integration secret. Bulk integrations and Secret.from_local_env_file(...) belong in secrets=[...], which can be used alongside env. Training supports Chalk secret references only; local secret resolution is not supported for training.

Image.env(...) and per-exec env mappings accept literal strings only. Set secrets on the sandbox or other deployment so its processes inherit them.

To make credentials available only to requests for specific hosts, add them to a sandbox before running it. Strings name existing Chalk secrets; use an explicit Secret for local credentials or aliases:

sandbox = (
    cc.Sandbox(image="ubuntu:latest")
    .add_credentials("api.openai.com", "OPENAI_API_KEY")
    .add_credentials(
        ["api.slack.com", "*.slack.com"],
        cc.Secret.from_local_env("SLACK_BOT_TOKEN"),
    )
)

with cc.SandboxClient.from_env() as client:
    client.run(sandbox)

The corresponding environment variables contain placeholders. The network policy substitutes them when they appear in headers on requests to the listed hosts.

Declarative images

Build custom container images in Python instead of writing Dockerfiles. The image spec is serialized as protobuf and transmitted to the sandbox service, which builds and caches the image before starting the container.

from chalkcompute import Image, SandboxClient

# Build a data-science image declaratively
img = (
    Image.debian_slim()
    .pip_install(["pandas", "numpy", "scikit-learn"])
    .apt_install(["git", "curl"])
    .workdir("/home/user/app")
    .env({"PYTHONDONTWRITEBYTECODE": "1"})
)

with SandboxClient.from_env() as client:
    sandbox = client.create(image=img)
    result = sandbox.exec("python", "-c", "import pandas; print(pandas.__version__)")
    print(result.stdout_text)
    sandbox.terminate()

Base images

# Arbitrary base image
img = Image.base("node:25-trixie-slim")

# Convenience: python + debian slim
img = Image.debian_slim()  # python:3.14-slim-trixie

# From an existing Dockerfile (contents are inlined, so you can chain more steps)
img = Image.from_dockerfile("Dockerfile").pip_install(["extra-dep"])

Build steps

img = (
    Image.debian_slim()
    # Install Python packages
    .pip_install(["requests", "flask"])

    # Install from a requirements.txt (read locally, inlined into the spec)
    .pip_install_from_requirements("requirements.txt")

    # Install Debian/Ubuntu system packages
    .apt_install(["git", "tmux"])

    # Run shell commands (each becomes a Docker RUN layer)
    .run_commands(
        "mkdir -p /app/data",
    )

    # Add local files into the image
    .add_local_file("config.yaml", "/app/config.yaml")
    .add_local_file("entrypoint.sh", "/app/entrypoint.sh", mode=0o755)
    .add_local_dir("src", "/app/src")

    # Raw Dockerfile instructions
    .dockerfile_commands(["EXPOSE 8080", "HEALTHCHECK CMD curl -f http://localhost:8080/"])

    # Image-level configuration
    .workdir("/app")
    .env({"FLASK_APP": "app:create_app"})
    .entrypoint(["/app/entrypoint.sh"])
    .cmd(["serve"])
)

Coding agent tools

with_claude_code, with_gh and with_tmux install common agent tooling on Debian or Ubuntu images. with_claude_code installs the native binary from Anthropic's apt repository, pins the version (apt installs don't auto-update), and pre-accepts Claude Code's onboarding and trust prompts for the directories you list, so interactive claude starts without a login screen:

image = (
    Image.sandbox()
    .with_claude_code(
        version="2.1.270",
        trusted_dirs=["/workspace/app"],  # the repo root, not a parent of it
        permission_mode="bypassPermissions",  # optional
    )
    .with_gh()  # from GitHub's apt repo; authenticates from GH_TOKEN
    .with_tmux()
    .workdir("/workspace/app")
)

The bypass-permissions warning is skipped by default (skip_dangerous_mode_prompt=True). Bypass mode works as root because Chalk sets IS_SANDBOX=1 in every sandbox. If you supply ANTHROPIC_API_KEY instead of CLAUDE_CODE_OAUTH_TOKEN, pass api_key_env="ANTHROPIC_API_KEY" to skip the key-approval prompt. Anything else goes in settings, which is merged into ~/.claude/settings.json. The theme defaults to "dark" (theme=), and CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 is set in the image so telemetry and update checks don't hit hosts a network policy blocks (disable_nonessential_traffic=False to keep them). See the with_claude_code docstring for how directory trust works.

To keep the token itself out of the sandbox, use add_credentials (see Environment and secrets): sandbox.add_credentials("api.anthropic.com", Secret.from_chalk_env("CLAUDE_TOKEN", alias="CLAUDE_CODE_OAUTH_TOKEN")).

Set Git identity per sandbox, not per image, with GitConfig. It is a mapping of GIT_* environment variables, so it can be unpacked into env:

sandbox = Sandbox(
    image=image,
    env={
        **GitConfig(
            name="Ada Lovelace",
            email="ada@example.com",
            config={"pull.rebase": "true"},
        ),
        "LOG_LEVEL": "debug",
    },
).run()

To push and pull over SSH, add SshDest.github to managed_ssh. It is pinned to GitHub's published host keys and reads the private key from a Chalk secret, so git@github.com:org/repo.git URLs work unchanged:

sandbox = Sandbox(
    image=image,
    compute_class=ComputeClass.HOST,
    managed_ssh=[SshDest.github("GITHUB_DEPLOY_KEY")],
).run()
sandbox.git.clone("git@github.com:org/repo.git", "/workspace/repo")

Pass port_443=True for networks that block port 22. To use more than one key, give each a distinct alias and use it in remote URLs, as in git@github-work:org/repo.git.

Immutable composition

Each builder method returns a new Image, so intermediate images can be shared:

base = Image.debian_slim().pip_install(["requests"])

# Two different images that share the same base
api_image = base.pip_install(["flask"]).workdir("/api")
worker_image = base.pip_install(["celery"]).workdir("/worker")

api_sandbox = client.create(image=api_image)
worker_sandbox = client.create(image=worker_image)

api_sandbox.terminate()
worker_sandbox.terminate()

Connecting

from chalkcompute import SandboxClient

# Insecure (local dev)
client = SandboxClient("localhost:50051")

# With TLS
client = SandboxClient("sandbox.example.com:443", use_tls=True)

# As a context manager
with SandboxClient("localhost:50051") as client:
    ...

Rotating workload identity

The SDK can use a directly usable Chalk JWT from a rotating token file instead of a client ID and secret:

export CHALK_WEB_IDENTITY_TOKEN_FILE=/var/run/secrets/chalk/identity-token
export CHALK_API_SERVER=https://api.chalk.ai

Each SDK client caches the token for the shorter of one hour or half of the token's remaining lifetime from its exp claim, then re-reads the file on its next authenticated operation. Tokens without exp use the one-hour limit. Changing the configured file path bypasses the cache. The JWT's environment_id claim selects the environment unless CHALK_ENVIRONMENT or CHALK_ENVIRONMENT_ID is set explicitly. With token-file authentication, queued function calls use the platform-provided CHALK_DATAPLANE_API_ENDPOINT. An explicit CHALK_FUNCTION_QUEUE_ENDPOINT overrides that default; an empty override disables queued calls. Client-credential and service authentication use Auth routing metadata.

Workload identity federation

Use WorkloadIdentityTokenSource to fetch short-lived OIDC tokens for an external service. The source uses ambient Chalk authentication, or accepts an initialized ConnectClient through connect_client=. It caches tokens with server-reported expiry and refreshes them when they cannot meet min_ttl.

from datetime import timedelta
from chalkcompute import WorkloadIdentityTokenSource

with WorkloadIdentityTokenSource("api.example.com") as source:
    token = source.get_token(min_ttl=timedelta(seconds=60))
    # Pass token.value to the external service or its authentication library.

For a CLI that accepts a token file, use source.token_file() to create a temporary file with 0600 permissions. Run token retrieval and the consuming command inside the same workload so the token stays there. For example, inside a sandbox started with chalk_identity=True and with chalkcompute and snowflake-cli installed:

import os
import subprocess
from datetime import timedelta
from chalkcompute import WorkloadIdentityTokenSource

with WorkloadIdentityTokenSource("snowflakecomputing.com") as source:
    with source.token_file(min_ttl=timedelta(seconds=60)) as token_path:
        subprocess.run(
            ["snow", "sql", "--temporary-connection", "-q", "select current_user()"],
            env=os.environ | {
                "SNOWFLAKE_ACCOUNT": "<account>",
                "SNOWFLAKE_USER": "<user>",
                "SNOWFLAKE_AUTHENTICATOR": "WORKLOAD_IDENTITY",
                "SNOWFLAKE_WORKLOAD_IDENTITY_PROVIDER": "OIDC",
                "SNOWFLAKE_TOKEN_FILE_PATH": str(token_path),
            },
            check=True,
        )

The file contains a snapshot of the token and is deleted on context exit, including when the command raises. min_ttl applies when the token is acquired; the file is not refreshed continuously.

The token is scoped to the active Chalk environment and the requested audience. The external service must trust Chalk's issuer and validate the token using the Chalk API server's /.well-known/jwks.json endpoint. The existing ConnectClient.get_workload_identity_token() string API remains available.

Sandbox principal and group limits

Create a root sandbox from a session authenticated as a user or service token. Grant only permissions the caller holds in the target environment. The root needs SANDBOX_MANAGE to create children.

import chalkcompute as cc

root = cc.Sandbox(
    image="python:3.13-slim",
    cpu="500m",
    memory="1Gi",
    lifetime="1800s",
    chalk_identity=cc.ChalkIdentity(
        mode="sandbox",
        permissions=[cc.Permission.SANDBOX_MANAGE, cc.Permission.SANDBOX_READ],
        oidc_audience_policy=cc.OIDCAudiencePolicy.only([]),
        user_provided_claims={"project": "batch"},
    ),
    group_limits=cc.SandboxGroupLimits(
        max_active_descendants=2,
        cpu="2",
        memory="4Gi",
        oidc_audience_policy=cc.OIDCAudiencePolicy.only([]),
    ),
).run()

With chalkcompute installed inside the root, use its ambient working credential to create a child. The server derives the group from that credential. The child can request a subset of the parent's permissions and retain a subset of its workload claims with the same values. Use wait=False because the parent's credential can submit the request but cannot poll the child. An authorized operator can monitor the returned ID.

import chalkcompute as cc

with cc.SandboxClient.from_env() as client:
    child = client.create(
        image="python:3.13-slim",
        cpu="500m",
        memory="1Gi",
        lifetime="300s",
        chalk_identity=cc.ChalkIdentity(
            mode="sandbox", permissions=[cc.Permission.SANDBOX_READ]
        ),
        wait=False,
    )
    print(child.id)

Both create entry points accept the same identity and group options. Supply group_limits only on the root. The descendant limit defaults to zero and excludes the root. CPU and memory ceilings include the root. An optional timezone-aware expires_at sets an absolute deadline for the group. Omitting permissions requests an empty grant.

The group's OIDC policy caps audience authority across its members and defaults to Any. A root with no explicit identity policy uses its declared token-file audiences when it has files and the group ceiling otherwise. A child with no explicit policy inherits its parent's effective policy. Use OIDCAudiencePolicy.only([]) to disable OIDC issuance, .only(audiences) to allow specific audiences, or .any() to request unrestricted audiences. An explicit policy must fit the applicable ceiling, so .any() requires an unrestricted ceiling.

Platform-managed token files for sandboxes

For a CLI or entrypoint that you cannot wrap, declare the token file in the sandbox's env instead. The platform writes the first token before your code starts, sets the variable to the file's path, and replaces the file with a fresh token before the old one expires for the life of the sandbox:

import chalkcompute as cc

sandbox = cc.Sandbox(
    image=cc.Image.sandbox().pip_install(["snowflake-cli"]),
    chalk_identity=cc.ChalkIdentity(mode="sandbox"),
    env={
        "SNOWFLAKE_AUTHENTICATOR": "WORKLOAD_IDENTITY",
        "SNOWFLAKE_WORKLOAD_IDENTITY_PROVIDER": "OIDC",
        "SNOWFLAKE_TOKEN_FILE_PATH": cc.OIDCTokenFile(audience="snowflakecomputing.com"),
    },
).run()

sandbox.exec("snow", "sql", "-x", "--account", "<account>", "--user", "<user>",
             "-q", "select current_user()")

OIDCTokenFile is an immutable descriptor; it holds no token and starts no background work. A consumer must reopen the file to pick up a rotated token, so a credential that a process has already read and cached is not refreshed.

OIDCTokenFile requires ChalkIdentity(mode="sandbox"), which issues credentials that identify the sandbox (sub is v1:env:<environment>:sandbox:<sandbox_id>) instead of the user who created it. With the default creator identity (chalk_identity=True), every workload a developer launches is indistinguishable from that developer to the external service. The sandbox's effective OIDC audience policy governs which audiences it can mint tokens for, including tokens delivered as files. This is supported for sandboxes only. Functions, classes, containers and scaling groups reject ChalkIdentity(mode="sandbox"), and OIDCTokenFile is rejected in image and per-exec env.

A sandbox can declare at most 8 token files, must run on host compute (the default; compute_class=cc.ComputeClass.K8S is rejected), and cannot set a token file's variable through env or secrets as well.

Chalk SQL

Run SQL against your Chalk environment without installing ChalkPy or defining features locally. Authentication uses the same environment variables, ~/.chalk.yml, or Compute workload identity as the rest of this SDK.

from chalkcompute import SQLClient

with SQLClient() as sql:
    result = sql.query("SELECT 1 AS value")
    print(result.query_id)
    table = result.to_arrow()
    print(sql.explain("SELECT 1 AS value"))

    job = sql.submit("SELECT * FROM chalk.datasets.support_examples",
                     resource_group="batch")
    print(job.query_id)  # Save this ID to resume with sql.get_job(id).
    result = job.wait(timeout=600)
    paths = result.download("./sql-results")

query waits for synchronous execution. Use persist=True to store results remotely and download them later; the default returns inline Parquet, subject to the RPC response-size limit. submit runs in the background and persists its output. Neither operation registers a named dataset.

job.refresh() updates job.status; job.wait() returns a SQLResult or raises SQLError. A waiting timeout raises TimeoutError and leaves the remote job running. The polling service groups queued and running work into one state and reports canceled jobs as failures. SQL execution is not transparently retried after a transport failure because the query may already have run.

download(directory) streams every Parquet shard to disk, refreshes older signed URLs, and refuses to overwrite existing files. Keep the client open while using its jobs and results. Use a fresh directory when retrying a partially completed multi-file download.

Downloading needs no dataframe library. Install chalkcompute[sql] for to_arrow(), and additionally install pandas for to_pandas(). Both conversions load the full result into memory. These extras do not require ChalkPy.

Function configuration

Start with @cc.function and add only options your workload needs, such as an image with its dependencies or chalk_identity=True for calls to Chalk services. These defaults also apply to @cc.cls:

Option Default When to override
name Python function or class name An intentional external naming contract
min_replicas 1 A deliberate scaling policy, such as scaling to zero
max_replicas 1 Capacity requirements established for this workload
concurrency None (no explicit policy) A known limit on in-flight calls

Omit these keywords in ordinary functions, tasks, and scorers. An evaluation with many rows does not require custom replica counts or a concurrency policy. concurrency limits in-flight calls; setting it does not enable parallelism. For any tuning override, document the requirement that motivates it. Avoid copying values from an unrelated example or explicitly repeating defaults.

Function names

Omit name= when defining functions. The registered name defaults to the Python function's name, including underscores:

import chalkcompute as cc

@cc.function
def add_numbers(a: int, b: int) -> int:
    return a + b

Other scripts can attach with cc.RemoteFunction.from_name("add_numbers"). Cross-process lookup and repeated deployment already work with the default name. The @cc.cls decorator likewise defaults to the Python class's name.

Use name= only when you intentionally need a different registered name, such as preserving an existing deployment's name after renaming the Python function. Changing or removing an existing override changes which function you deploy; it does not rename the existing deployment. Function names containing underscores and hyphens are distinct, but can collide when converted to scaling-group names.

Evaluations

Create a reusable evaluation by pinning a completed dataset revision to a deployed task function and one or more deployed scorer functions. A dataset name resolves to its latest revision when the evaluation is created, and the resolved revision is then pinned. Function parameters bind to dataset columns by name; scorers may additionally declare output and trace parameters.

import chalkcompute as cc

dataset = cc.DatasetClient().upload(
    "support_goldens",
    "support_goldens.csv",
)

suite = cc.EvaluationSuite.create("Release")

@cc.function
def answer(input: str) -> str:
    return call_support_model(input)

@cc.function
def response_quality(input: str, output: str) -> cc.EvaluationScorerResult:
    score, details = score_response(input=input, output=output)
    return cc.EvaluationScorerResult(
        score=score,
        metadata={"details": details},
    )

evaluation = cc.Evaluation.create(
    "Customer Support Chatbot",
    dataset=dataset,
    task=answer,
    scorers=[response_quality],
    suite_id=suite.id,
)

run = evaluation.run(metadata={"git_sha": "abc123"}).wait()
print(run.status, run.result_dataset)

By default the server finishes a run's SQL job and computes its score summary when the run is read. Pass execution_mode="workflow" (or cc.EvaluationRunExecutionMode.WORKFLOW) to have a workflow on the environment's workflow orchestrator drive the run instead; the environment must have a workflow orchestrator. run.execution_mode reports the mode a run uses.

DatasetClient.upload accepts CSV or Parquet paths, multiple same-schema files, PyArrow tables and record batches, column/row mappings, and dataframes convertible to Arrow. It uploads ordinary tabular data and does not require ChalkPy feature definitions. Uploading to an existing name creates a new dataset revision.

@cc.function starts deployment in the background, allowing consecutive definitions to build concurrently. Evaluation.create waits on those handles before reading their immutable function version IDs. Existing functions can instead be attached by reference:

evaluation = cc.Evaluation.create(
    "Customer Support Chatbot",
    dataset=dataset,
    task=cc.RemoteFunction.from_name("answer"),
    scorers=[cc.RemoteFunction.from_version_id("fn_brand_alignment_v2")],
)

RemoteFunction.from_name resolves the currently selected version at lookup time; evaluation creation then pins that version. from_id remains a compatibility alias for from_version_id. An imperative RemoteFunction must be explicitly deployed before it can be used in an evaluation.

Reading span metrics

Scorers can accept trace: cc.Trace and read typed usage values from each span:

@cc.function
def task_token_count(trace: cc.Trace) -> int:
    return sum(span.total_tokens or 0 for span in trace.get_spans())

Span exposes input_tokens, output_tokens, total_tokens, cache_read_tokens, cache_write_tokens, reasoning_tokens, cost (USD), model, and provider. These read Chalk's normalized attributes, OpenInference attributes, and GenAI attributes. Numeric helpers skip invalid values and return None when unavailable; recorded zeroes stay zero. An explicit total takes precedence; otherwise total_tokens adds input and output only when both are known. Cache and reasoning breakdowns are not added again. Values describe one span; when summing a trace, select the spans of interest if your instrumentation also emits parent rollups. The example explicitly treats missing usage as zero.

These helpers make no additional requests and do not infer pricing. span.attributes, span.attribute_int(key), and span.attribute_float(key) remain available for other telemetry fields.

Built-in scorers

cc.scorers deploys common scorers without a function body. Each one takes an inputs pair naming the candidate column and the column it is compared against, scores between 0 and 1, and records the raw quantity as row metadata.

Function-backed scorers default to zero idle replicas and wake one replica when an evaluation queues work. Supplying either replica bound uses the ordinary function defaults for the other bound. A GPU utilization target requires a warm replica. The default queue trigger for Eval calls is incompatible with the synchronous HOLD scale-from-zero policy.

match = cc.scorers.exact_match(case_insensitive=True)

evaluation = cc.Evaluation.create(
    "Capitals",
    dataset=dataset,
    task=answer,
    scorers=[match],
)
  • exact_match — the two columns hold the same text, after optional trimming, whitespace collapsing, and case folding.
  • levenshtein — edit distance, normalized to 1 - distance / len(longer).
  • regex_match — a pattern appears in (or covers) one column, with the match and its named groups kept as metadata.
  • contains — expected substrings, one or a JSON array, scored as all, any, or the fraction present.
  • numeric_close — two columns as numbers, within an absolute or relative tolerance, or graded by how far apart they are.
  • string_similarity — jaro_winkler, jaccard, token_set, token_sort, partial, or sequence, matching the chalk.functions of those names.
  • json_valid — one column parses as JSON.
  • json_match — two columns hold the same JSON, or agree on the dotted paths you name.
  • embedding_similarity — cosine similarity of the two columns' embeddings, for an answer that is right but worded differently.

LLM judges

cc.scorers.llm_judge deploys a scorer from a standard-library dataclass or a Pydantic model (v1 or v2) instead of a function body. The model's score field becomes the score; every other field is recorded as row metadata. The reply is requested through the OpenAI client with structured outputs and validated against the model, so a malformed grade fails the row.

from dataclasses import dataclass, field

@dataclass
class TraceQuality:
    score: float = field(metadata={"description": "Overall quality, from 0 to 1."})
    directness: int = field(metadata={"description": "Shortest reasonable path to the goal, from 0 to 2."})
    task_correctness: int = field(metadata={"description": "Was the task actually completed, from 0 to 2?"})
    reason: str

trace_quality = cc.scorers.llm_judge(
    TraceQuality,
    model="gpt-5",
    instructions="You are grading a browser agent's login attempt.",
)

Dataclass judges can be declared without Pydantic installed. Their annotations validate JSON primitives, nested dataclasses, lists, string-keyed dictionaries, unions (including optional fields), literals, and enums. Descriptions come from field(metadata={"description": "..."}); use __post_init__ for additional validation such as score ranges. Pydantic models retain their own validation and field aliases. The deployed judge installs its OpenAI client dependencies.

The scorer deploys as trace-quality, the model's name in kebab case; pass name= to choose another. inputs names the dataset columns the judge reads (default ("output",)); prompt_fn replaces the default prompt; parse_fn replaces structured outputs for an endpoint without them. completion_kwargs (for example {"temperature": 0, "max_tokens": 400}) go on every request as given.

The judge above names no provider key: with neither api_key nor base_url it calls Chalk's AI router as the environment itself, and the router holds the provider credentials. To call a provider directly instead, pass api_key=cc.Secret.from_chalk_env("OPENAI_API_KEY"), and base_url for any other OpenAI-compatible endpoint. Every function deployed from the same module imports that module, so if it imports Pydantic, give sibling functions an image with pydantic as well. A judge is generated at import time, so it cannot be deployed in strip mode.

cc.scorers.jev is a judge that escalates when unsure, the cascade from JEV-as-a-Judge. The cheap model picks a label and gives a probability for every label; a row whose probability on its choice is below threshold is graded again by fallback_model, whose grade stands.

judge = cc.scorers.jev(
    labels={"Y": 1.0, "N": 0.0},
    rubric="Y. The answer meets the criteria.\nN. It does not.",
    model="gpt-4o-mini",
    fallback_model="gpt-4o",
    threshold=0.9,
    inputs=("input", "output", "criteria"),
)

Metadata records confidence, escalated, judge_model, and primary_confidence, so a run shows its own escalation rate. Self-reported confidence is not calibrated on every task, so choose threshold on a small labeled sample. jev reaches models the same way llm_judge does.

cc.scorers.vlm_judge is llm_judge shown pictures. images names the columns the model sees as images (default ("output",), the task's result) and inputs the columns it reads as text. An image column holds a URL (https:// or data:), which is sent as given; a path readable in the scorer's container; or the image bytes themselves. PNG, JPEG, GIF, and WebP bytes are inlined as data URLs, and a JSON array shows several pictures. detail asks the provider for low, high, or auto image fidelity.

@dataclass
class ChartQuality:
    score: float = field(metadata={"description": "Does the chart show what was asked, from 0 to 1."})
    reason: str

chart_quality = cc.scorers.vlm_judge(
    ChartQuality,
    model="gpt-4.1",
    inputs=("input",),
    images=("output",),
)

The judge reaches models the way llm_judge does, so the model must accept images on the route it is called through. Through Chalk's AI router that is any OpenAI-compatible connection; an Anthropic connection rejects image parts sent as chat completions, and Bedrock accepts only data URLs.

Experiments

An experiment trains a model on an evaluation's task and judges the result with the same evaluation. It pins a baseline run when it starts, registers the trained model, and scores it with one final run, so the comparison is like for like. The evaluation is referenced, not owned, and can judge later experiments.

import chalkcompute as cc

experiment = cc.Experiment.start(
    evaluation,  # a cc.Evaluation, or its id
    base_model="Qwen/Qwen3-4B-Instruct-2507",
    gpu="nvidia-l40s:1",
    steps=4,
    samples_per_row=8,
    register_as="support-answer-qwen",
).wait()

experiment.baseline_run      # pinned at start
experiment.training_run      # the training run behind the model
experiment.final_run         # the trained model on the same dataset
experiment.model_version_id  # registered under register_as
print(experiment.result.table())  # scorer | baseline | trained | change

The reward is each scorer's score times its weight, summed; reward_weights defaults to every scorer of the evaluation at 1.0. The task has to call the model named by the run's agent_model metadata for training to change what it answers with.

The environment needs the experiments_enabled feature flag. Without it the server runs a post-training, which trains and registers a model but has no baseline or final run, and wait() raises for one.

To train your own way, pass a training function as train=. The experiment runs it as its one training run, with the image, resources and data the function declares, between the pinned baseline and the final run. How the function samples, what it rewards and how many steps it takes are up to it.

@cc.training(dataset="support-triage", gpu="nvidia-l40s:1")
def train_support_policy(df, config):
    experiment = config["experiment"]  # ids, base_model, where to leave the model
    ...

experiment = cc.Experiment.start(
    evaluation,
    base_model="Qwen/Qwen3-4B-Instruct-2507",
    train=train_support_policy,
    config={"lr": 2e-5, "epochs": 3},
    register_as="support-answer-qwen",
).wait()

config["experiment"] names the experiment, the evaluation, the base model and the baseline run. For the final run to reach the trained model, the function today has to save a LoRA adapter of base_model at adapter_dir/adapter_out, record it as a checkpoint, and load it into policy_server_url under the name adapter_out; all four are in config["experiment"]. gpu, steps and the other settings of the server's own trainer are refused alongside train=.

cc.Experiment.from_id and cc.Experiment.list_all(evaluation=...) attach to existing experiments; the list holds at most the 100 most recent. experiment.cancel() stops one, and experiment.retry() resumes a failed or canceled one at its latest training step, reusing the rollouts already scored.

Deployment revisions and rollback

Scaling groups and functions have stable parent IDs with immutable deployment revisions beneath them. Scaling groups append a revision on each deploy(). Functions and class methods reuse an existing version when the source, image recipe, configuration, and managed secret revisions are unchanged—even across separate runs of your script. The unchanged path makes one ensure request without building an image or uploading source files. Only missing source content is uploaded on a change; unchanged images and source snapshots are shared within the environment.

Use deploy(force_new_version=True) to create a fresh function version while still reusing image/source preparation. External secret providers and integration secrets conservatively disable function-version reuse because their values can rotate outside Chalk. Referenced data volumes retain their existing semantics. This requires a server with EnsureExternalFunction support.

group = cc.ScalingGroup(name="api", image="registry.example/api:v1").deploy()
group.deploy()  # updates the same group and creates another revision
for revision in group.revisions():
    print(revision.id, revision.status, revision.is_current)
group.rollback("sgr_previous")

@cc.function
def rank(query: str) -> str:
    return query

rank.deploy()
rank.deploy()  # reuses the unchanged version
rank.deploy(force_new_version=True)  # explicitly creates a new version
for version in rank.versions():
    print(version.id, version.created_at, version.is_current)
rank.rollback("efv_previous")

Use ScalingGroup.from_id(...) or RemoteFunction.from_function_id(...) to attach to a stable parent. RemoteFunction.from_version_id(...) attaches through an immutable version and still exposes its parent lifecycle. refresh() follows the parent's currently selected revision, and delete() deletes the stable parent and all of its revisions.

Scorers may return a numeric scalar, one EvaluationScorerResult, or a list[EvaluationScorerResult]. Returning a list lets one scorer emit multiple scores from shared computation; an empty list emits no scores for that row. Each result carries a normalized score and optional row-level JSON-serializable metadata. The return annotation declares the Arrow schema, and the class-level Arrow hooks handle nested serialization, so the generic function runtime does not need scorer-specific behavior.

Sandbox lifecycle

Creating sandboxes

Use client.create(...) to construct and immediately run a sandbox:

sandbox = client.create(
    image="ubuntu:latest",
    cpu="2",
    memory="4Gi",
    env={"DEBIAN_FRONTEND": "noninteractive"},
    chalk_identity=True,
)

To configure a sandbox before running it, save it to a variable and pass it to client.run(...) when it is ready:

sandbox = Sandbox(image="ubuntu:latest", cpu="2", memory="4Gi")
if use_shared_cache:
    sandbox.mount_volume("build-cache", "/cache")

client.run(sandbox)

Sandboxes default to a platform-managed Chalk identity representing the creating user or service token. Inside deployed functions and classes, indicated by a nonempty CHALK_REMOTE_FUNCTION, identity defaults to disabled. Set chalk_identity=True or chalk_identity=False to override the default. With identity enabled, the sandbox receives CHALK_WEB_IDENTITY_TOKEN_FILE and the Chalk API/environment settings it needs to authenticate without caller credentials being copied into the workload.

Managing sandboxes

# List all sandboxes
for info in client.list():
    print(f"{info.id} {info.status} {info.name}")

# Get a handle to an existing sandbox by ID
existing_sandbox = client.get(id="550e8400-e29b-41d4-a716-446655440000")

# Fetch info from server
info = existing_sandbox.refresh()  # force re-fetch
print(info.status)

# Terminate, optionally with a grace period
sandbox.terminate()
existing_sandbox.terminate(grace_period_seconds=30)

Executing commands

Run and wait

result = sandbox.exec("ls", "-la", "/tmp")
for line in result.stdout:
    print(line)
for line in result.stderr:
    print(f"ERR: {line}")
print(f"exit code: {result.exit_code}")

# Or get the full text at once
print(result.stdout_text)
print(result.stderr_text)

Stream output in real time

for event in sandbox.exec_stream("make", "build", workdir="/app"):
    if event.stdout:
        print(event.stdout, end="")
    if event.stderr:
        print(event.stderr, end="", file=sys.stderr)
    if event.is_exited:
        print(f"\nDone: exit code {event.exit_code}")

Interactive processes (stdin + signals)

process = sandbox.exec_start("bash")

process.write_stdin("echo hello\n")
process.write_stdin("exit\n")
process.close_stdin()

for event in process.output():
    if event.stdout:
        print(event.stdout, end="")

Send signals to running processes:

import signal

process = sandbox.exec_start("sleep", "300")
process.send_signal(signal.SIGTERM)
result = process.wait()

Options

All exec methods accept the same keyword arguments:

result = sandbox.exec(
    "python", "train.py",
    workdir="/app",                     # working directory
    timeout_secs=3600,                  # kill after 1 hour
    env={"CUDA_VISIBLE_DEVICES": "0"},  # environment variables
)

Examples

Git inside a sandbox

Omitting image uses Image.sandbox(): Python 3.14 on Debian slim with Git, CA certificates and OpenSSH, working in /workspace. The image builds lazily through the normal image builder. Both Sandbox().run() and client.create() use this default. Explicit images retain their existing behavior; custom images need git for Git helpers.

from chalkcompute import SandboxClient

with SandboxClient.from_env() as client:
    sandbox = client.create()
    try:
        # Uses the remote's default branch with depth=1.
        sandbox.git.clone("https://github.com/octocat/Hello-World.git", "repo")
        print(sandbox.git.status("repo").current_branch)
        print(sandbox.git.branches("repo"))
    finally:
        sandbox.terminate()

Git helpers also support init, branches, create_branch, checkout_branch, delete_branch, fetch, pull, push, reset, restore, remote_add, remote_get, remotes, get_config, set_config, and configure_user. Pass branch, commit_id, or depth to clone to select a branch, detached commit, or history depth (1 by default; None for full history). Pulls fast-forward only; branch deletion requires force=True for unmerged work. Config changes apply only to that repository. HTTPS credentials can be supplied as username and password to clone/fetch/ pull/push; they are scoped to the command without changing the remote URL or saving credentials. SSH remotes use the sandbox's existing SSH configuration. Git failures raise GitError.

Git paths identify the repository root relative to the image working directory. Helpers accept timeout_secs; multi-command operations apply it to each command. See the sandbox Git guide for workflows and a method reference. See the sandbox capability guide for defaults.

Files inside a sandbox

sandbox.fs transfers and manages files. add_file can be called before run(); queued files are uploaded once the sandbox is ready.

from chalkcompute import Sandbox

sandbox = Sandbox()
sandbox.fs.add_file("requirements.txt", "/workspace/requirements.txt")
sandbox.fs.add_file(b"#!/bin/sh\necho ready\n", "/workspace/run.sh", mode=0o755)
sandbox.run()
try:
    for info in sandbox.fs.list_files("/workspace"):
        print(info.name, info.size, oct(info.mode))
    print(sandbox.fs.find_files("/workspace", "TODO"))
finally:
    sandbox.terminate()

See the sandbox filesystem guide for every method.

Add tmux to a sandbox image

Use apt_install like pip_install to add system packages to a Debian/Ubuntu image. It requires a root build user and installs at build time, so each sandbox starts with the tools ready to use. The builder returns a new image and supports version pins such as "package=version".

from chalkcompute import Image, SandboxClient

image = Image.sandbox().apt_install(["tmux"])
with SandboxClient.from_env() as client:
    sandbox = client.create(image=image)
    try:
        # Start a detached shell; it survives this exec call completing.
        sandbox.exec("tmux", "new-session", "-d", "-s", "work")
        sandbox.exec("tmux", "send-keys", "-t", "work", "echo hello", "Enter")
        print(sandbox.exec("tmux", "list-sessions").stdout_text)
        print(sandbox.exec("tmux", "capture-pane", "-p", "-t", "work").stdout_text)
        sandbox.exec("tmux", "kill-session", "-t", "work")
    finally:
        sandbox.terminate()

tmux sessions live inside the sandbox and end when it terminates. These commands use detached sessions through ordinary exec; interactive tmux attach requires a terminal with PTY support. For images using another package manager, install tmux with run_commands (for example, apk add --no-cache tmux on Alpine).

Spawn an OpenCode agent in a sandbox

OpenCode is a terminal-based AI coding agent. You can run it inside a sandbox to give it an isolated environment to work in.

from chalkcompute import SandboxClient

client = SandboxClient.from_env()
sandbox = client.create(
    image="ubuntu:latest",
    cpu="2",
    memory="4Gi",
    env={
        "ANTHROPIC_API_KEY": "sk-ant-...",
    },
)

# Install dependencies
sandbox.exec("apt-get", "update")
sandbox.exec("apt-get", "install", "-y", "git", "curl", "build-essential")

# Install Go (opencode is a Go binary)
sandbox.exec("bash", "-c", "curl -fsSL https://go.dev/dl/go1.26.3.linux-amd64.tar.gz | tar -C /usr/local -xz")
sandbox.exec("bash", "-c", "echo 'export PATH=$PATH:/usr/local/go/bin:/root/go/bin' >> /root/.bashrc")

# Install opencode
sandbox.exec("bash", "-c", "export PATH=$PATH:/usr/local/go/bin:/root/go/bin && go install github.com/opencode-ai/opencode@latest")

# Clone a repo to work on
sandbox.exec("git", "clone", "https://github.com/your-org/your-repo.git", "/workspace/repo")

# Run opencode non-interactively with a prompt
result = sandbox.exec(
    "bash", "-c",
    "export PATH=$PATH:/usr/local/go/bin:/root/go/bin && cd /workspace/repo && opencode -p 'fix the failing tests in pkg/auth'",
    timeout_secs=600,
)
print(result.stdout_text)

# Or run it interactively and feed it commands
process = sandbox.exec_start(
    "bash", "-c",
    "export PATH=$PATH:/usr/local/go/bin:/root/go/bin && cd /workspace/repo && opencode",
)

# Stream its output
for event in process.output():
    if event.stdout:
        print(event.stdout, end="")
    if event.stderr:
        print(event.stderr, end="", file=sys.stderr)
    if event.is_exited:
        break

sandbox.terminate()
client.close()

Long-running build with real-time output

from chalkcompute import SandboxClient

client = SandboxClient.from_env()
sandbox = client.create(image="node:25-trixie-slim")

sandbox.exec("git", "clone", "https://github.com/your-org/frontend.git", "/app")
sandbox.exec("npm", "install", workdir="/app")

# Stream the build output as it happens
for event in sandbox.exec_stream("npm", "run", "build", workdir="/app"):
    if event.stdout:
        print(event.stdout, end="")
    if event.stderr:
        print(event.stderr, end="", file=sys.stderr)
    if event.is_exited and event.exit_code != 0:
        print(f"Build failed with exit code {event.exit_code}")

sandbox.terminate()
client.close()

Functions defined in notebooks

When @chalkcompute.function() runs in an IPython/Jupyter notebook (including Chalk notebooks), the SDK captures the function and its transitive source dependencies from executed cells through its definition. It uses the same Rust dependency analyzer as Chalk's notebook graph and run planner. Imports used only inside a helper or function body are included too.

The snapshot is captured before background deployment starts. Rerun the defining cell after changing an upstream import, helper, or constant to deploy the updated code. The worker does not depend on the notebook kernel staying alive.

Only required top-level imports, definitions, and assignments are included; unrelated plotting, display, and invocation statements are omitted. Required initialization expressions execute again when the worker imports the module. Pass computed notebook results as arguments or use explicit datasets/volumes when rerunning their initialization is inappropriate. Kernel-injected state, missing source, and dependencies produced by top-level control flow produce a build error with instructions for making the function portable. Mutations of existing objects and dynamic exec/wildcard imports cannot be inferred reliably from the source graph; move that setup into an explicit function or module.

Packages still belong in the function's image=Image...pip_install(...) settings; copying an import does not install its package. Functions imported from ordinary Python files continue to use file/package deployment.

Return sandbox handles from functions

A provisioning function can return a Sandbox directly. Create the sandbox and finish its setup before returning; do not terminate it in a context manager.

import chalkcompute as cc

@cc.function
def provision_agent() -> cc.Sandbox:
    sandbox = cc.Sandbox(
        image="node:22-bookworm",
        compute_class=cc.ComputeClass.HOST,
        lifetime="3600s",
        entrypoint=["sleep", "infinity"],
        # secrets=[cc.Secret("ANTHROPIC_API_KEY")],
    ).run()
    sandbox.exec("mkdir", "-p", "/workspace")
    return sandbox

# After deployment, the annotated function restores a Sandbox handle.
sandbox = provision_agent.remote()
print(sandbox.exec("pwd").stdout_text)
sandbox.terminate()

The function's identity needs sandbox creation permissions. The caller needs sandbox access in its own Chalk environment. Arrow transports one nonnullable struct field, sandbox_id: large_utf8, using the existing custom-object contract (__chalk_arrow_type__, __chalk_serialize__, __chalk_deserialize__). It never includes the creator's credentials, environment variables, secret references, client connection, or sandbox specification. Decoding performs no network I/O; the first operation authenticates using the receiving process's identity. A handle does not extend the server-enforced lifetime or recreate an expired sandbox. Unstarted sandboxes cannot be serialized. Optional and list annotations work, including empty lists.

Herdr's Chalk plugin can consume the same Arrow result through chalk function call --output-file. It checks access and finite lifetime through the Chalk CLI and discovers existing PTY sessions using the run marker. Working directory and cleanup policy belong in Herdr's provisionFunction configuration; they are not part of a general-purpose Sandbox handle.

Background deployment errors

If a script only defines decorated functions, failed background deployments are reported at exit with a nonzero status. Known API and function deployment errors show the function's source location and error messages without SDK or transport stack frames. RPC failures include the status code (such as ALREADY_EXISTS) in the failure heading. Server-provided recovery instructions, including CLI commands and dashboard links, are preserved in the output. Source locations include numbered lines of surrounding code, with > marking the relevant line. Unexpected exceptions always include their full traceback, with the same source context for each frame. Interactive terminals show colored locations, failing lines, expression markers, and exception types. Redirected output, notebooks, CI, TERM=dumb, and NO_COLOR keep tracebacks plain. Exception causes, notes, and groups are preserved. cc.configure_logging() also uses this rendering for logged exceptions. Rendering uses the Python standard library and never displays local variable values or installs a global exception hook.

Missing parameter or return annotations raise cc.FunctionSignatureError (also a TypeError). Background deployments show just the function's source context and a fix hint for these validation errors, without worker or SDK frames.

Remote execution errors

Remote handler failures raise chalkcompute.RemoteExecutionError, a subclass of FunctionError. Its exception_type, message, and remote_traceback describe the original Python exception. internal_traceback retains runtime diagnostics; call_id and trace_id are available when supplied by the call path.

IPython and Chalk notebooks show the local call site followed by the remote traceback, preserving exception chains. Notebook source locations refer to the snapshot deployed with the function, so editing a cell cannot change the source shown for an earlier deployment. Plain Python also gets a readable multiline error. User execution failures are not automatically retried.

This presentation requires a function deployed with remote-call runtime 1.9.2 or later. Upgrade the SDK in the calling environment before redeploying: function images pin the caller's installed runtime version. Existing deployments keep their existing error format until redeployed.

The SDK honors OTEL_EXPORTER_OTLP_TRACES_PROTOCOL and OTEL_EXPORTER_OTLP_PROTOCOL (grpc or http/protobuf). SDK-owned trace export failures produce one warning per outage; exporter retry diagnostics remain available at debug level.

Catalog discovery of typed functions

The Sandbox Arrow field carries metadata["chalk.python.type"] = "chalkcompute.Sandbox", derived from its __chalk_type_id__ declaration. A catalog client can identify the return type without importing Python or treating an arbitrary lookalike struct as a Sandbox. Check the actual struct shape, nonnullable output, and chalk.function.is_generator metadata as well when a workflow needs exactly one Sandbox.

Function registration also publishes the docstring in output-schema metadata chalk.function.description and JSON-serializable parameter defaults in each input field's chalk.default metadata. Defaults that cannot be encoded as JSON are omitted. These values are catalog-visible; keep secrets in Chalk-managed secret references rather than function defaults. Clients can show descriptions, collect required arguments, and reconstruct declared defaults without invoking the function. Record and invoke the same immutable version selected by the user.

Function retries

Configure a default with @cc.function(retries=3), or scope an override to one handle without changing its deployment:

handle = fetch_status.with_options(retries=2).defer("https://example.com")
result = handle.get()
result = fetch_status.with_options(
    retries=cc.RetryPolicy.exponential(attempts=3, initial=0.5, max_wait=10)
).remote("https://example.com")

Counts exclude the first execution: retries=2 allows three attempts. Zero disables invocation retries; with_options(retries=None) inherits the deployed default, which is zero when no policy is configured. Method handles support the same API. A handler argument named retries remains an ordinary input.

Regular .remote() calls retry in the native client, including calls awaited from an async Python program. The retry budget, backoff sleeps, and executions share the call timeout. Exponential policies multiply the delay up to max_wait; linear policies use a constant delay. Jitter uniformly samples between zero and that delay. Generator .remote() calls use the queue, like .defer().

Queued calls on Redis Stream queues retry on the server under the same call ID, even if the submitting client exits. Legacy Redis List queues ignore the retry policy. Queue overrides currently apply only the retry count; delay and jitter remain controlled by the queue's fixed reclaim interval.

Terminal call failures are raised by get(), stream(), and gather() without submitting another invocation, even if the handler never started. When the polling connection drops, they refresh the client and re-poll the same call ID and cursor until the timeout passes, or for up to 60 seconds of continuous unavailability without one. Re-polls use jittered exponential backoff capped at 5 seconds, so handles collected together do not retry in lockstep. The timeout also bounds each poll, so a hung poll cannot outlast it.

Retry-enabled generators buffer output to avoid repeating already emitted values. Retry filters (retry_on) and shared retry buckets (key) are not supported and raise an error instead of being ignored.

Retries can execute side effects more than once. Make retried handlers idempotent. Retryable execution and transport failures share the configured invocation retry budget. Connection setup and result polling do not create additional invocation budgets.

Refresh sandbox credentials

After updating a secret used by a sandbox proxy rule, refresh its credentials:

sandbox.refresh_credentials(timeout=60)

This call polls until Envoy activates the refreshed credentials. Rejected or superseded updates raise SandboxError; exceeding the timeout raises TimeoutError without cancelling the refresh. Already-open connections may continue using the previous credentials. Secret references and proxy rules stay unchanged.

Exec stream errors

Sandbox.exec() and exec_stream() read the final RPC status before completing. On RPC failure, ExecStreamError.code identifies the error and .result retains the known exit status and, for exec(), collected output. DATA_LOSS is not retried. After a terminal event, the SDK allows 30 seconds for the final status, then cancels the response and raises DEADLINE_EXCEEDED. Running commands are unaffected.

Metadata

Release files for chalkcompute 2.15.1

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

Built distributions (wheels)

Table of built distributions (wheels) for chalkcompute 2.15.1
File Actions
chalkcompute-2.15.1-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for chalkcompute-2.15.1-cp314-cp314-win_amd64.whl
chalkcompute-2.15.1-cp314-cp314-musllinux_1_2_x86_64.whl CPython 3.14 CPython 3.14 Linux musl 1.2+ x86-64 Details for chalkcompute-2.15.1-cp314-cp314-musllinux_1_2_x86_64.whl
chalkcompute-2.15.1-cp314-cp314-musllinux_1_2_aarch64.whl CPython 3.14 CPython 3.14 Linux musl 1.2+ ARM64 Details for chalkcompute-2.15.1-cp314-cp314-musllinux_1_2_aarch64.whl
chalkcompute-2.15.1-cp314-cp314-manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64 Details for chalkcompute-2.15.1-cp314-cp314-manylinux_2_28_x86_64.whl
chalkcompute-2.15.1-cp314-cp314-manylinux_2_28_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ ARM64 Details for chalkcompute-2.15.1-cp314-cp314-manylinux_2_28_aarch64.whl
chalkcompute-2.15.1-cp314-cp314-macosx_11_0_x86_64.whl CPython 3.14 CPython 3.14 macOS 11.0+ x86-64 Details for chalkcompute-2.15.1-cp314-cp314-macosx_11_0_x86_64.whl
chalkcompute-2.15.1-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details for chalkcompute-2.15.1-cp314-cp314-macosx_11_0_arm64.whl
chalkcompute-2.15.1-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for chalkcompute-2.15.1-cp313-cp313-win_amd64.whl
chalkcompute-2.15.1-cp313-cp313-musllinux_1_2_x86_64.whl CPython 3.13 CPython 3.13 Linux musl 1.2+ x86-64 Details for chalkcompute-2.15.1-cp313-cp313-musllinux_1_2_x86_64.whl
chalkcompute-2.15.1-cp313-cp313-musllinux_1_2_aarch64.whl CPython 3.13 CPython 3.13 Linux musl 1.2+ ARM64 Details for chalkcompute-2.15.1-cp313-cp313-musllinux_1_2_aarch64.whl
chalkcompute-2.15.1-cp313-cp313-manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64 Details for chalkcompute-2.15.1-cp313-cp313-manylinux_2_28_x86_64.whl
chalkcompute-2.15.1-cp313-cp313-manylinux_2_28_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ ARM64 Details for chalkcompute-2.15.1-cp313-cp313-manylinux_2_28_aarch64.whl
chalkcompute-2.15.1-cp313-cp313-macosx_11_0_x86_64.whl CPython 3.13 CPython 3.13 macOS 11.0+ x86-64 Details for chalkcompute-2.15.1-cp313-cp313-macosx_11_0_x86_64.whl
chalkcompute-2.15.1-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for chalkcompute-2.15.1-cp313-cp313-macosx_11_0_arm64.whl
chalkcompute-2.15.1-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for chalkcompute-2.15.1-cp312-cp312-win_amd64.whl
chalkcompute-2.15.1-cp312-cp312-musllinux_1_2_x86_64.whl CPython 3.12 CPython 3.12 Linux musl 1.2+ x86-64 Details for chalkcompute-2.15.1-cp312-cp312-musllinux_1_2_x86_64.whl
chalkcompute-2.15.1-cp312-cp312-musllinux_1_2_aarch64.whl CPython 3.12 CPython 3.12 Linux musl 1.2+ ARM64 Details for chalkcompute-2.15.1-cp312-cp312-musllinux_1_2_aarch64.whl
chalkcompute-2.15.1-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details for chalkcompute-2.15.1-cp312-cp312-manylinux_2_28_x86_64.whl
chalkcompute-2.15.1-cp312-cp312-manylinux_2_28_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ ARM64 Details for chalkcompute-2.15.1-cp312-cp312-manylinux_2_28_aarch64.whl
chalkcompute-2.15.1-cp312-cp312-macosx_11_0_x86_64.whl CPython 3.12 CPython 3.12 macOS 11.0+ x86-64 Details for chalkcompute-2.15.1-cp312-cp312-macosx_11_0_x86_64.whl
chalkcompute-2.15.1-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for chalkcompute-2.15.1-cp312-cp312-macosx_11_0_arm64.whl
chalkcompute-2.15.1-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for chalkcompute-2.15.1-cp311-cp311-win_amd64.whl
chalkcompute-2.15.1-cp311-cp311-musllinux_1_2_x86_64.whl CPython 3.11 CPython 3.11 Linux musl 1.2+ x86-64 Details for chalkcompute-2.15.1-cp311-cp311-musllinux_1_2_x86_64.whl
chalkcompute-2.15.1-cp311-cp311-musllinux_1_2_aarch64.whl CPython 3.11 CPython 3.11 Linux musl 1.2+ ARM64 Details for chalkcompute-2.15.1-cp311-cp311-musllinux_1_2_aarch64.whl
chalkcompute-2.15.1-cp311-cp311-manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64 Details for chalkcompute-2.15.1-cp311-cp311-manylinux_2_28_x86_64.whl
chalkcompute-2.15.1-cp311-cp311-manylinux_2_28_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ ARM64 Details for chalkcompute-2.15.1-cp311-cp311-manylinux_2_28_aarch64.whl
chalkcompute-2.15.1-cp311-cp311-macosx_11_0_x86_64.whl CPython 3.11 CPython 3.11 macOS 11.0+ x86-64 Details for chalkcompute-2.15.1-cp311-cp311-macosx_11_0_x86_64.whl
chalkcompute-2.15.1-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for chalkcompute-2.15.1-cp311-cp311-macosx_11_0_arm64.whl

Total release size: 206.7 MB

Release files / chalkcompute-2.15.1-cp314-cp314-win_amd64.whl

Download URL chalkcompute-2.15.1-cp314-cp314-win_amd64.whl
Size 6.8 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
cfbcb1abc41915d63f7d6feaa2072d452d1446aeaf375e6fd6ed99efb821896e
BLAKE2b-256 checksum
How to use checksums
28b43f57f80e9a0727fee26c76b6cf874fff4acb7dd8528d59c007f9a64635e5
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 24, 2026.

Transparency log

Release files / chalkcompute-2.15.1-cp314-cp314-musllinux_1_2_x86_64.whl

Download URL chalkcompute-2.15.1-cp314-cp314-musllinux_1_2_x86_64.whl
Size 7.8 MB
Tags CPython 3.14 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
fc9cc8376872885d894b0c3c9bcd1f5a6686cc167560771ddc29d3819342a1f3
BLAKE2b-256 checksum
How to use checksums
1d2c1697341979c3d611f4483e55c651edd7d05cc737b98c326c055ef35fb5df
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 24, 2026.

Transparency log

Release files / chalkcompute-2.15.1-cp314-cp314-musllinux_1_2_aarch64.whl

Download URL chalkcompute-2.15.1-cp314-cp314-musllinux_1_2_aarch64.whl
Size 7.7 MB
Tags CPython 3.14 Linux musl 1.2+ ARM64
SHA-256 checksum
How to use checksums
471dfe3cc712ef9a5a88aac0ad242b5c166b494e23ac9d9f5ec24bc081ce5ddb
BLAKE2b-256 checksum
How to use checksums
994b608fda2c85a81ebceed8ef69bbc529b08fb3f477d00d49c79475e5281d60
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 24, 2026.

Transparency log

Release files / chalkcompute-2.15.1-cp314-cp314-manylinux_2_28_x86_64.whl

Download URL chalkcompute-2.15.1-cp314-cp314-manylinux_2_28_x86_64.whl
Size 7.6 MB
Tags CPython 3.14 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
47687dfdfef1dc067de9f1fcd3d6ab665912462f8b762798e49a0534023aba03
BLAKE2b-256 checksum
How to use checksums
50bb5883cf5748b9220a8e868a21a172176942fa844604d050bf0741c9f77038
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 24, 2026.

Transparency log

Release files / chalkcompute-2.15.1-cp314-cp314-manylinux_2_28_aarch64.whl

Download URL chalkcompute-2.15.1-cp314-cp314-manylinux_2_28_aarch64.whl
Size 7.5 MB
Tags CPython 3.14 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
3cda8cb3cd34bf3acbb1cb80797e3f29bfca07e1396ab7b9f2757655bc1fc963
BLAKE2b-256 checksum
How to use checksums
fd371c4e526cda875311bb7d3429dad3f9f47bc32c04c22088bcf3b5422d8787
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 24, 2026.

Transparency log

Release files / chalkcompute-2.15.1-cp314-cp314-macosx_11_0_x86_64.whl

Download URL chalkcompute-2.15.1-cp314-cp314-macosx_11_0_x86_64.whl
Size 7.2 MB
Tags CPython 3.14 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
da460484aa5cd64c51673e8e24b9066758932d1390e28375cc71ea595a1359b6
BLAKE2b-256 checksum
How to use checksums
c6f7a51578262f854cd86f8d654b225b2f61ce687ec1037bf36481405e1b25c6
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 24, 2026.

Transparency log

Release files / chalkcompute-2.15.1-cp314-cp314-macosx_11_0_arm64.whl

Download URL chalkcompute-2.15.1-cp314-cp314-macosx_11_0_arm64.whl
Size 7.0 MB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
bf5b6773c88ed49d131e4cc60d23acc3260a1b8296b082e1efc8fe2801c17d1c
BLAKE2b-256 checksum
How to use checksums
06b3f67877315250b4f5397df2b0b6c7debd6c367a9315404b56a2c45c369cf3
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 24, 2026.

Transparency log

Release files / chalkcompute-2.15.1-cp313-cp313-win_amd64.whl

Download URL chalkcompute-2.15.1-cp313-cp313-win_amd64.whl
Size 6.8 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
f3c95e3088a95b7ed57298e91ed94c9fbc5c3ca2ea8785dbf106b590291b9677
BLAKE2b-256 checksum
How to use checksums
c87d3233fd5824ce3d3c410edc946cba7ffcec58dea61226f2db19f5fac2f85a
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 24, 2026.

Transparency log

Release files / chalkcompute-2.15.1-cp313-cp313-musllinux_1_2_x86_64.whl

Download URL chalkcompute-2.15.1-cp313-cp313-musllinux_1_2_x86_64.whl
Size 7.8 MB
Tags CPython 3.13 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
a276f719cc7264b4256ec429453424005cfb40ea8269c9b8d64b8f7c20c8885c
BLAKE2b-256 checksum
How to use checksums
e420eda405bf3c37883cc9113e8e640f9f0b8a08d6bd2a9d0437f1433936e723
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 24, 2026.

Transparency log

Release files / chalkcompute-2.15.1-cp313-cp313-musllinux_1_2_aarch64.whl

Download URL chalkcompute-2.15.1-cp313-cp313-musllinux_1_2_aarch64.whl
Size 7.7 MB
Tags CPython 3.13 Linux musl 1.2+ ARM64
SHA-256 checksum
How to use checksums
57b4f7cc22f446611d377992665e1645a539e7fa2c9a0cf5cc8a04d69dec31d5
BLAKE2b-256 checksum
How to use checksums
b71bf6abfdda65844ff96999d05fcd9e0ef6e5932b2f896597d7d63cbd3bf4c7
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 24, 2026.

Transparency log

Release files / chalkcompute-2.15.1-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL chalkcompute-2.15.1-cp313-cp313-manylinux_2_28_x86_64.whl
Size 7.6 MB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
913f9648f15ad631c2014899eb84b8d69d2b9c35f55424c1a650ba722dfe5bb9
BLAKE2b-256 checksum
How to use checksums
22aacb8361335e95c8f7e1adc18a4609b6b3635ad7021e1721aef57f3a5f7118
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 24, 2026.

Transparency log

Release files / chalkcompute-2.15.1-cp313-cp313-manylinux_2_28_aarch64.whl

Download URL chalkcompute-2.15.1-cp313-cp313-manylinux_2_28_aarch64.whl
Size 7.5 MB
Tags CPython 3.13 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
a3ef378fcda7712b7fbddf5c5523f14ee46333d3f43078d73db01e2f010c8792
BLAKE2b-256 checksum
How to use checksums
dd013c8d8e7948450ffd50ef690ed390956847d98b5ce692be5d778c31b4b387
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 24, 2026.

Transparency log

Release files / chalkcompute-2.15.1-cp313-cp313-macosx_11_0_x86_64.whl

Download URL chalkcompute-2.15.1-cp313-cp313-macosx_11_0_x86_64.whl
Size 7.2 MB
Tags CPython 3.13 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
cc45ce359ffcf63549acd20dd2e5ad21ffba10116283d9910c6b897501dc0bfa
BLAKE2b-256 checksum
How to use checksums
299f85e3655424c23c258cf8c4e6bf0d8dc36f23b101b271c1f80d3c6d2eee45
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 24, 2026.

Transparency log

Release files / chalkcompute-2.15.1-cp313-cp313-macosx_11_0_arm64.whl

Download URL chalkcompute-2.15.1-cp313-cp313-macosx_11_0_arm64.whl
Size 7.0 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
54d384c19c7289ae02e88d95b8d62faaedc361c844e2a2a27d07a5794f895ae5
BLAKE2b-256 checksum
How to use checksums
7bcd9f16bd26192de56ebeca89c4c9b75344fcd98a3e3ae72bf26aad1114c863
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 24, 2026.

Transparency log

Release files / chalkcompute-2.15.1-cp312-cp312-win_amd64.whl

Download URL chalkcompute-2.15.1-cp312-cp312-win_amd64.whl
Size 6.8 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
56b12b964675894668cb8b304a193eaf1f393834063b9f921472dc8aef443c3f
BLAKE2b-256 checksum
How to use checksums
763510df60fa3db0e7cce4bac941d9f84ff4e4b9edf121d503dc0516d49dd44d
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 24, 2026.

Transparency log

Release files / chalkcompute-2.15.1-cp312-cp312-musllinux_1_2_x86_64.whl

Download URL chalkcompute-2.15.1-cp312-cp312-musllinux_1_2_x86_64.whl
Size 7.8 MB
Tags CPython 3.12 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
3ec41fc16e124f0ce0fd29f816d456bed21a0bf4e08bb0e67265c1f33858efcf
BLAKE2b-256 checksum
How to use checksums
dcb7e004839767d83910f77ddf9bae3d10a09e3fbdbf7e9f74665ea32d28bd57
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 24, 2026.

Transparency log

Release files / chalkcompute-2.15.1-cp312-cp312-musllinux_1_2_aarch64.whl

Download URL chalkcompute-2.15.1-cp312-cp312-musllinux_1_2_aarch64.whl
Size 7.7 MB
Tags CPython 3.12 Linux musl 1.2+ ARM64
SHA-256 checksum
How to use checksums
429b505f225f3a0d947fbc6ffc0ae2732caddc03562b606aa070314200c7a8be
BLAKE2b-256 checksum
How to use checksums
fbbe145f550d3dcaa0100ebf85cc41a6e2e72cd6fa12ffbf50bd3a84a9a712e5
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 24, 2026.

Transparency log

Release files / chalkcompute-2.15.1-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL chalkcompute-2.15.1-cp312-cp312-manylinux_2_28_x86_64.whl
Size 7.6 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
b50d24d856cf70bb597afb966521cada4e07467b5e8a9579f5400b27130a8f31
BLAKE2b-256 checksum
How to use checksums
1b69765d3ad15f80576c2af18f0de1bf6f1ef4b4db0b5e1ba6d3359087d0846d
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 24, 2026.

Transparency log

Release files / chalkcompute-2.15.1-cp312-cp312-manylinux_2_28_aarch64.whl

Download URL chalkcompute-2.15.1-cp312-cp312-manylinux_2_28_aarch64.whl
Size 7.5 MB
Tags CPython 3.12 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
876572dfd6bee37cbe40e5b98b8ae029bd05c8a6c02e2de676326847df08a362
BLAKE2b-256 checksum
How to use checksums
f45f22516ec9fb0dfbddefded8d31b5b4578f403823e3d514bdd13853ccabf59
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 24, 2026.

Transparency log

Release files / chalkcompute-2.15.1-cp312-cp312-macosx_11_0_x86_64.whl

Download URL chalkcompute-2.15.1-cp312-cp312-macosx_11_0_x86_64.whl
Size 7.2 MB
Tags CPython 3.12 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
d7c4d866a952f026c30684430e1fce7265fcd16bec33528d06351eaac8318ba7
BLAKE2b-256 checksum
How to use checksums
20bd15e59c7107aa7db079e3a09b6ebaa261714338ebe4a30ae19d40a6dbae56
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 24, 2026.

Transparency log

Release files / chalkcompute-2.15.1-cp312-cp312-macosx_11_0_arm64.whl

Download URL chalkcompute-2.15.1-cp312-cp312-macosx_11_0_arm64.whl
Size 7.0 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
cecaa18360d8a467908dfec7e21d2fcc4be00af9b6bc7e0a4e7088f935a2ad2c
BLAKE2b-256 checksum
How to use checksums
4f023b91cf2d63048f9cc2eb7d008c76583117611687d8f3ad823cb9368a9e2d
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 24, 2026.

Transparency log

Release files / chalkcompute-2.15.1-cp311-cp311-win_amd64.whl

Download URL chalkcompute-2.15.1-cp311-cp311-win_amd64.whl
Size 6.8 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
155198c4b5a97317447e3d7e3c58c498d7fdfa80f007a98005d3e6400139c616
BLAKE2b-256 checksum
How to use checksums
cf4526de5c762032dda1e23a3a509f71c131e56d3b50db5f19cbbec7b40c3f30
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 24, 2026.

Transparency log

Release files / chalkcompute-2.15.1-cp311-cp311-musllinux_1_2_x86_64.whl

Download URL chalkcompute-2.15.1-cp311-cp311-musllinux_1_2_x86_64.whl
Size 7.8 MB
Tags CPython 3.11 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
a568337b204801ea736b75acd7fb7a6fb40a23d18bf57c5620ebd5b2de04b5b1
BLAKE2b-256 checksum
How to use checksums
1bbd8cc0e02265a0c7914c16e553087555b0dadbae725ecf7648220b24a1ce9a
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 24, 2026.

Transparency log

Release files / chalkcompute-2.15.1-cp311-cp311-musllinux_1_2_aarch64.whl

Download URL chalkcompute-2.15.1-cp311-cp311-musllinux_1_2_aarch64.whl
Size 7.7 MB
Tags CPython 3.11 Linux musl 1.2+ ARM64
SHA-256 checksum
How to use checksums
cceed006168230f507f8bed58dfe0febc583661c20864a391ff099ba7b8ea806
BLAKE2b-256 checksum
How to use checksums
1b0dbb2d418b239bfd1e7333adb8444e9506a59c742f914a262783c9f702fa8b
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 24, 2026.

Transparency log

Release files / chalkcompute-2.15.1-cp311-cp311-manylinux_2_28_x86_64.whl

Download URL chalkcompute-2.15.1-cp311-cp311-manylinux_2_28_x86_64.whl
Size 7.6 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
f07252594811847e9376332ff5ee1f6b2ab22cd4da8be2333e9bdcc87088a0d5
BLAKE2b-256 checksum
How to use checksums
7c4a7e60870aa3fa9375958d684f03a212af931fbb3e3854a12ea260fbe92134
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 24, 2026.

Transparency log

Release files / chalkcompute-2.15.1-cp311-cp311-manylinux_2_28_aarch64.whl

Download URL chalkcompute-2.15.1-cp311-cp311-manylinux_2_28_aarch64.whl
Size 7.5 MB
Tags CPython 3.11 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
895d3b5d6a93c13c95c88559b3b51f7a632d9ac369353867edc5983596e77052
BLAKE2b-256 checksum
How to use checksums
33dd8092b202afcaa47c48f89017c7d6f2ec9cf7377670aedb6842571e74ab31
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 24, 2026.

Transparency log

Release files / chalkcompute-2.15.1-cp311-cp311-macosx_11_0_x86_64.whl

Download URL chalkcompute-2.15.1-cp311-cp311-macosx_11_0_x86_64.whl
Size 7.2 MB
Tags CPython 3.11 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
5f2befa45911965710ec9a10d8640b9a1526145849594e7178f5f894a5ce76f6
BLAKE2b-256 checksum
How to use checksums
c9cfe581e669359df776f3a29f09a91cb30cbe925683d379e1b6d6a6b6605037
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 24, 2026.

Transparency log

Release files / chalkcompute-2.15.1-cp311-cp311-macosx_11_0_arm64.whl

Download URL chalkcompute-2.15.1-cp311-cp311-macosx_11_0_arm64.whl
Size 7.0 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
57acb2fff58480f0fb9cd200c6eda21889958cadc083d4a90768f6dfbe8ecc86
BLAKE2b-256 checksum
How to use checksums
05a9681c725dbf441c3c7cbf983a4a93b99767c5c82f55756d469741055cf477
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 24, 2026.

Transparency log

Security for chalkcompute 2.15.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.

Full provenance

All 28 files in this release have been uploaded with provenance metadata.

Select from 28 files

Attestation for chalkcompute-2.15.1-cp314-cp314-win_amd64.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 24, 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

2.15.1 This release

28 release files 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