Skip to main content

e2b logo

Last 1 month downloads for the Python SDK

What is E2B?

E2B is an open-source infrastructure that allows you to run AI-generated code in secure isolated sandboxes in the cloud. To start and control sandboxes, use our JavaScript SDK or Python SDK.

Run your first Sandbox

1. Install SDK

pip install e2b-code-interpreter

2. Get your E2B API key

  1. Sign up to E2B here.
  2. Get your API key here.
  3. Set environment variable with your API key
E2B_API_KEY=e2b_***

3. Execute code with code interpreter inside Sandbox

from e2b_code_interpreter import Sandbox

with Sandbox.create() as sandbox:
    sandbox.run_code("x = 1")
    execution = sandbox.run_code("x+=1; x")
    print(execution.text)  # outputs 2

4. Check docs

Visit E2B documentation.

5. E2B cookbook

Visit our Cookbook to get inspired by examples with different LLMs and AI frameworks.

Metadata

Release files for cmsbx 0.0.6

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

Source distribution (sdist)

Source distribution for cmsbx 0.0.6
File Size Uploaded
cmsbx-0.0.6.tar.gz 116.8 kB Details

Built distribution (wheel)

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

Total release size: 320.5 kB

Release files / cmsbx-0.0.6.tar.gz

Download URL cmsbx-0.0.6.tar.gz
Size 116.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e8bf70e6548258a5a349e9c7bc0a5e1bb6f09becc155bc4a8441b6dd930b1193
BLAKE2b-256 checksum
How to use checksums
76afa826e08676643ecb5de1ece762f6dbe24d9ca4c3b6909e647e2e6e4dd7a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.3 Linux/6.6.87.2-microsoft-standard-WSL2

Release files / cmsbx-0.0.6-py3-none-any.whl

Download URL cmsbx-0.0.6-py3-none-any.whl
Size 203.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d450f2fba64c6e295fbe63618ea4b1e5a5c81042ed0188ed0735f7f728e33aa
BLAKE2b-256 checksum
How to use checksums
e261741f9a7d57294558588c5e66c213e7acfea306afa6682d3a67427b25c71a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.3 Linux/6.6.87.2-microsoft-standard-WSL2

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

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