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.4.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.4.0
File Size Uploaded Provenance Actions
boxcompute-0.4.0.tar.gz 19.5 kB With provenance Details for boxcompute-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 35.0 kB

Release files / boxcompute-0.4.0.tar.gz

Download URL boxcompute-0.4.0.tar.gz
Size 19.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8ed58be3b4d798b084ad64ae1f58e76b3fb9b49cf5e8b416a3db5b9ed4f43c16
BLAKE2b-256 checksum
How to use checksums
aa64ce85673360b03dae2ea06a2795dba57f9673855f71ac5a3aa163f75f4bbd
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 10, 2026.

Transparency log

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

Download URL boxcompute-0.4.0-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3c9254dcf1e4a4f694d5621e1c59dd92b9c820eaa616eeda1120f7a2a9a43dd8
BLAKE2b-256 checksum
How to use checksums
6a240beec0c0c076499c20ffbfbf3fc9f21922ad2944ee5571785f8fcf59153e
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 10, 2026.

Transparency log

Security for boxcompute 0.4.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.4.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 10, 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