e2b-code-interpreter 2.9.0__tar.gz → 2.9.1__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-2.9.0 → e2b_code_interpreter-2.9.1}/PKG-INFO +4 -4
- {e2b_code_interpreter-2.9.0 → e2b_code_interpreter-2.9.1}/e2b_code_interpreter/code_interpreter_async.py +16 -1
- {e2b_code_interpreter-2.9.0 → e2b_code_interpreter-2.9.1}/e2b_code_interpreter/code_interpreter_sync.py +16 -1
- {e2b_code_interpreter-2.9.0 → e2b_code_interpreter-2.9.1}/pyproject.toml +2 -2
- {e2b_code_interpreter-2.9.0 → e2b_code_interpreter-2.9.1}/LICENSE +0 -0
- {e2b_code_interpreter-2.9.0 → e2b_code_interpreter-2.9.1}/README.md +0 -0
- {e2b_code_interpreter-2.9.0 → e2b_code_interpreter-2.9.1}/e2b_code_interpreter/__init__.py +0 -0
- {e2b_code_interpreter-2.9.0 → e2b_code_interpreter-2.9.1}/e2b_code_interpreter/charts.py +0 -0
- {e2b_code_interpreter-2.9.0 → e2b_code_interpreter-2.9.1}/e2b_code_interpreter/constants.py +0 -0
- {e2b_code_interpreter-2.9.0 → e2b_code_interpreter-2.9.1}/e2b_code_interpreter/exceptions.py +0 -0
- {e2b_code_interpreter-2.9.0 → e2b_code_interpreter-2.9.1}/e2b_code_interpreter/models.py +0 -0
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: e2b-code-interpreter
|
|
3
|
-
Version: 2.9.
|
|
3
|
+
Version: 2.9.1
|
|
4
4
|
Summary: E2B Code Interpreter - Stateful code execution
|
|
5
|
-
Home-page: https://e2b.dev/
|
|
6
5
|
License: MIT
|
|
7
6
|
Author: e2b
|
|
8
7
|
Author-email: hello@e2b.dev
|
|
@@ -14,9 +13,10 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
14
13
|
Classifier: Programming Language :: Python :: 3.12
|
|
15
14
|
Classifier: Programming Language :: Python :: 3.13
|
|
16
15
|
Requires-Dist: attrs (>=21.3.0)
|
|
17
|
-
Requires-Dist: e2b (>=2.
|
|
16
|
+
Requires-Dist: e2b (>=2.39.1,<3.0.0)
|
|
18
17
|
Requires-Dist: httpx (>=0.20.0,<1.0.0)
|
|
19
18
|
Project-URL: Bug Tracker, https://github.com/e2b-dev/code-interpreter/issues
|
|
19
|
+
Project-URL: Homepage, https://e2b.dev/
|
|
20
20
|
Project-URL: Repository, https://github.com/e2b-dev/code-interpreter/tree/main/python
|
|
21
21
|
Description-Content-Type: text/markdown
|
|
22
22
|
|
|
@@ -219,7 +219,22 @@ class AsyncSandbox(BaseAsyncSandbox):
|
|
|
219
219
|
"env_vars": envs,
|
|
220
220
|
},
|
|
221
221
|
headers=headers,
|
|
222
|
-
timeout
|
|
222
|
+
# `timeout` bounds the execution, `request_timeout` only the
|
|
223
|
+
# connect. Every non-connect phase must carry `timeout`: the
|
|
224
|
+
# SDK's pyqwest-backed transport collapses the per-phase
|
|
225
|
+
# timeouts into a single whole-request deadline and takes the
|
|
226
|
+
# longest of them, so leaving `request_timeout` on the write
|
|
227
|
+
# and pool phases would raise the floor to
|
|
228
|
+
# `max(timeout, request_timeout)` and silently ignore any
|
|
229
|
+
# `timeout` shorter than it. This matches the JS SDK, which
|
|
230
|
+
# aborts the execution on a `timeout`-long timer.
|
|
231
|
+
# `timeout=0` disables the deadline entirely; the transport
|
|
232
|
+
# still bounds connect on its own.
|
|
233
|
+
timeout=(
|
|
234
|
+
httpx.Timeout(timeout, connect=request_timeout)
|
|
235
|
+
if timeout is not None
|
|
236
|
+
else httpx.Timeout(None)
|
|
237
|
+
),
|
|
223
238
|
) as response:
|
|
224
239
|
err = await aextract_exception(response)
|
|
225
240
|
if err:
|
|
@@ -214,7 +214,22 @@ class Sandbox(BaseSandbox):
|
|
|
214
214
|
"env_vars": envs,
|
|
215
215
|
},
|
|
216
216
|
headers=headers,
|
|
217
|
-
timeout
|
|
217
|
+
# `timeout` bounds the execution, `request_timeout` only the
|
|
218
|
+
# connect. Every non-connect phase must carry `timeout`: the
|
|
219
|
+
# SDK's pyqwest-backed transport collapses the per-phase
|
|
220
|
+
# timeouts into a single whole-request deadline and takes the
|
|
221
|
+
# longest of them, so leaving `request_timeout` on the write
|
|
222
|
+
# and pool phases would raise the floor to
|
|
223
|
+
# `max(timeout, request_timeout)` and silently ignore any
|
|
224
|
+
# `timeout` shorter than it. This matches the JS SDK, which
|
|
225
|
+
# aborts the execution on a `timeout`-long timer.
|
|
226
|
+
# `timeout=0` disables the deadline entirely; the transport
|
|
227
|
+
# still bounds connect on its own.
|
|
228
|
+
timeout=(
|
|
229
|
+
httpx.Timeout(timeout, connect=request_timeout)
|
|
230
|
+
if timeout is not None
|
|
231
|
+
else httpx.Timeout(None)
|
|
232
|
+
),
|
|
218
233
|
) as response:
|
|
219
234
|
err = extract_exception(response)
|
|
220
235
|
if err:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "e2b-code-interpreter"
|
|
3
|
-
version = "2.9.
|
|
3
|
+
version = "2.9.1"
|
|
4
4
|
description = "E2B Code Interpreter - Stateful code execution"
|
|
5
5
|
authors = ["e2b <hello@e2b.dev>"]
|
|
6
6
|
license = "MIT"
|
|
@@ -14,7 +14,7 @@ python = "^3.10"
|
|
|
14
14
|
|
|
15
15
|
httpx = ">=0.20.0, <1.0.0"
|
|
16
16
|
attrs = ">=21.3.0"
|
|
17
|
-
e2b = "^2.
|
|
17
|
+
e2b = "^2.39.1"
|
|
18
18
|
|
|
19
19
|
[tool.poetry.group.dev.dependencies]
|
|
20
20
|
pytest = "^9.0.3"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{e2b_code_interpreter-2.9.0 → e2b_code_interpreter-2.9.1}/e2b_code_interpreter/exceptions.py
RENAMED
|
File without changes
|
|
File without changes
|