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.1.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.1.0
File Size Uploaded Provenance Actions
boxcompute-0.1.0.tar.gz 11.9 kB With provenance Details for boxcompute-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 22.7 kB

Release files / boxcompute-0.1.0.tar.gz

Download URL boxcompute-0.1.0.tar.gz
Size 11.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7afa500fd72c799d6d395ff111c285037e139843bc6980d925e49ea4f51efbc3
BLAKE2b-256 checksum
How to use checksums
1df80138cf62e60c64371ac83f7fd0ac4bf123280a467093b98e168afb8a5f10
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 Sep 8, 2026.

Transparency log

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

Download URL boxcompute-0.1.0-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b1548b4457642a1aa92926d25bbbe437a4ba2ce1fc2a7bb6dddffd6e603d08ae
BLAKE2b-256 checksum
How to use checksums
8d82705d9abc774ab248b4bc562fb0a123017e4f53673615968665bd022a88f2
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 Sep 8, 2026.

Transparency log

Security for boxcompute 0.1.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.1.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 Sep 8, 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