Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.12.252 instead.

BoxRouter Python SDK — alpha

BoxRouter is a Python client for the BoxRouter API. It creates temporary cloud sandboxes, runs commands in them, reads their status, and requests their deletion. A sandbox request can name eligible cloud providers; BoxRouter evaluates the request and routes it to a provider that can satisfy it.

Requires Python 3.11 or later and a BoxRouter API key.

python -m pip install --pre boxrouter

Set BOXROUTER_API_KEY in your environment. The client uses https://boxrouter.ai/api/v1 by default; set BOXROUTER_BASE_URL to use another deployment.

from boxrouter import BoxRouter

with BoxRouter() as client:
    with client.sandboxes.create(
        providers=["e2b", "modal"], lifetime_seconds=600
    ) as sandbox:
        result = sandbox.exec("python --version")
        print(result.stdout, end="")
        print(sandbox.get()["state"])

The providers argument is an allowlist: BoxRouter routes only among the named providers that meet the sandbox requirements. The client does not retry a mutation automatically. If a request outcome is uncertain, BoxRouterError exposes its idempotency_key so the same operation can be reconciled safely.

This alpha includes sandbox creation, command execution, status reads, and sandbox deletion. Its API may change before the full SDK release.

Licensed under PolyForm Shield 1.0.0; see LICENSE. Contact: maintainer@boxrouter.ai.

Metadata

Release files for boxrouter 0.0.1a2

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

Source distribution (sdist)

Source distribution for boxrouter 0.0.1a2
File Size Uploaded Provenance Actions
boxrouter-0.0.1a2.tar.gz 5.5 kB With provenance Details for boxrouter-0.0.1a2.tar.gz

Built distribution (wheel)

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

Total release size: 12.7 kB

Release files / boxrouter-0.0.1a2.tar.gz

Download URL boxrouter-0.0.1a2.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1bee66a49b14adc54cc7db77d48dc0d2676451cae54abf726e10569e04454e6d
BLAKE2b-256 checksum
How to use checksums
56fc234b58782ac356df041cd3bb26709f717c69e89a1c9ff628fa6a568e2ca4
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 Oct 25, 2026.

Transparency log

Release files / boxrouter-0.0.1a2-py3-none-any.whl

Download URL boxrouter-0.0.1a2-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c071cb93db6359d079c8a0cd459a11574369869353df49d6923bf9d89f7924ce
BLAKE2b-256 checksum
How to use checksums
e869767aff92fced0fe5924d460672477510f2b32e3fa0303724979c81df26a6
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 Oct 25, 2026.

Transparency log

Security for boxrouter 0.0.1a2

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 boxrouter-0.0.1a2.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 25, 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