E2B SDK that give agents cloud environments
Project description
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
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file e2b-2.7.0.tar.gz.
File metadata
- Download URL: e2b-2.7.0.tar.gz
- Upload date:
- Size: 111.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.9.25 Linux/6.8.0-1041-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e276101c017ab4425688a9935a91d79c8ea43fc73bf7089d10028a4b21915016
|
|
| MD5 |
e24f42181a0ee3b7462319e614d93c80
|
|
| BLAKE2b-256 |
9f282d12084d5e597925b90901cdf10e86e528f883fa8c9375a865843e81be47
|
File details
Details for the file e2b-2.7.0-py3-none-any.whl.
File metadata
- Download URL: e2b-2.7.0-py3-none-any.whl
- Upload date:
- Size: 203.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.9.25 Linux/6.8.0-1041-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc3d0a2def205e3e3e2ac635c59d12f41adea3c32a479e578716e4abcdd8898d
|
|
| MD5 |
c4751796fd60d00f12ecf6b1aa0887a3
|
|
| BLAKE2b-256 |
6b148a1e26f7ce9793c34ca02279f56f3fa0382f7058f745ae58728ae65d540e
|