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 run to 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-code-interpreter 0.0.1

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-code-interpreter 0.0.1
File Size Uploaded
cmsbx_code_interpreter-0.0.1.tar.gz 10.8 kB Details

Built distribution (wheel)

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

Total release size: 24.5 kB

Release files / cmsbx_code_interpreter-0.0.1.tar.gz

Download URL cmsbx_code_interpreter-0.0.1.tar.gz
Size 10.8 kB
Tags Source
SHA-256 checksum
How to use checksums
96a29501f119328b80c6c62f7ccb88f1225be061b98e795389628d977a139192
BLAKE2b-256 checksum
How to use checksums
235ef4cb8e372af6050e545419204a8aee020b67e52eec5b36c16b696bebd696
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_code_interpreter-0.0.1-py3-none-any.whl

Download URL cmsbx_code_interpreter-0.0.1-py3-none-any.whl
Size 13.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a83fa478972f2426ec1e560ea25a2c4e707d0577ff19840a52d0bb9b48bb4764
BLAKE2b-256 checksum
How to use checksums
ec7879a23d005b89e6b103d63c3e6d718bd4a3c2d886d55910e2665fbf5a7759
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.1 This release

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