e2b-code-interpreter 1.3.4rc1__tar.gz → 1.3.4rc2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {e2b_code_interpreter-1.3.4rc1 → e2b_code_interpreter-1.3.4rc2}/PKG-INFO +2 -2
- {e2b_code_interpreter-1.3.4rc1 → e2b_code_interpreter-1.3.4rc2}/e2b_code_interpreter/code_interpreter_async.py +13 -21
- {e2b_code_interpreter-1.3.4rc1 → e2b_code_interpreter-1.3.4rc2}/pyproject.toml +2 -2
- {e2b_code_interpreter-1.3.4rc1 → e2b_code_interpreter-1.3.4rc2}/README.md +0 -0
- {e2b_code_interpreter-1.3.4rc1 → e2b_code_interpreter-1.3.4rc2}/e2b_code_interpreter/__init__.py +0 -0
- {e2b_code_interpreter-1.3.4rc1 → e2b_code_interpreter-1.3.4rc2}/e2b_code_interpreter/charts.py +0 -0
- {e2b_code_interpreter-1.3.4rc1 → e2b_code_interpreter-1.3.4rc2}/e2b_code_interpreter/code_interpreter_sync.py +0 -0
- {e2b_code_interpreter-1.3.4rc1 → e2b_code_interpreter-1.3.4rc2}/e2b_code_interpreter/constants.py +0 -0
- {e2b_code_interpreter-1.3.4rc1 → e2b_code_interpreter-1.3.4rc2}/e2b_code_interpreter/exceptions.py +0 -0
- {e2b_code_interpreter-1.3.4rc1 → e2b_code_interpreter-1.3.4rc2}/e2b_code_interpreter/models.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: e2b-code-interpreter
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.4rc2
|
|
4
4
|
Summary: E2B Code Interpreter - Stateful code execution
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
Author: e2b
|
|
@@ -14,7 +14,7 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.12
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.13
|
|
16
16
|
Requires-Dist: attrs (>=21.3.0)
|
|
17
|
-
Requires-Dist: e2b (==1.3.
|
|
17
|
+
Requires-Dist: e2b (==1.3.4rc2)
|
|
18
18
|
Requires-Dist: httpx (>=0.20.0,<1.0.0)
|
|
19
19
|
Project-URL: Bug Tracker, https://github.com/e2b-dev/code-interpreter/issues
|
|
20
20
|
Project-URL: Homepage, https://e2b.dev/
|
|
@@ -1,34 +1,29 @@
|
|
|
1
1
|
import logging
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
from typing import Optional, Dict, overload, Union, Literal
|
|
5
|
-
from httpx import AsyncClient
|
|
6
|
-
|
|
7
|
-
from e2b import (
|
|
8
|
-
AsyncSandbox as BaseAsyncSandbox,
|
|
9
|
-
ConnectionConfig,
|
|
10
|
-
InvalidArgumentException,
|
|
11
|
-
)
|
|
2
|
+
from typing import Dict, Literal, Optional, Union, overload
|
|
12
3
|
|
|
4
|
+
import httpx
|
|
5
|
+
from e2b import AsyncSandbox as BaseAsyncSandbox
|
|
6
|
+
from e2b import ConnectionConfig, InvalidArgumentException
|
|
13
7
|
from e2b_code_interpreter.constants import (
|
|
14
8
|
DEFAULT_TEMPLATE,
|
|
15
|
-
JUPYTER_PORT,
|
|
16
9
|
DEFAULT_TIMEOUT,
|
|
10
|
+
JUPYTER_PORT,
|
|
11
|
+
)
|
|
12
|
+
from e2b_code_interpreter.exceptions import (
|
|
13
|
+
format_execution_timeout_error,
|
|
14
|
+
format_request_timeout_error,
|
|
17
15
|
)
|
|
18
16
|
from e2b_code_interpreter.models import (
|
|
17
|
+
Context,
|
|
19
18
|
Execution,
|
|
20
19
|
ExecutionError,
|
|
21
|
-
|
|
20
|
+
OutputHandler,
|
|
21
|
+
OutputMessage,
|
|
22
22
|
Result,
|
|
23
23
|
aextract_exception,
|
|
24
24
|
parse_output,
|
|
25
|
-
OutputHandler,
|
|
26
|
-
OutputMessage,
|
|
27
|
-
)
|
|
28
|
-
from e2b_code_interpreter.exceptions import (
|
|
29
|
-
format_execution_timeout_error,
|
|
30
|
-
format_request_timeout_error,
|
|
31
25
|
)
|
|
26
|
+
from httpx import AsyncClient
|
|
32
27
|
|
|
33
28
|
logger = logging.getLogger(__name__)
|
|
34
29
|
|
|
@@ -57,9 +52,6 @@ class AsyncSandbox(BaseAsyncSandbox):
|
|
|
57
52
|
|
|
58
53
|
default_template = DEFAULT_TEMPLATE
|
|
59
54
|
|
|
60
|
-
def __init__(self, sandbox_id: str, connection_config: ConnectionConfig):
|
|
61
|
-
super().__init__(sandbox_id=sandbox_id, connection_config=connection_config)
|
|
62
|
-
|
|
63
55
|
@property
|
|
64
56
|
def _jupyter_url(self) -> str:
|
|
65
57
|
return f"{'http' if self.connection_config.debug else 'https'}://{self.get_host(JUPYTER_PORT)}"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "e2b-code-interpreter"
|
|
3
|
-
version = "1.3.
|
|
3
|
+
version = "1.3.4rc2"
|
|
4
4
|
description = "E2B Code Interpreter - Stateful code execution"
|
|
5
5
|
authors = ["e2b <hello@e2b.dev>"]
|
|
6
6
|
license = "Apache-2.0"
|
|
@@ -14,7 +14,7 @@ python = "^3.9"
|
|
|
14
14
|
|
|
15
15
|
httpx = ">=0.20.0, <1.0.0"
|
|
16
16
|
attrs = ">=21.3.0"
|
|
17
|
-
e2b = "1.3.
|
|
17
|
+
e2b = "1.3.4rc2"
|
|
18
18
|
|
|
19
19
|
[tool.poetry.group.dev.dependencies]
|
|
20
20
|
pytest = "^7.4.0"
|
|
File without changes
|
{e2b_code_interpreter-1.3.4rc1 → e2b_code_interpreter-1.3.4rc2}/e2b_code_interpreter/__init__.py
RENAMED
|
File without changes
|
{e2b_code_interpreter-1.3.4rc1 → e2b_code_interpreter-1.3.4rc2}/e2b_code_interpreter/charts.py
RENAMED
|
File without changes
|
|
File without changes
|
{e2b_code_interpreter-1.3.4rc1 → e2b_code_interpreter-1.3.4rc2}/e2b_code_interpreter/constants.py
RENAMED
|
File without changes
|
{e2b_code_interpreter-1.3.4rc1 → e2b_code_interpreter-1.3.4rc2}/e2b_code_interpreter/exceptions.py
RENAMED
|
File without changes
|
{e2b_code_interpreter-1.3.4rc1 → e2b_code_interpreter-1.3.4rc2}/e2b_code_interpreter/models.py
RENAMED
|
File without changes
|