Skip to main content

opensandbox-sdk

Python SDK for OpenSandbox — an open-source, E2B-compatible sandbox platform.

Install

pip install opensandbox-sdk

Quick Start

import asyncio
from opensandbox import Sandbox

async def main():
    sandbox = await Sandbox.create(template="base")

    # Execute commands
    result = await sandbox.commands.run("echo hello")
    print(result.stdout)  # "hello\n"

    # Read and write files
    await sandbox.files.write("/tmp/test.txt", "Hello, world!")
    content = await sandbox.files.read("/tmp/test.txt")

    # Clean up
    await sandbox.kill()
    await sandbox.close()

asyncio.run(main())

Configuration

Parameter Env Variable Default
api_url OPENSANDBOX_API_URL https://app.opensandbox.ai
api_key OPENSANDBOX_API_KEY (none)

License

MIT

Metadata

Release files for opensandbox-sdk 0.3.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 opensandbox-sdk 0.3.0
File Size Uploaded Provenance Actions
opensandbox_sdk-0.3.0.tar.gz 5.1 kB Without provenance Details for opensandbox_sdk-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for opensandbox-sdk 0.3.0
File Interpreter ABI Platform Actions
opensandbox_sdk-0.3.0-py3-none-any.whl Python 3 none any Details for opensandbox_sdk-0.3.0-py3-none-any.whl

Total release size: 12.2 kB

Release files / opensandbox_sdk-0.3.0.tar.gz

Download URL opensandbox_sdk-0.3.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ea2b3e7f4c50b8e7ca0ac3b05efae6b35bddb444f6b63ad5802dda3a8c86a65b
BLAKE2b-256 checksum
How to use checksums
40a7a3f22edd8e61064ab16668f1997952b5879ae94b6ccd13d0dc985ba3b932
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.25 {"installer":{"name":"uv","version":"0.9.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / opensandbox_sdk-0.3.0-py3-none-any.whl

Download URL opensandbox_sdk-0.3.0-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07614255f92f50f16cac7f40ed46c8d9e3ec8946081d0a8275cf71a0446b717e
BLAKE2b-256 checksum
How to use checksums
41e00b5223c7a06deaea0b61ffb8e73ca3cda4e0df0a4bb980b22cd803c5e432
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.25 {"installer":{"name":"uv","version":"0.9.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for opensandbox-sdk 0.3.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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