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.2.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.2.0
File Size Uploaded Provenance Actions
boxcompute-0.2.0.tar.gz 13.1 kB With provenance Details for boxcompute-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 24.8 kB

Release files / boxcompute-0.2.0.tar.gz

Download URL boxcompute-0.2.0.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
aa2b73d81e210382e6e02450dd709bd7a925996b71193aba9d06e33ec22150b1
BLAKE2b-256 checksum
How to use checksums
65ab9832a5e7b38b3cc36391ec32564a2d60c3d2d52ce488d06a3a191e06dcff
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 17, 2026.

Transparency log

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

Download URL boxcompute-0.2.0-py3-none-any.whl
Size 11.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31aabfef5449ee82081c763479b7d20debe119ea3a6a8659227a686f7bfa4ffc
BLAKE2b-256 checksum
How to use checksums
5281bc1370e053a7696ba1fb9068ca0b0411ab4000c4b347077b3e4c9e5b5692
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 17, 2026.

Transparency log

Security for boxcompute 0.2.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.2.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 17, 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