scalebox-sdk 0.1.12__py3-none-any.whl → 0.1.14__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/api/__init__.py +3 -3
  3. scalebox/api/client/__init__.py +1 -1
  4. scalebox/code_interpreter/code_interpreter_async.py +3 -3
  5. scalebox/code_interpreter/code_interpreter_sync.py +2 -2
  6. scalebox/csx_desktop/main.py +4 -4
  7. scalebox/test/aclient.py +72 -72
  8. scalebox/test/code_interpreter_centext.py +21 -21
  9. scalebox/test/code_interpreter_centext_sync.py +21 -21
  10. scalebox/test/code_interpreter_test.py +1 -1
  11. scalebox/test/code_interpreter_test_sync.py +1 -1
  12. scalebox/test/run_all_validation_tests.py +334 -334
  13. scalebox/test/test_basic.py +78 -78
  14. scalebox/test/test_code_interpreter_async_comprehensive.py +2653 -2653
  15. scalebox/test/{test_code_interpreter_e2bsync_comprehensive.py → test_code_interpreter_execcode.py} +328 -392
  16. scalebox/test/test_code_interpreter_sync_comprehensive.py +3416 -3412
  17. scalebox/test/test_csx_desktop_examples.py +130 -0
  18. scalebox/test/test_sandbox_async_comprehensive.py +736 -738
  19. scalebox/test/test_sandbox_stress_and_edge_cases.py +778 -778
  20. scalebox/test/test_sandbox_sync_comprehensive.py +779 -770
  21. scalebox/test/test_sandbox_usage_examples.py +987 -987
  22. scalebox/test/testacreate.py +24 -24
  23. scalebox/test/testagetinfo.py +18 -18
  24. scalebox/test/testcodeinterpreter_async.py +508 -508
  25. scalebox/test/testcodeinterpreter_sync.py +239 -239
  26. scalebox/test/testcomputeuse.py +2 -2
  27. scalebox/test/testnovnc.py +12 -12
  28. scalebox/test/testsandbox_async.py +202 -118
  29. scalebox/test/testsandbox_sync.py +71 -38
  30. scalebox/version.py +2 -2
  31. {scalebox_sdk-0.1.12.dist-info → scalebox_sdk-0.1.14.dist-info}/METADATA +2 -2
  32. {scalebox_sdk-0.1.12.dist-info → scalebox_sdk-0.1.14.dist-info}/RECORD +36 -37
  33. scalebox/test/test_code_interpreter_e2basync_comprehensive.py +0 -2655
  34. scalebox/test/test_e2b_first.py +0 -11
  35. {scalebox_sdk-0.1.12.dist-info → scalebox_sdk-0.1.14.dist-info}/WHEEL +0 -0
  36. {scalebox_sdk-0.1.12.dist-info → scalebox_sdk-0.1.14.dist-info}/entry_points.txt +0 -0
  37. {scalebox_sdk-0.1.12.dist-info → scalebox_sdk-0.1.14.dist-info}/licenses/LICENSE +0 -0
  38. {scalebox_sdk-0.1.12.dist-info → scalebox_sdk-0.1.14.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())