Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Export Data Analysis from top level

Jakub Novakc475b71e438e
diff --git a/.changeset/eleven-bats-destroy.md b/.changeset/eleven-bats-destroy.md
new file mode 100644
index 000000000..f70bb4fdc
--- /dev/null
+++ b/.changeset/eleven-bats-destroy.md
@@ -0,0 +1,5 @@
+---
+'@e2b/python-sdk': patch
+---
+
+Export DataAnalysis from top level
diff --git a/packages/python-sdk/e2b/__init__.py b/packages/python-sdk/e2b/__init__.py
index eaf762d70..62766bd06 100644
--- a/packages/python-sdk/e2b/__init__.py
+++ b/packages/python-sdk/e2b/__init__.py
@@ -21,3 +21,7 @@ from .session import (
TerminalOutput,
run_code,
)
+
+from .templates import (
+ DataAnalysis,
+)
diff --git a/packages/python-sdk/e2b/session/process.py b/packages/python-sdk/e2b/session/process.py
index e402ab0af..fb4b7cd90 100644
--- a/packages/python-sdk/e2b/session/process.py
+++ b/packages/python-sdk/e2b/session/process.py
@@ -1,5 +1,4 @@
import logging
-import warnings
from asyncio.exceptions import TimeoutError
from concurrent.futures import ThreadPoolExecutor
from typing import (
@@ -314,7 +313,6 @@ class ProcessManager:
def exit_handler():
future_exit.result()
- logger.error("Process exit handler started")
logger.info(
f"Handling process exit (id: {process_id})",
)
@@ -335,7 +333,6 @@ class ProcessManager:
def trigger_exit():
logger.info(f"Exiting the process (id: {process_id})")
- logger.error("Process exit handler triggered")
future_exit(None)
future_exit_handler_finish.result()
logger.debug(f"Exited the process (id: {process_id})")
diff --git a/packages/python-sdk/e2b/templates/__init__.py b/packages/python-sdk/e2b/templates/__init__.py
index e69de29bb..c3ef08453 100644
--- a/packages/python-sdk/e2b/templates/__init__.py
+++ b/packages/python-sdk/e2b/templates/__init__.py
@@ -0,0 +1 @@
+from .data_analysis import DataAnalysis