Skip to main content

boxcompute

Official Python SDK for the BoxCompute public API, with synchronous and asynchronous clients.

pip install boxcompute

Synchronous client

import os
from boxcompute import BoxCompute

with BoxCompute(api_key=os.environ["BOXCOMPUTE_API_KEY"]) as boxcompute:
    workspaces = boxcompute.workspaces.list()
    workspace = (
        workspaces[0]
        if workspaces
        else boxcompute.workspaces.create(
            name="SDK quickstart",
            idempotency_key="sdk-quickstart-workspace-v1",
        )
    )
    sandbox = boxcompute.sandboxes.create(workspace_id=workspace.id)
    try:
        result = boxcompute.sandboxes.execute(
            sandbox.id,
            argv=["python3", "-c", "print('hello')"],
        )
        print(result.stdout, end="")
    finally:
        boxcompute.sandboxes.delete(sandbox.id)

Asynchronous client

import os
from boxcompute import AsyncBoxCompute

async with AsyncBoxCompute(api_key=os.environ["BOXCOMPUTE_API_KEY"]) as boxcompute:
    workspaces = await boxcompute.workspaces.list()

The SDK includes workspaces, Sandboxes, synchronous execution, durable operations, logs, binary-safe file operations, usage, typed Pydantic models, structured errors, configurable timeouts, and injectable httpx clients.

API keys are secrets. Use this package from trusted server-side code and never include a bc_live_... key in a browser or mobile application.

Metadata

Release files for boxcompute 0.3.0

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

Source distribution (sdist)

Source distribution for boxcompute 0.3.0
File Size Uploaded Provenance Actions
boxcompute-0.3.0.tar.gz 18.1 kB With provenance Details for boxcompute-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 32.8 kB

Release files / boxcompute-0.3.0.tar.gz

Download URL boxcompute-0.3.0.tar.gz
Size 18.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f9199f786fbc13ea85ca7ec275b834c1b9b92bf10a035505ffa0dfa16599c3fb
BLAKE2b-256 checksum
How to use checksums
5a12281722d7f456d8fc5a61b44ffac9ca656ab26c6343a217ac0f1af35d8b60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

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

Download URL boxcompute-0.3.0-py3-none-any.whl
Size 14.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51189f97f85826dd707cc1993feb8e202023f83a718a00bc5f59816a393d9fe5
BLAKE2b-256 checksum
How to use checksums
7f9d817e7d0f6fe646a7afbf5c8657fde0e284062508dff0d5f6fed4fe4d8b56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

Security for boxcompute 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for boxcompute-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page