Skip to main content

Unified sandbox client for E2B, Daytona, Blaxel, Runloop, Fly Machines, and local Docker

Project description

Sandboxer (Python)

Python client for Sandboxer. You choose a provider (a sandbox host or local Docker); the library calls that backend directly. There is no Sandboxer cloud service between your code and the host.

Install

Published on PyPI as hyperterse-sandboxer; the import package is sandboxer.

pip install hyperterse-sandboxer

From a clone of the repository:

pip install -e ./sdks/python
# optional development dependencies
pip install -e "./sdks/python[dev]"

Usage

from sandboxer import Sandboxer, RunCommandRequest

client = Sandboxer("e2b", {"api_key": "...", "base_url": "https://api.e2b.app"})
sb, info = client.create_sandbox()
try:
    print(sb.run_command(RunCommandRequest(cmd="echo hi")).stdout)
finally:
    sb.kill()
    client.close()

Full API tables and types: Python API reference.

Layout

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hyperterse_sandboxer-0.1.0.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hyperterse_sandboxer-0.1.0-py3-none-any.whl (30.8 kB view details)

Uploaded Python 3

File details

Details for the file hyperterse_sandboxer-0.1.0.tar.gz.

File metadata

  • Download URL: hyperterse_sandboxer-0.1.0.tar.gz
  • Upload date:
  • Size: 18.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for hyperterse_sandboxer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b69bf174841b774db854827422f43cdc37e2ae40d8f90141fbc4b833088177d7
MD5 5a1d50788d094ed1049d6325112ce7dc
BLAKE2b-256 0c2221d4a4d7fa501b0c036e56cecc28c14256617ecb28459428e7c6bcd94817

See more details on using hashes here.

File details

Details for the file hyperterse_sandboxer-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for hyperterse_sandboxer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a9fe835c4f7934514088360618ffde9e41b0fc3f18a48d5fe5faa4075aef283e
MD5 b55ec38b872af35fc21030eef950b6e4
BLAKE2b-256 639dc1908564dde5dda20b3cd62a98e4cb9310fa790bf45b5141ef2b601b0ea6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page