Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Apply black

Jakub Novak6a53352cd77d
diff --git a/packages/python-sdk/e2b/sandbox/main.py b/packages/python-sdk/e2b/sandbox/main.py
index 4cee61f25..af06589ec 100644
--- a/packages/python-sdk/e2b/sandbox/main.py
+++ b/packages/python-sdk/e2b/sandbox/main.py
@@ -114,7 +114,7 @@ class Sandbox(SandboxConnection):
timeout=timeout,
)
- def _open(self,timeout: Optional[float] = TIMEOUT) -> None:
+ def _open(self, timeout: Optional[float] = TIMEOUT) -> None:
"""
Open the sandbox.
@@ -156,7 +156,11 @@ class Sandbox(SandboxConnection):
on_stdout=on_stdout,
on_stderr=on_stderr,
timeout=timeout,
- _sandbox=models.Instance(instance_id=instance_id, client_id=client_id, env_id=getattr(cls, "sandbox_template_id", "unknown")),
+ _sandbox=models.Instance(
+ instance_id=instance_id,
+ client_id=client_id,
+ env_id=getattr(cls, "sandbox_template_id", "unknown"),
+ ),
_debug_hostname=_debug_hostname,
_debug_port=_debug_port,
_debug_dev_env=_debug_dev_env,
diff --git a/packages/python-sdk/example.py b/packages/python-sdk/example.py
index 4cbe6753e..d92a6522a 100644
--- a/packages/python-sdk/example.py
+++ b/packages/python-sdk/example.py
@@ -25,4 +25,6 @@ def main():
s2 = Sandbox.reconnect(s.id, api_key=E2B_API_KEY)
print(s2.filesystem.read("/home/user/test.txt"))
s2.close()
+
+
main()