Skip to main content

WBX Sandbox – Python SDK

Python SDK for WBX Sandbox: isolated cloud sandboxes for AI agents and code execution. Each sandbox is a Firecracker microVM with its own Linux kernel, disk and network rules. No dependencies – only the Python standard library (Python 3.9+).

Install

pip install wbxsandbox

Configure

Create an API key in the portal (API keys) and set it in the environment:

export WBXSANDBOX_API_KEY=...
# optional, defaults to https://sandbox.wbx.cz
export WBXSANDBOX_URL=https://sandbox.wbx.cz

Both can also be passed as url= and api_key= arguments.

Quick start

from wbxsandbox import Sandbox

with Sandbox.create(template="base", timeout=300) as sb:
    r = sb.run("python3 -c 'print(1 + 1)'")
    print(r.exit_code, r.stdout)          # 0 "2\n"
    sb.files.write("/home/user/data.txt", "hello")
    print(sb.files.read_text("/home/user/data.txt"))
# the sandbox is destroyed when the block ends

Background jobs and batches:

from wbxsandbox import run_job

job = run_job(command="python3 -c 'print(42)'", template="base", timeout_seconds=600)
job.wait()
print(job.summary()["status"])

Interactive terminal in a running sandbox (installed as the wbx command):

wbx connect sb_...

Behind an HTTP proxy, set HTTPS_PROXY – the terminal connects through it.

Documentation: https://sandbox.wbx.cz/docs · Pricing: https://sandbox.wbx.cz/pricing

Versioning

The SDK has its own version. Its major.minor follows the platform release line (SDK 0.15.x works with platform 0.15.x); the patch number is raised only when the SDK itself changes. pyproject.toml and wbxsandbox.__version__ always carry the same version (checked by tests/test_sdk.py).

Tests

cd sdk/python && python3 -m unittest discover -s tests

The tests do not need network access.

License

MIT – see LICENSE.

Metadata

Release files for wbxsandbox 0.15.3

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

Source distribution (sdist)

Source distribution for wbxsandbox 0.15.3
File Size Uploaded Provenance Actions
wbxsandbox-0.15.3.tar.gz 22.4 kB With provenance Details for wbxsandbox-0.15.3.tar.gz

Built distribution (wheel)

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

Total release size: 41.5 kB

Release files / wbxsandbox-0.15.3.tar.gz

Download URL wbxsandbox-0.15.3.tar.gz
Size 22.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e861ce4477b66ba8457bcf3e8e5e829ec21d0561a64d6492c46979f9d1740d6f
BLAKE2b-256 checksum
How to use checksums
2dd9d4e8f6a089c8d00e5abf5790cd3eb7ed5ce873f8cf0aac2ee8684eeba945
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 Nov 12, 2026.

Transparency log

Release files / wbxsandbox-0.15.3-py3-none-any.whl

Download URL wbxsandbox-0.15.3-py3-none-any.whl
Size 19.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cedbeb379151c57d1b8fe313c2c8f40ac4afe07ee8a7cbdced196af256cecdd5
BLAKE2b-256 checksum
How to use checksums
527219efa37c1177bc8fb7446a724378ed020b8eba636f8316ba2e8aa5f9ffe9
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 Nov 12, 2026.

Transparency log

Security for wbxsandbox 0.15.3

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 wbxsandbox-0.15.3.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 Nov 12, 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.

Release history Release notifications | RSS feed

This release

0.15.3 This release

2 release files Full provenance

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