Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Merge branch 'main' into grpc

Tomas Valenta7192f20a1b5e
diff --cc packages/python-sdk/example.py
index 71875416e,6975bcf51..9ee7b66b1
--- a/packages/python-sdk/example.py
+++ b/packages/python-sdk/example.py
@@@ -6,18 -5,7 +6,18 @@@ import tim
load_dotenv()
- logging.basicConfig(level=logging.ERROR)
+ logging.basicConfig(level=logging.INFO)
-with Sandbox() as sandbox:
+start = time.time()
+
+with Sandbox(
+ template="i32b48xtmbk9w5vfad1l",
+ # _debug_hostname="localhost",
+ # _debug_port=49982,
+ # _debug_dev_env="local",
+) as sandbox:
print(sandbox.id)
+
+ end = time.time()
+
+ print(f"Time taken: {end - start}")