scalebox-sdk 0.1.11__py3-none-any.whl → 0.1.13__py3-none-any.whl

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.
Files changed (38) hide show
  1. scalebox/__init__.py +1 -1
  2. scalebox/code_interpreter/code_interpreter_async.py +12 -12
  3. scalebox/code_interpreter/code_interpreter_sync.py +11 -11
  4. scalebox/generated/api_pb2_connect.py +3 -3
  5. scalebox/sandbox_sync/main.py +1 -1
  6. scalebox/test/aclient.py +72 -72
  7. scalebox/test/code_interpreter_centext.py +21 -21
  8. scalebox/test/code_interpreter_centext_sync.py +21 -21
  9. scalebox/test/code_interpreter_test.py +34 -34
  10. scalebox/test/code_interpreter_test_sync.py +34 -34
  11. scalebox/test/run_all_validation_tests.py +334 -334
  12. scalebox/test/test_basic.py +78 -78
  13. scalebox/test/test_code_interpreter_async_comprehensive.py +2653 -2653
  14. scalebox/test/test_code_interpreter_e2basync_comprehensive.py +2655 -2655
  15. scalebox/test/test_code_interpreter_e2bsync_comprehensive.py +3416 -3416
  16. scalebox/test/test_code_interpreter_execcode.py +3352 -0
  17. scalebox/test/test_code_interpreter_sync_comprehensive.py +3416 -3412
  18. scalebox/test/test_csx_desktop_examples.py +130 -0
  19. scalebox/test/test_e2b_first.py +11 -11
  20. scalebox/test/test_sandbox_async_comprehensive.py +736 -738
  21. scalebox/test/test_sandbox_stress_and_edge_cases.py +778 -778
  22. scalebox/test/test_sandbox_sync_comprehensive.py +779 -770
  23. scalebox/test/test_sandbox_usage_examples.py +987 -987
  24. scalebox/test/testacreate.py +24 -24
  25. scalebox/test/testagetinfo.py +18 -18
  26. scalebox/test/testcodeinterpreter_async.py +508 -508
  27. scalebox/test/testcodeinterpreter_sync.py +239 -239
  28. scalebox/test/testcomputeuse.py +245 -243
  29. scalebox/test/testnovnc.py +12 -12
  30. scalebox/test/testsandbox_async.py +202 -118
  31. scalebox/test/testsandbox_sync.py +71 -38
  32. scalebox/version.py +2 -2
  33. {scalebox_sdk-0.1.11.dist-info → scalebox_sdk-0.1.13.dist-info}/METADATA +1 -1
  34. {scalebox_sdk-0.1.11.dist-info → scalebox_sdk-0.1.13.dist-info}/RECORD +38 -36
  35. {scalebox_sdk-0.1.11.dist-info → scalebox_sdk-0.1.13.dist-info}/WHEEL +0 -0
  36. {scalebox_sdk-0.1.11.dist-info → scalebox_sdk-0.1.13.dist-info}/entry_points.txt +0 -0
  37. {scalebox_sdk-0.1.11.dist-info → scalebox_sdk-0.1.13.dist-info}/licenses/LICENSE +0 -0
  38. {scalebox_sdk-0.1.11.dist-info → scalebox_sdk-0.1.13.dist-info}/top_level.txt +0 -0
@@ -1,24 +1,24 @@
1
- import asyncio
2
- import time
3
-
4
- from scalebox.sandbox_async import AsyncSandbox
5
-
6
-
7
- async def main():
8
- sandbox = await AsyncSandbox.create(
9
- template="base", # 或自定义模板名
10
- api_key="sk-Wk4IgtUYOqnttxGaxZmELEV4p2FXh15Evt0FIcSa",
11
- timeout=3600,
12
- )
13
- print("✅ 沙箱已启动,sandbox_domain:", sandbox.sandbox_domain)
14
- print("✅ 沙箱已启动,ID:", sandbox.sandbox_id)
15
- print("✅ 沙箱已启动,connection_config:", sandbox.connection_config)
16
- print("✅ 沙箱已启动,envd_api_url:", sandbox.envd_api_url)
17
- time.sleep(20)
18
- sandboxMetrics = await sandbox.get_metrics()
19
- for metric in sandboxMetrics:
20
- print(metric)
21
-
22
-
23
- if __name__ == "__main__":
24
- asyncio.run(main())
1
+ import asyncio
2
+ import time
3
+
4
+ from scalebox.sandbox_async import AsyncSandbox
5
+
6
+
7
+ async def main():
8
+ sandbox = await AsyncSandbox.create(
9
+ template="base", # 或自定义模板名
10
+ api_key="sk-Wk4IgtUYOqnttxGaxZmELEV4p2FXh15Evt0FIcSa",
11
+ timeout=3600,
12
+ )
13
+ print("✅ 沙箱已启动,sandbox_domain:", sandbox.sandbox_domain)
14
+ print("✅ 沙箱已启动,ID:", sandbox.sandbox_id)
15
+ print("✅ 沙箱已启动,connection_config:", sandbox.connection_config)
16
+ print("✅ 沙箱已启动,envd_api_url:", sandbox.envd_api_url)
17
+ time.sleep(20)
18
+ sandboxMetrics = await sandbox.get_metrics()
19
+ for metric in sandboxMetrics:
20
+ print(metric)
21
+
22
+
23
+ if __name__ == "__main__":
24
+ asyncio.run(main())
@@ -1,18 +1,18 @@
1
- import asyncio
2
- import time
3
-
4
- from sandbox_async import AsyncSandbox
5
-
6
-
7
- async def main():
8
- sandbox = await AsyncSandbox.get_info(
9
- sandbox_id="", api_key="sk-Wk4IgtUYOqnttxGaxZmELEV4p2FXh15Evt0FIcSa"
10
- )
11
- print("✅ 沙箱已启动,sandbox_domain:", sandbox.sandbox_domain)
12
- print("✅ 沙箱已启动,ID:", sandbox.sandbox_id)
13
- print("✅ 沙箱已启动,connection_config:", sandbox.name)
14
- print("✅ 沙箱已启动,envd_api_url:", sandbox.started_at)
15
-
16
-
17
- if __name__ == "__main__":
18
- asyncio.run(main())
1
+ import asyncio
2
+ import time
3
+
4
+ from sandbox_async import AsyncSandbox
5
+
6
+
7
+ async def main():
8
+ sandbox = await AsyncSandbox.get_info(
9
+ sandbox_id="", api_key="sk-Wk4IgtUYOqnttxGaxZmELEV4p2FXh15Evt0FIcSa"
10
+ )
11
+ print("✅ 沙箱已启动,sandbox_domain:", sandbox.sandbox_domain)
12
+ print("✅ 沙箱已启动,ID:", sandbox.sandbox_id)
13
+ print("✅ 沙箱已启动,connection_config:", sandbox.name)
14
+ print("✅ 沙箱已启动,envd_api_url:", sandbox.started_at)
15
+
16
+
17
+ if __name__ == "__main__":
18
+ asyncio.run(main())