e2b-code-interpreter 1.2.0__tar.gz → 1.2.0b1__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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: e2b-code-interpreter
3
- Version: 1.2.0
3
+ Version: 1.2.0b1
4
4
  Summary: E2B Code Interpreter - Stateful code execution
5
5
  Home-page: https://e2b.dev/
6
6
  License: Apache-2.0
@@ -14,7 +14,7 @@ Classifier: Programming Language :: Python :: 3.10
14
14
  Classifier: Programming Language :: Python :: 3.11
15
15
  Classifier: Programming Language :: Python :: 3.12
16
16
  Requires-Dist: attrs (>=21.3.0)
17
- Requires-Dist: e2b (>=1.3.1,<2.0.0)
17
+ Requires-Dist: e2b (==1.2.0b1)
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: Repository, https://github.com/e2b-dev/code-interpreter/tree/main/python
@@ -317,16 +317,9 @@ def serialize_results(results: List[Result]) -> List[Dict[str, str]]:
317
317
  """
318
318
  serialized = []
319
319
  for result in results:
320
- serialized_dict = {}
321
- for key in result.formats():
322
- if key == "chart":
323
- serialized_dict[key] = result.chart.to_dict()
324
- else:
325
- serialized_dict[key] = result[key]
326
-
320
+ serialized_dict = {key: result[key] for key in result.formats()}
327
321
  serialized_dict["text"] = result.text
328
322
  serialized.append(serialized_dict)
329
-
330
323
  return serialized
331
324
 
332
325
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "e2b-code-interpreter"
3
- version = "1.2.0"
3
+ version = "1.2.0b1"
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.1"
17
+ e2b = "1.2.0b1"
18
18
 
19
19
  [tool.poetry.group.dev.dependencies]
20
20
  pytest = "^7.4.0"