e2b-code-interpreter 1.2.2rc2__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.
@@ -1,21 +1,20 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: e2b-code-interpreter
3
- Version: 1.2.2rc2
3
+ Version: 1.3.4rc2
4
4
  Summary: E2B Code Interpreter - Stateful code execution
5
5
  License: Apache-2.0
6
6
  Author: e2b
7
7
  Author-email: hello@e2b.dev
8
- Requires-Python: >=3.8,<4.0
8
+ Requires-Python: >=3.9,<4.0
9
9
  Classifier: License :: OSI Approved :: Apache Software License
10
10
  Classifier: Programming Language :: Python :: 3
11
- Classifier: Programming Language :: Python :: 3.8
12
11
  Classifier: Programming Language :: Python :: 3.9
13
12
  Classifier: Programming Language :: Python :: 3.10
14
13
  Classifier: Programming Language :: Python :: 3.11
15
14
  Classifier: Programming Language :: Python :: 3.12
16
15
  Classifier: Programming Language :: Python :: 3.13
17
16
  Requires-Dist: attrs (>=21.3.0)
18
- Requires-Dist: e2b (==1.2.1rc2)
17
+ Requires-Dist: e2b (==1.3.4rc2)
19
18
  Requires-Dist: httpx (>=0.20.0,<1.0.0)
20
19
  Project-URL: Bug Tracker, https://github.com/e2b-dev/code-interpreter/issues
21
20
  Project-URL: Homepage, https://e2b.dev/
@@ -1,34 +1,29 @@
1
1
  import logging
2
- import httpx
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
- Context,
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.2.2rc2"
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"
@@ -10,11 +10,11 @@ repository = "https://github.com/e2b-dev/code-interpreter/tree/main/python"
10
10
  packages = [{ include = "e2b_code_interpreter" }]
11
11
 
12
12
  [tool.poetry.dependencies]
13
- python = "^3.8"
13
+ python = "^3.9"
14
14
 
15
15
  httpx = ">=0.20.0, <1.0.0"
16
16
  attrs = ">=21.3.0"
17
- e2b = "1.2.1rc2"
17
+ e2b = "1.3.4rc2"
18
18
 
19
19
  [tool.poetry.group.dev.dependencies]
20
20
  pytest = "^7.4.0"