e2b


Namee2b JSON
Version 2.1.1 PyPI version JSON
download
home_pagehttps://e2b.dev/
SummaryE2B SDK that give agents cloud environments
upload_time2025-09-06 10:57:50
maintainerNone
docs_urlNone
authore2b
requires_python<4.0,>=3.9
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <p align="center">
  <img width="100" src="https://raw.githubusercontent.com/e2b-dev/E2B/refs/heads/main/readme-assets/logo-circle.png" alt="e2b logo">
</p>

<h4 align="center">
  <a href="https://pypi.org/project/e2b/">
    <img alt="Last 1 month downloads for the Python SDK" loading="lazy" width="200" height="20" decoding="async" data-nimg="1"
    style="color:transparent;width:auto;height:100%" src="https://img.shields.io/pypi/dm/e2b?label=PyPI%20Downloads">
  </a>  
</h4>


## What is E2B?
[E2B](https://www.e2b.dev/) 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](https://www.npmjs.com/package/@e2b/code-interpreter) or [Python SDK](https://pypi.org/project/e2b_code_interpreter).

## Run your first Sandbox

### 1. Install SDK

```
pip install e2b-code-interpreter
```

### 2. Get your E2B API key
1. Sign up to E2B [here](https://e2b.dev).
2. Get your API key [here](https://e2b.dev/dashboard?tab=keys).
3. Set environment variable with your API key
```
E2B_API_KEY=e2b_***
```     

### 3. Execute code with code interpreter inside Sandbox

```py
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](https://e2b.dev/docs).

### 5. E2B cookbook
Visit our [Cookbook](https://github.com/e2b-dev/e2b-cookbook/tree/main) to get inspired by examples with different LLMs and AI frameworks.

            

Raw data

            {
    "_id": null,
    "home_page": "https://e2b.dev/",
    "name": "e2b",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": "e2b",
    "author_email": "hello@e2b.dev",
    "download_url": "https://files.pythonhosted.org/packages/27/8b/f6c6f5d24ebc585e0bc9cb96572079a0e8becb8ccb4bfa5f6f7a68f74fba/e2b-2.1.1.tar.gz",
    "platform": null,
    "description": "<p align=\"center\">\n  <img width=\"100\" src=\"https://raw.githubusercontent.com/e2b-dev/E2B/refs/heads/main/readme-assets/logo-circle.png\" alt=\"e2b logo\">\n</p>\n\n<h4 align=\"center\">\n  <a href=\"https://pypi.org/project/e2b/\">\n    <img alt=\"Last 1 month downloads for the Python SDK\" loading=\"lazy\" width=\"200\" height=\"20\" decoding=\"async\" data-nimg=\"1\"\n    style=\"color:transparent;width:auto;height:100%\" src=\"https://img.shields.io/pypi/dm/e2b?label=PyPI%20Downloads\">\n  </a>  \n</h4>\n\n\n## What is E2B?\n[E2B](https://www.e2b.dev/) 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](https://www.npmjs.com/package/@e2b/code-interpreter) or [Python SDK](https://pypi.org/project/e2b_code_interpreter).\n\n## Run your first Sandbox\n\n### 1. Install SDK\n\n```\npip install e2b-code-interpreter\n```\n\n### 2. Get your E2B API key\n1. Sign up to E2B [here](https://e2b.dev).\n2. Get your API key [here](https://e2b.dev/dashboard?tab=keys).\n3. Set environment variable with your API key\n```\nE2B_API_KEY=e2b_***\n```     \n\n### 3. Execute code with code interpreter inside Sandbox\n\n```py\nfrom e2b_code_interpreter import Sandbox\n\nwith Sandbox.create() as sandbox:\n    sandbox.run_code(\"x = 1\")\n    execution = sandbox.run_code(\"x+=1; x\")\n    print(execution.text)  # outputs 2\n```\n\n### 4. Check docs\nVisit [E2B documentation](https://e2b.dev/docs).\n\n### 5. E2B cookbook\nVisit our [Cookbook](https://github.com/e2b-dev/e2b-cookbook/tree/main) to get inspired by examples with different LLMs and AI frameworks.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "E2B SDK that give agents cloud environments",
    "version": "2.1.1",
    "project_urls": {
        "Bug Tracker": "https://github.com/e2b-dev/e2b/issues",
        "Homepage": "https://e2b.dev/",
        "Repository": "https://github.com/e2b-dev/e2b/tree/main/packages/python-sdk"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "16ad82fbbff5c7d7de570d8aabe42b7d10c825963dc67935610c392735dfb11b",
                "md5": "7b90f61a02b1c2a6201d3d4a32242a9e",
                "sha256": "9d4b8e6e33f604784bedbbcec507ba2a3365b95fca3c1e8a0d76614533fa5bf0"
            },
            "downloads": -1,
            "filename": "e2b-2.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7b90f61a02b1c2a6201d3d4a32242a9e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 155044,
            "upload_time": "2025-09-06T10:57:48",
            "upload_time_iso_8601": "2025-09-06T10:57:48.577678Z",
            "url": "https://files.pythonhosted.org/packages/16/ad/82fbbff5c7d7de570d8aabe42b7d10c825963dc67935610c392735dfb11b/e2b-2.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "278bf6c6f5d24ebc585e0bc9cb96572079a0e8becb8ccb4bfa5f6f7a68f74fba",
                "md5": "2591346d1672c613f4da7ed265936c2c",
                "sha256": "077e8bb6cb1060f936971e0f18e1d387a1fc39f73dca3a049a3e9c5b3976161d"
            },
            "downloads": -1,
            "filename": "e2b-2.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "2591346d1672c613f4da7ed265936c2c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 79244,
            "upload_time": "2025-09-06T10:57:50",
            "upload_time_iso_8601": "2025-09-06T10:57:50.470088Z",
            "url": "https://files.pythonhosted.org/packages/27/8b/f6c6f5d24ebc585e0bc9cb96572079a0e8becb8ccb4bfa5f6f7a68f74fba/e2b-2.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-09-06 10:57:50",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "e2b-dev",
    "github_project": "e2b",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "e2b"
}
        
e2b
Elapsed time: 1.37792s