withruntime 0.44.1__tar.gz → 1.0.0__tar.gz

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 (487) hide show
  1. withruntime-1.0.0/PKG-INFO +11 -0
  2. withruntime-1.0.0/pyproject.toml +18 -0
  3. withruntime-1.0.0/withruntime/__init__.py +5 -0
  4. withruntime-1.0.0/withruntime/_version.py +1 -0
  5. withruntime-1.0.0/withruntime/generated/__init__.py +205 -0
  6. withruntime-1.0.0/withruntime/generated/_routes.py +8 -0
  7. withruntime-1.0.0/withruntime/generated/_runtime.py +542 -0
  8. withruntime-1.0.0/withruntime/generated/apps.py +722 -0
  9. withruntime-1.0.0/withruntime/generated/audit.py +109 -0
  10. withruntime-1.0.0/withruntime/generated/browsers.py +722 -0
  11. withruntime-1.0.0/withruntime/generated/builds.py +722 -0
  12. withruntime-1.0.0/withruntime/generated/ci.py +722 -0
  13. withruntime-1.0.0/withruntime/generated/containers.py +722 -0
  14. withruntime-1.0.0/withruntime/generated/desktops.py +722 -0
  15. withruntime-1.0.0/withruntime/generated/domains.py +265 -0
  16. withruntime-1.0.0/withruntime/generated/egress_ips.py +108 -0
  17. withruntime-1.0.0/withruntime/generated/events.py +85 -0
  18. withruntime-1.0.0/withruntime/generated/feedback.py +128 -0
  19. withruntime-1.0.0/withruntime/generated/functions.py +722 -0
  20. withruntime-1.0.0/withruntime/generated/identities.py +98 -0
  21. withruntime-1.0.0/withruntime/generated/images.py +540 -0
  22. withruntime-1.0.0/withruntime/generated/job_runs.py +149 -0
  23. withruntime-1.0.0/withruntime/generated/jobs.py +521 -0
  24. withruntime-1.0.0/withruntime/generated/keys.py +337 -0
  25. withruntime-1.0.0/withruntime/generated/me.py +97 -0
  26. withruntime-1.0.0/withruntime/generated/networks.py +96 -0
  27. withruntime-1.0.0/withruntime/generated/notebooks.py +722 -0
  28. withruntime-1.0.0/withruntime/generated/otel.py +128 -0
  29. withruntime-1.0.0/withruntime/generated/ports.py +155 -0
  30. withruntime-1.0.0/withruntime/generated/previews.py +244 -0
  31. withruntime-1.0.0/withruntime/generated/projects.py +143 -0
  32. withruntime-1.0.0/withruntime/generated/roles.py +98 -0
  33. withruntime-1.0.0/withruntime/generated/sandboxes.py +2628 -0
  34. withruntime-1.0.0/withruntime/generated/secrets.py +423 -0
  35. withruntime-1.0.0/withruntime/generated/sessions.py +187 -0
  36. withruntime-1.0.0/withruntime/generated/signing.py +276 -0
  37. withruntime-1.0.0/withruntime/generated/sites.py +722 -0
  38. withruntime-1.0.0/withruntime/generated/snapshots.py +55 -0
  39. withruntime-1.0.0/withruntime/generated/tunnels.py +210 -0
  40. withruntime-1.0.0/withruntime/generated/usage.py +359 -0
  41. withruntime-1.0.0/withruntime/generated/volumes.py +90 -0
  42. withruntime-1.0.0/withruntime/generated/webhooks.py +124 -0
  43. withruntime-1.0.0/withruntime/generated/workspaces.py +722 -0
  44. withruntime-1.0.0/withruntime.egg-info/PKG-INFO +11 -0
  45. withruntime-1.0.0/withruntime.egg-info/SOURCES.txt +48 -0
  46. withruntime-1.0.0/withruntime.egg-info/requires.txt +4 -0
  47. withruntime-0.44.1/PKG-INFO +0 -352
  48. withruntime-0.44.1/README.md +0 -326
  49. withruntime-0.44.1/pyproject.toml +0 -42
  50. withruntime-0.44.1/tests/test_account_errors.py +0 -72
  51. withruntime-0.44.1/tests/test_agents.py +0 -628
  52. withruntime-0.44.1/tests/test_answer_start.py +0 -85
  53. withruntime-0.44.1/tests/test_apps_builds.py +0 -453
  54. withruntime-0.44.1/tests/test_async_stream_cleanup.py +0 -271
  55. withruntime-0.44.1/tests/test_audit.py +0 -70
  56. withruntime-0.44.1/tests/test_billing.py +0 -102
  57. withruntime-0.44.1/tests/test_blaxel.py +0 -1610
  58. withruntime-0.44.1/tests/test_blaxel_0_4_17.py +0 -204
  59. withruntime-0.44.1/tests/test_blaxel_0_4_18.py +0 -34
  60. withruntime-0.44.1/tests/test_blaxel_create_timeout.py +0 -143
  61. withruntime-0.44.1/tests/test_blaxel_wait_deadline.py +0 -57
  62. withruntime-0.44.1/tests/test_browser.py +0 -48
  63. withruntime-0.44.1/tests/test_browsers.py +0 -117
  64. withruntime-0.44.1/tests/test_capacity_wait.py +0 -233
  65. withruntime-0.44.1/tests/test_ci.py +0 -204
  66. withruntime-0.44.1/tests/test_compat_live.py +0 -101
  67. withruntime-0.44.1/tests/test_compat_modal_deadline_errors.py +0 -73
  68. withruntime-0.44.1/tests/test_compat_new_providers.py +0 -614
  69. withruntime-0.44.1/tests/test_compat_prime_contract.py +0 -170
  70. withruntime-0.44.1/tests/test_compat_prime_process_lifecycle.py +0 -106
  71. withruntime-0.44.1/tests/test_compat_prime_validation.py +0 -288
  72. withruntime-0.44.1/tests/test_compat_python_disk_snapshots.py +0 -159
  73. withruntime-0.44.1/tests/test_compat_python_e2b_deadline.py +0 -203
  74. withruntime-0.44.1/tests/test_compat_python_e2b_pty.py +0 -172
  75. withruntime-0.44.1/tests/test_compat_python_e2b_stream.py +0 -126
  76. withruntime-0.44.1/tests/test_compat_python_e2b_watch.py +0 -86
  77. withruntime-0.44.1/tests/test_compat_python_interpreter_deadline.py +0 -113
  78. withruntime-0.44.1/tests/test_compat_python_modal.py +0 -116
  79. withruntime-0.44.1/tests/test_compat_python_morph.py +0 -546
  80. withruntime-0.44.1/tests/test_compat_python_official.py +0 -676
  81. withruntime-0.44.1/tests/test_compat_python_pins.py +0 -91
  82. withruntime-0.44.1/tests/test_compat_python_processes.py +0 -282
  83. withruntime-0.44.1/tests/test_compat_python_request_scope.py +0 -187
  84. withruntime-0.44.1/tests/test_compat_python_runloop.py +0 -146
  85. withruntime-0.44.1/tests/test_compat_python_shell.py +0 -61
  86. withruntime-0.44.1/tests/test_compat_python_snapshot_capture.py +0 -139
  87. withruntime-0.44.1/tests/test_compat_python_sprites.py +0 -631
  88. withruntime-0.44.1/tests/test_compat_router.py +0 -133
  89. withruntime-0.44.1/tests/test_customer_usage.py +0 -121
  90. withruntime-0.44.1/tests/test_daytona.py +0 -381
  91. withruntime-0.44.1/tests/test_daytona_0_223_1.py +0 -79
  92. withruntime-0.44.1/tests/test_daytona_0_224_1.py +0 -76
  93. withruntime-0.44.1/tests/test_daytona_0_225_0.py +0 -71
  94. withruntime-0.44.1/tests/test_daytona_create_cleanup.py +0 -75
  95. withruntime-0.44.1/tests/test_daytona_create_options.py +0 -139
  96. withruntime-0.44.1/tests/test_daytona_download_labels.py +0 -158
  97. withruntime-0.44.1/tests/test_daytona_refusals_lifted.py +0 -368
  98. withruntime-0.44.1/tests/test_deepagents.py +0 -194
  99. withruntime-0.44.1/tests/test_e2b_2_55.py +0 -113
  100. withruntime-0.44.1/tests/test_e2b_code_interpreter.py +0 -138
  101. withruntime-0.44.1/tests/test_e2b_connection_cap.py +0 -233
  102. withruntime-0.44.1/tests/test_e2b_exports.py +0 -133
  103. withruntime-0.44.1/tests/test_e2b_fork_validation.py +0 -78
  104. withruntime-0.44.1/tests/test_e2b_sandbox.py +0 -904
  105. withruntime-0.44.1/tests/test_e2b_upstream.py +0 -266
  106. withruntime-0.44.1/tests/test_e2b_watch.py +0 -122
  107. withruntime-0.44.1/tests/test_embed_and_webhook_watch.py +0 -57
  108. withruntime-0.44.1/tests/test_eval_sandbox.py +0 -43
  109. withruntime-0.44.1/tests/test_exec_stream.py +0 -241
  110. withruntime-0.44.1/tests/test_exec_stream_names.py +0 -51
  111. withruntime-0.44.1/tests/test_exec_user.py +0 -92
  112. withruntime-0.44.1/tests/test_file_archives.py +0 -175
  113. withruntime-0.44.1/tests/test_files_download.py +0 -149
  114. withruntime-0.44.1/tests/test_files_mode.py +0 -74
  115. withruntime-0.44.1/tests/test_files_upload_parallel.py +0 -84
  116. withruntime-0.44.1/tests/test_files_write_lost_body.py +0 -86
  117. withruntime-0.44.1/tests/test_harbor.py +0 -609
  118. withruntime-0.44.1/tests/test_http_tls_close.py +0 -118
  119. withruntime-0.44.1/tests/test_identity_token.py +0 -152
  120. withruntime-0.44.1/tests/test_image_delete_by_name.py +0 -55
  121. withruntime-0.44.1/tests/test_images_v2.py +0 -137
  122. withruntime-0.44.1/tests/test_images_volumes_interpreter.py +0 -149
  123. withruntime-0.44.1/tests/test_inspect_ai.py +0 -235
  124. withruntime-0.44.1/tests/test_interface_contract.py +0 -81
  125. withruntime-0.44.1/tests/test_jobs.py +0 -278
  126. withruntime-0.44.1/tests/test_late_answer.py +0 -69
  127. withruntime-0.44.1/tests/test_lifecycle_settings.py +0 -247
  128. withruntime-0.44.1/tests/test_limits.py +0 -64
  129. withruntime-0.44.1/tests/test_machine_engine.py +0 -123
  130. withruntime-0.44.1/tests/test_modal_1_6_2.py +0 -64
  131. withruntime-0.44.1/tests/test_modal_dropin.py +0 -748
  132. withruntime-0.44.1/tests/test_modal_examples.py +0 -193
  133. withruntime-0.44.1/tests/test_modal_jobs.py +0 -158
  134. withruntime-0.44.1/tests/test_mounts.py +0 -69
  135. withruntime-0.44.1/tests/test_network_funding.py +0 -28
  136. withruntime-0.44.1/tests/test_network_products.py +0 -98
  137. withruntime-0.44.1/tests/test_observability.py +0 -155
  138. withruntime-0.44.1/tests/test_openai_agents.py +0 -457
  139. withruntime-0.44.1/tests/test_out_of_memory.py +0 -47
  140. withruntime-0.44.1/tests/test_package_typing.py +0 -155
  141. withruntime-0.44.1/tests/test_plans.py +0 -120
  142. withruntime-0.44.1/tests/test_previews_network_desktop.py +0 -108
  143. withruntime-0.44.1/tests/test_prime_0_4_5.py +0 -334
  144. withruntime-0.44.1/tests/test_prime_0_4_6.py +0 -47
  145. withruntime-0.44.1/tests/test_prime_0_4_7.py +0 -70
  146. withruntime-0.44.1/tests/test_private_network.py +0 -71
  147. withruntime-0.44.1/tests/test_process_deadline.py +0 -273
  148. withruntime-0.44.1/tests/test_process_input.py +0 -50
  149. withruntime-0.44.1/tests/test_process_object.py +0 -49
  150. withruntime-0.44.1/tests/test_process_output.py +0 -50
  151. withruntime-0.44.1/tests/test_process_write_backpressure.py +0 -174
  152. withruntime-0.44.1/tests/test_product_aliases.py +0 -118
  153. withruntime-0.44.1/tests/test_proxy.py +0 -267
  154. withruntime-0.44.1/tests/test_referrals.py +0 -64
  155. withruntime-0.44.1/tests/test_replayed_create_message.py +0 -55
  156. withruntime-0.44.1/tests/test_reservations.py +0 -117
  157. withruntime-0.44.1/tests/test_runloop_stream_cleanup.py +0 -167
  158. withruntime-0.44.1/tests/test_runloop_v2.py +0 -164
  159. withruntime-0.44.1/tests/test_sandbox_origin.py +0 -53
  160. withruntime-0.44.1/tests/test_sandbox_sessions.py +0 -149
  161. withruntime-0.44.1/tests/test_sandboxes_delete_all.py +0 -95
  162. withruntime-0.44.1/tests/test_sandboxes_stop_all.py +0 -49
  163. withruntime-0.44.1/tests/test_saved_connection.py +0 -37
  164. withruntime-0.44.1/tests/test_secrets.py +0 -437
  165. withruntime-0.44.1/tests/test_signed_requests.py +0 -71
  166. withruntime-0.44.1/tests/test_snapshot_after_fork.py +0 -108
  167. withruntime-0.44.1/tests/test_snapshot_recovery.py +0 -137
  168. withruntime-0.44.1/tests/test_sso.py +0 -29
  169. withruntime-0.44.1/tests/test_start_report_kept.py +0 -43
  170. withruntime-0.44.1/tests/test_stream_cut_short.py +0 -81
  171. withruntime-0.44.1/tests/test_stream_exit_close.py +0 -55
  172. withruntime-0.44.1/tests/test_switch_image.py +0 -88
  173. withruntime-0.44.1/tests/test_switching.py +0 -79
  174. withruntime-0.44.1/tests/test_tailscale.py +0 -80
  175. withruntime-0.44.1/tests/test_tools.py +0 -115
  176. withruntime-0.44.1/tests/test_trace_files.py +0 -72
  177. withruntime-0.44.1/tests/test_transport_body_recovery.py +0 -260
  178. withruntime-0.44.1/tests/test_transport_connection_limits.py +0 -256
  179. withruntime-0.44.1/tests/test_transport_never_sent.py +0 -112
  180. withruntime-0.44.1/tests/test_unpack.py +0 -216
  181. withruntime-0.44.1/tests/test_upload_deadline.py +0 -86
  182. withruntime-0.44.1/tests/test_usage_export.py +0 -97
  183. withruntime-0.44.1/tests/test_vercel.py +0 -341
  184. withruntime-0.44.1/tests/test_vercel_create_validation.py +0 -158
  185. withruntime-0.44.1/tests/test_vercel_disk_snapshot.py +0 -394
  186. withruntime-0.44.1/tests/test_vercel_refusals_lifted.py +0 -134
  187. withruntime-0.44.1/tests/test_volume_backups.py +0 -109
  188. withruntime-0.44.1/tests/test_volume_operations.py +0 -52
  189. withruntime-0.44.1/tests/test_wake_awake.py +0 -34
  190. withruntime-0.44.1/tests/test_wallet.py +0 -60
  191. withruntime-0.44.1/tests/test_watch.py +0 -144
  192. withruntime-0.44.1/withruntime/__init__.py +0 -162
  193. withruntime-0.44.1/withruntime/_agent_templates.py +0 -78
  194. withruntime-0.44.1/withruntime/_api_defaults.py +0 -21
  195. withruntime-0.44.1/withruntime/_async_client.py +0 -2240
  196. withruntime-0.44.1/withruntime/_async_products/__init__.py +0 -84
  197. withruntime-0.44.1/withruntime/_async_products/agents.py +0 -800
  198. withruntime-0.44.1/withruntime/_async_products/apps.py +0 -515
  199. withruntime-0.44.1/withruntime/_async_products/audit.py +0 -26
  200. withruntime-0.44.1/withruntime/_async_products/billing.py +0 -72
  201. withruntime-0.44.1/withruntime/_async_products/browser.py +0 -54
  202. withruntime-0.44.1/withruntime/_async_products/browsers.py +0 -115
  203. withruntime-0.44.1/withruntime/_async_products/builds.py +0 -264
  204. withruntime-0.44.1/withruntime/_async_products/ci.py +0 -228
  205. withruntime-0.44.1/withruntime/_async_products/containers.py +0 -125
  206. withruntime-0.44.1/withruntime/_async_products/desktop.py +0 -159
  207. withruntime-0.44.1/withruntime/_async_products/images.py +0 -391
  208. withruntime-0.44.1/withruntime/_async_products/interpreter.py +0 -116
  209. withruntime-0.44.1/withruntime/_async_products/jobs.py +0 -347
  210. withruntime-0.44.1/withruntime/_async_products/limits.py +0 -32
  211. withruntime-0.44.1/withruntime/_async_products/mcp.py +0 -68
  212. withruntime-0.44.1/withruntime/_async_products/mounts.py +0 -39
  213. withruntime-0.44.1/withruntime/_async_products/network.py +0 -42
  214. withruntime-0.44.1/withruntime/_async_products/network_products.py +0 -207
  215. withruntime-0.44.1/withruntime/_async_products/observability.py +0 -134
  216. withruntime-0.44.1/withruntime/_async_products/plans.py +0 -76
  217. withruntime-0.44.1/withruntime/_async_products/previews.py +0 -64
  218. withruntime-0.44.1/withruntime/_async_products/private_network.py +0 -31
  219. withruntime-0.44.1/withruntime/_async_products/referrals.py +0 -22
  220. withruntime-0.44.1/withruntime/_async_products/reservations.py +0 -107
  221. withruntime-0.44.1/withruntime/_async_products/secrets.py +0 -422
  222. withruntime-0.44.1/withruntime/_async_products/signed_requests.py +0 -30
  223. withruntime-0.44.1/withruntime/_async_products/sso.py +0 -20
  224. withruntime-0.44.1/withruntime/_async_products/switching.py +0 -38
  225. withruntime-0.44.1/withruntime/_async_products/tailscale.py +0 -37
  226. withruntime-0.44.1/withruntime/_async_products/volumes.py +0 -120
  227. withruntime-0.44.1/withruntime/_async_products/watch.py +0 -112
  228. withruntime-0.44.1/withruntime/_clock.py +0 -155
  229. withruntime-0.44.1/withruntime/_compat.py +0 -127
  230. withruntime-0.44.1/withruntime/_compat_lease.py +0 -45
  231. withruntime-0.44.1/withruntime/_compat_lifecycle.py +0 -24
  232. withruntime-0.44.1/withruntime/_compat_shell.py +0 -166
  233. withruntime-0.44.1/withruntime/_connection.py +0 -56
  234. withruntime-0.44.1/withruntime/_errors.py +0 -161
  235. withruntime-0.44.1/withruntime/_eval_sandbox.py +0 -380
  236. withruntime-0.44.1/withruntime/_http.py +0 -728
  237. withruntime-0.44.1/withruntime/_proxy.py +0 -189
  238. withruntime-0.44.1/withruntime/_renamed.py +0 -51
  239. withruntime-0.44.1/withruntime/_request_scope.py +0 -92
  240. withruntime-0.44.1/withruntime/_sync_client.py +0 -2239
  241. withruntime-0.44.1/withruntime/_sync_products/__init__.py +0 -70
  242. withruntime-0.44.1/withruntime/_sync_products/agents.py +0 -801
  243. withruntime-0.44.1/withruntime/_sync_products/apps.py +0 -516
  244. withruntime-0.44.1/withruntime/_sync_products/audit.py +0 -27
  245. withruntime-0.44.1/withruntime/_sync_products/billing.py +0 -73
  246. withruntime-0.44.1/withruntime/_sync_products/browser.py +0 -55
  247. withruntime-0.44.1/withruntime/_sync_products/browsers.py +0 -116
  248. withruntime-0.44.1/withruntime/_sync_products/builds.py +0 -265
  249. withruntime-0.44.1/withruntime/_sync_products/ci.py +0 -229
  250. withruntime-0.44.1/withruntime/_sync_products/containers.py +0 -126
  251. withruntime-0.44.1/withruntime/_sync_products/desktop.py +0 -160
  252. withruntime-0.44.1/withruntime/_sync_products/images.py +0 -392
  253. withruntime-0.44.1/withruntime/_sync_products/interpreter.py +0 -117
  254. withruntime-0.44.1/withruntime/_sync_products/jobs.py +0 -348
  255. withruntime-0.44.1/withruntime/_sync_products/limits.py +0 -33
  256. withruntime-0.44.1/withruntime/_sync_products/mcp.py +0 -69
  257. withruntime-0.44.1/withruntime/_sync_products/mounts.py +0 -40
  258. withruntime-0.44.1/withruntime/_sync_products/network.py +0 -43
  259. withruntime-0.44.1/withruntime/_sync_products/network_products.py +0 -208
  260. withruntime-0.44.1/withruntime/_sync_products/observability.py +0 -135
  261. withruntime-0.44.1/withruntime/_sync_products/plans.py +0 -77
  262. withruntime-0.44.1/withruntime/_sync_products/previews.py +0 -65
  263. withruntime-0.44.1/withruntime/_sync_products/private_network.py +0 -21
  264. withruntime-0.44.1/withruntime/_sync_products/referrals.py +0 -23
  265. withruntime-0.44.1/withruntime/_sync_products/reservations.py +0 -108
  266. withruntime-0.44.1/withruntime/_sync_products/secrets.py +0 -423
  267. withruntime-0.44.1/withruntime/_sync_products/signed_requests.py +0 -21
  268. withruntime-0.44.1/withruntime/_sync_products/sso.py +0 -21
  269. withruntime-0.44.1/withruntime/_sync_products/switching.py +0 -39
  270. withruntime-0.44.1/withruntime/_sync_products/tailscale.py +0 -38
  271. withruntime-0.44.1/withruntime/_sync_products/volumes.py +0 -121
  272. withruntime-0.44.1/withruntime/_sync_products/watch.py +0 -113
  273. withruntime-0.44.1/withruntime/_trace.py +0 -32
  274. withruntime-0.44.1/withruntime/_tunnel.py +0 -330
  275. withruntime-0.44.1/withruntime/_unpack.py +0 -355
  276. withruntime-0.44.1/withruntime/_version.py +0 -1
  277. withruntime-0.44.1/withruntime/_ws.py +0 -403
  278. withruntime-0.44.1/withruntime/blaxel/__init__.py +0 -186
  279. withruntime-0.44.1/withruntime/blaxel/_async_io.py +0 -56
  280. withruntime-0.44.1/withruntime/blaxel/_async_sandbox.py +0 -1878
  281. withruntime-0.44.1/withruntime/blaxel/_core.py +0 -1945
  282. withruntime-0.44.1/withruntime/blaxel/_sync_io.py +0 -70
  283. withruntime-0.44.1/withruntime/blaxel/_sync_sandbox.py +0 -1876
  284. withruntime-0.44.1/withruntime/blaxel/core/__init__.py +0 -4
  285. withruntime-0.44.1/withruntime/blaxel/core/agents.py +0 -3
  286. withruntime-0.44.1/withruntime/blaxel/core/client/__init__.py +0 -3
  287. withruntime-0.44.1/withruntime/blaxel/core/client/api/__init__.py +0 -2
  288. withruntime-0.44.1/withruntime/blaxel/core/client/api/applications/__init__.py +0 -2
  289. withruntime-0.44.1/withruntime/blaxel/core/client/api/applications/list_application_revisions.py +0 -5
  290. withruntime-0.44.1/withruntime/blaxel/core/client/api/compute/__init__.py +0 -2
  291. withruntime-0.44.1/withruntime/blaxel/core/client/api/compute/get_sandbox.py +0 -5
  292. withruntime-0.44.1/withruntime/blaxel/core/client/api/compute/update_sandbox.py +0 -5
  293. withruntime-0.44.1/withruntime/blaxel/core/client/api/functions/__init__.py +0 -2
  294. withruntime-0.44.1/withruntime/blaxel/core/client/api/functions/create_function.py +0 -5
  295. withruntime-0.44.1/withruntime/blaxel/core/client/api/images.py +0 -6
  296. withruntime-0.44.1/withruntime/blaxel/core/client/api/workspaces.py +0 -6
  297. withruntime-0.44.1/withruntime/blaxel/core/client/client.py +0 -3
  298. withruntime-0.44.1/withruntime/blaxel/core/client/models/__init__.py +0 -17
  299. withruntime-0.44.1/withruntime/blaxel/core/client/models/create_job_execution_request.py +0 -3
  300. withruntime-0.44.1/withruntime/blaxel/core/client/models/create_job_execution_request_env.py +0 -3
  301. withruntime-0.44.1/withruntime/blaxel/core/client/models/env.py +0 -3
  302. withruntime-0.44.1/withruntime/blaxel/core/client/models/function.py +0 -3
  303. withruntime-0.44.1/withruntime/blaxel/core/client/models/function_runtime.py +0 -3
  304. withruntime-0.44.1/withruntime/blaxel/core/client/models/function_spec.py +0 -3
  305. withruntime-0.44.1/withruntime/blaxel/core/client/models/metadata.py +0 -3
  306. withruntime-0.44.1/withruntime/blaxel/core/client/models/pagination_meta.py +0 -2
  307. withruntime-0.44.1/withruntime/blaxel/core/client/models/workspace.py +0 -3
  308. withruntime-0.44.1/withruntime/blaxel/core/client/pagination.py +0 -2
  309. withruntime-0.44.1/withruntime/blaxel/core/client/types.py +0 -3
  310. withruntime-0.44.1/withruntime/blaxel/core/common.py +0 -5
  311. withruntime-0.44.1/withruntime/blaxel/core/drive.py +0 -3
  312. withruntime-0.44.1/withruntime/blaxel/core/errors.py +0 -16
  313. withruntime-0.44.1/withruntime/blaxel/core/jobs.py +0 -6
  314. withruntime-0.44.1/withruntime/blaxel/core/sandbox/__init__.py +0 -14
  315. withruntime-0.44.1/withruntime/blaxel/core/sandbox/types.py +0 -7
  316. withruntime-0.44.1/withruntime/blaxel/core/secret.py +0 -5
  317. withruntime-0.44.1/withruntime/blaxel/crewai.py +0 -3
  318. withruntime-0.44.1/withruntime/blaxel/googleadk.py +0 -3
  319. withruntime-0.44.1/withruntime/blaxel/langgraph.py +0 -3
  320. withruntime-0.44.1/withruntime/blaxel/livekit.py +0 -3
  321. withruntime-0.44.1/withruntime/blaxel/llamaindex.py +0 -3
  322. withruntime-0.44.1/withruntime/blaxel/openai.py +0 -3
  323. withruntime-0.44.1/withruntime/blaxel/pydantic.py +0 -3
  324. withruntime-0.44.1/withruntime/blaxel/telemetry.py +0 -2
  325. withruntime-0.44.1/withruntime/daytona/__init__.py +0 -83
  326. withruntime-0.44.1/withruntime/daytona/_async_daytona.py +0 -1529
  327. withruntime-0.44.1/withruntime/daytona/_async_io.py +0 -127
  328. withruntime-0.44.1/withruntime/daytona/_core.py +0 -1422
  329. withruntime-0.44.1/withruntime/daytona/_sync_daytona.py +0 -1527
  330. withruntime-0.44.1/withruntime/daytona/_sync_io.py +0 -150
  331. withruntime-0.44.1/withruntime/deepagents.py +0 -140
  332. withruntime-0.44.1/withruntime/e2b/__init__.py +0 -188
  333. withruntime-0.44.1/withruntime/e2b/_async_io.py +0 -354
  334. withruntime-0.44.1/withruntime/e2b/_async_sandbox.py +0 -1083
  335. withruntime-0.44.1/withruntime/e2b/_core.py +0 -1066
  336. withruntime-0.44.1/withruntime/e2b/_sync_io.py +0 -291
  337. withruntime-0.44.1/withruntime/e2b/_sync_sandbox.py +0 -1061
  338. withruntime-0.44.1/withruntime/e2b/code_interpreter/__init__.py +0 -28
  339. withruntime-0.44.1/withruntime/e2b/code_interpreter/_async_ci.py +0 -124
  340. withruntime-0.44.1/withruntime/e2b/code_interpreter/_models.py +0 -156
  341. withruntime-0.44.1/withruntime/e2b/code_interpreter/_sync_ci.py +0 -123
  342. withruntime-0.44.1/withruntime/e2b/code_interpreter/charts.py +0 -120
  343. withruntime-0.44.1/withruntime/e2b/code_interpreter/code_interpreter_async.py +0 -2
  344. withruntime-0.44.1/withruntime/e2b/code_interpreter/code_interpreter_sync.py +0 -2
  345. withruntime-0.44.1/withruntime/e2b/code_interpreter/models.py +0 -37
  346. withruntime-0.44.1/withruntime/e2b/connection_config.py +0 -2
  347. withruntime-0.44.1/withruntime/e2b/exceptions.py +0 -34
  348. withruntime-0.44.1/withruntime/e2b/sandbox/__init__.py +0 -1
  349. withruntime-0.44.1/withruntime/e2b/sandbox/commands/__init__.py +0 -2
  350. withruntime-0.44.1/withruntime/e2b/sandbox/commands/command_handle.py +0 -5
  351. withruntime-0.44.1/withruntime/e2b/sandbox/commands/main.py +0 -2
  352. withruntime-0.44.1/withruntime/e2b/sandbox/filesystem/__init__.py +0 -2
  353. withruntime-0.44.1/withruntime/e2b/sandbox/filesystem/filesystem.py +0 -4
  354. withruntime-0.44.1/withruntime/e2b/sandbox/filesystem/watch_handle.py +0 -2
  355. withruntime-0.44.1/withruntime/e2b/sandbox/network.py +0 -2
  356. withruntime-0.44.1/withruntime/e2b/sandbox/sandbox_api.py +0 -2
  357. withruntime-0.44.1/withruntime/e2b/sandbox/signature.py +0 -2
  358. withruntime-0.44.1/withruntime/e2b/sandbox_async/__init__.py +0 -2
  359. withruntime-0.44.1/withruntime/e2b/sandbox_async/commands/__init__.py +0 -4
  360. withruntime-0.44.1/withruntime/e2b/sandbox_async/commands/command.py +0 -2
  361. withruntime-0.44.1/withruntime/e2b/sandbox_async/commands/command_handle.py +0 -6
  362. withruntime-0.44.1/withruntime/e2b/sandbox_async/commands/pty.py +0 -3
  363. withruntime-0.44.1/withruntime/e2b/sandbox_async/filesystem/__init__.py +0 -2
  364. withruntime-0.44.1/withruntime/e2b/sandbox_async/filesystem/filesystem.py +0 -4
  365. withruntime-0.44.1/withruntime/e2b/sandbox_async/filesystem/watch_handle.py +0 -2
  366. withruntime-0.44.1/withruntime/e2b/sandbox_async/main.py +0 -2
  367. withruntime-0.44.1/withruntime/e2b/sandbox_async/paginator.py +0 -2
  368. withruntime-0.44.1/withruntime/e2b/sandbox_async/utils.py +0 -2
  369. withruntime-0.44.1/withruntime/e2b/sandbox_sync/__init__.py +0 -2
  370. withruntime-0.44.1/withruntime/e2b/sandbox_sync/commands/__init__.py +0 -4
  371. withruntime-0.44.1/withruntime/e2b/sandbox_sync/commands/command.py +0 -2
  372. withruntime-0.44.1/withruntime/e2b/sandbox_sync/commands/command_handle.py +0 -6
  373. withruntime-0.44.1/withruntime/e2b/sandbox_sync/commands/pty.py +0 -3
  374. withruntime-0.44.1/withruntime/e2b/sandbox_sync/filesystem/__init__.py +0 -2
  375. withruntime-0.44.1/withruntime/e2b/sandbox_sync/filesystem/filesystem.py +0 -4
  376. withruntime-0.44.1/withruntime/e2b/sandbox_sync/filesystem/watch_handle.py +0 -2
  377. withruntime-0.44.1/withruntime/e2b/sandbox_sync/git.py +0 -2
  378. withruntime-0.44.1/withruntime/e2b/sandbox_sync/main.py +0 -2
  379. withruntime-0.44.1/withruntime/e2b/sandbox_sync/paginator.py +0 -2
  380. withruntime-0.44.1/withruntime/e2b/secret/__init__.py +0 -2
  381. withruntime-0.44.1/withruntime/e2b/template/__init__.py +0 -1
  382. withruntime-0.44.1/withruntime/e2b/template/dockerfile_parser.py +0 -2
  383. withruntime-0.44.1/withruntime/e2b/template/logger.py +0 -2
  384. withruntime-0.44.1/withruntime/e2b/template/main.py +0 -2
  385. withruntime-0.44.1/withruntime/e2b/template/readycmd.py +0 -2
  386. withruntime-0.44.1/withruntime/e2b/template/types.py +0 -2
  387. withruntime-0.44.1/withruntime/e2b/template_async/__init__.py +0 -1
  388. withruntime-0.44.1/withruntime/e2b/template_async/main.py +0 -2
  389. withruntime-0.44.1/withruntime/e2b/template_sync/__init__.py +0 -1
  390. withruntime-0.44.1/withruntime/e2b/template_sync/main.py +0 -2
  391. withruntime-0.44.1/withruntime/e2b/volume/__init__.py +0 -1
  392. withruntime-0.44.1/withruntime/e2b/volume/connection_config.py +0 -2
  393. withruntime-0.44.1/withruntime/e2b/volume/types.py +0 -2
  394. withruntime-0.44.1/withruntime/e2b/volume/volume_async.py +0 -2
  395. withruntime-0.44.1/withruntime/e2b/volume/volume_sync.py +0 -2
  396. withruntime-0.44.1/withruntime/harbor.py +0 -277
  397. withruntime-0.44.1/withruntime/inspect_ai.py +0 -463
  398. withruntime-0.44.1/withruntime/modal/__init__.py +0 -818
  399. withruntime-0.44.1/withruntime/modal/__main__.py +0 -35
  400. withruntime-0.44.1/withruntime/modal/_async.py +0 -413
  401. withruntime-0.44.1/withruntime/modal/_dual.py +0 -53
  402. withruntime-0.44.1/withruntime/modal/_fs_async.py +0 -118
  403. withruntime-0.44.1/withruntime/modal/_fs_common.py +0 -49
  404. withruntime-0.44.1/withruntime/modal/_fs_sync.py +0 -118
  405. withruntime-0.44.1/withruntime/modal/_functions.py +0 -331
  406. withruntime-0.44.1/withruntime/modal/_job_runner.py +0 -20
  407. withruntime-0.44.1/withruntime/modal/_lookup.py +0 -18
  408. withruntime-0.44.1/withruntime/modal/_object.py +0 -55
  409. withruntime-0.44.1/withruntime/modal/_probe.py +0 -60
  410. withruntime-0.44.1/withruntime/modal/_snapshot.py +0 -33
  411. withruntime-0.44.1/withruntime/modal/_tunnel.py +0 -31
  412. withruntime-0.44.1/withruntime/modal/app.py +0 -114
  413. withruntime-0.44.1/withruntime/modal/cloud_bucket_mount.py +0 -67
  414. withruntime-0.44.1/withruntime/modal/container_process.py +0 -4
  415. withruntime-0.44.1/withruntime/modal/exception.py +0 -136
  416. withruntime-0.44.1/withruntime/modal/file_pattern_matcher.py +0 -122
  417. withruntime-0.44.1/withruntime/modal/image.py +0 -734
  418. withruntime-0.44.1/withruntime/modal/io_streams.py +0 -4
  419. withruntime-0.44.1/withruntime/modal/output.py +0 -28
  420. withruntime-0.44.1/withruntime/modal/proxy.py +0 -29
  421. withruntime-0.44.1/withruntime/modal/sandbox/__init__.py +0 -5
  422. withruntime-0.44.1/withruntime/modal/sandbox/sandbox.py +0 -8
  423. withruntime-0.44.1/withruntime/modal/sandbox_fs.py +0 -46
  424. withruntime-0.44.1/withruntime/modal/secret.py +0 -115
  425. withruntime-0.44.1/withruntime/modal/snapshot.py +0 -39
  426. withruntime-0.44.1/withruntime/modal/stream_type.py +0 -22
  427. withruntime-0.44.1/withruntime/modal/types.py +0 -37
  428. withruntime-0.44.1/withruntime/modal/volume.py +0 -128
  429. withruntime-0.44.1/withruntime/morph/__init__.py +0 -8
  430. withruntime-0.44.1/withruntime/morph/api.py +0 -1440
  431. withruntime-0.44.1/withruntime/openai_agents.py +0 -847
  432. withruntime-0.44.1/withruntime/prime/__init__.py +0 -134
  433. withruntime-0.44.1/withruntime/prime/_async.py +0 -596
  434. withruntime-0.44.1/withruntime/prime/_sync.py +0 -596
  435. withruntime-0.44.1/withruntime/prime/core/__init__.py +0 -4
  436. withruntime-0.44.1/withruntime/prime/core/client.py +0 -4
  437. withruntime-0.44.1/withruntime/prime/exceptions.py +0 -98
  438. withruntime-0.44.1/withruntime/prime/models.py +0 -415
  439. withruntime-0.44.1/withruntime/prime/process.py +0 -163
  440. withruntime-0.44.1/withruntime/prime/sandbox.py +0 -3
  441. withruntime-0.44.1/withruntime/py.typed +0 -0
  442. withruntime-0.44.1/withruntime/runloop/__init__.py +0 -6
  443. withruntime-0.44.1/withruntime/runloop/_async.py +0 -688
  444. withruntime-0.44.1/withruntime/runloop/_exceptions.py +0 -2
  445. withruntime-0.44.1/withruntime/runloop/_snapshots.py +0 -48
  446. withruntime-0.44.1/withruntime/runloop/_sync.py +0 -688
  447. withruntime-0.44.1/withruntime/runloop/_v2.py +0 -35
  448. withruntime-0.44.1/withruntime/runloop/lib/__init__.py +0 -1
  449. withruntime-0.44.1/withruntime/runloop/lib/polling.py +0 -15
  450. withruntime-0.44.1/withruntime/runloop/sdk/__init__.py +0 -3
  451. withruntime-0.44.1/withruntime/sprites/__init__.py +0 -494
  452. withruntime-0.44.1/withruntime/sprites/_capture.py +0 -56
  453. withruntime-0.44.1/withruntime/sprites/_capture_async.py +0 -56
  454. withruntime-0.44.1/withruntime/sprites/_features.py +0 -194
  455. withruntime-0.44.1/withruntime/sprites/_metadata.py +0 -64
  456. withruntime-0.44.1/withruntime/sprites/_stream.py +0 -68
  457. withruntime-0.44.1/withruntime/sprites/_stream_async.py +0 -67
  458. withruntime-0.44.1/withruntime/sprites/_translate.py +0 -117
  459. withruntime-0.44.1/withruntime/sprites/async_client.py +0 -340
  460. withruntime-0.44.1/withruntime/sprites/async_exec.py +0 -50
  461. withruntime-0.44.1/withruntime/sprites/client.py +0 -2
  462. withruntime-0.44.1/withruntime/sprites/control.py +0 -65
  463. withruntime-0.44.1/withruntime/sprites/exceptions.py +0 -80
  464. withruntime-0.44.1/withruntime/sprites/exec.py +0 -80
  465. withruntime-0.44.1/withruntime/sprites/filesystem.py +0 -2
  466. withruntime-0.44.1/withruntime/sprites/sprite.py +0 -2
  467. withruntime-0.44.1/withruntime/sprites/types.py +0 -187
  468. withruntime-0.44.1/withruntime/tools.py +0 -202
  469. withruntime-0.44.1/withruntime/vercel/__init__.py +0 -12
  470. withruntime-0.44.1/withruntime/vercel/_async_io.py +0 -65
  471. withruntime-0.44.1/withruntime/vercel/_async_sandbox.py +0 -1029
  472. withruntime-0.44.1/withruntime/vercel/_core.py +0 -592
  473. withruntime-0.44.1/withruntime/vercel/_sync_io.py +0 -61
  474. withruntime-0.44.1/withruntime/vercel/_sync_sandbox.py +0 -1027
  475. withruntime-0.44.1/withruntime/vercel/api.py +0 -32
  476. withruntime-0.44.1/withruntime/vercel/sandbox/__init__.py +0 -50
  477. withruntime-0.44.1/withruntime/vercel/sandbox/sync.py +0 -36
  478. withruntime-0.44.1/withruntime/wallet.py +0 -72
  479. withruntime-0.44.1/withruntime/webhooks.py +0 -56
  480. withruntime-0.44.1/withruntime.egg-info/PKG-INFO +0 -352
  481. withruntime-0.44.1/withruntime.egg-info/SOURCES.txt +0 -439
  482. withruntime-0.44.1/withruntime.egg-info/entry_points.txt +0 -2
  483. withruntime-0.44.1/withruntime.egg-info/requires.txt +0 -18
  484. {withruntime-0.44.1 → withruntime-1.0.0}/LICENSE +0 -0
  485. {withruntime-0.44.1 → withruntime-1.0.0}/setup.cfg +0 -0
  486. {withruntime-0.44.1 → withruntime-1.0.0}/withruntime.egg-info/dependency_links.txt +0 -0
  487. {withruntime-0.44.1 → withruntime-1.0.0}/withruntime.egg-info/top_level.txt +0 -0
@@ -0,0 +1,11 @@
1
+ Metadata-Version: 2.4
2
+ Name: withruntime
3
+ Version: 1.0.0
4
+ Summary: Runtime Cloud: Linux sandboxes for agents. The typed client for every verb of the API.
5
+ License: Apache-2.0
6
+ Requires-Python: >=3.9
7
+ License-File: LICENSE
8
+ Requires-Dist: httpx<1,>=0.27
9
+ Provides-Extra: keypair
10
+ Requires-Dist: cryptography>=42; extra == "keypair"
11
+ Dynamic: license-file
@@ -0,0 +1,18 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "withruntime"
7
+ version = "1.0.0"
8
+ description = "Runtime Cloud: Linux sandboxes for agents. The typed client for every verb of the API."
9
+ license = { text = "Apache-2.0" }
10
+ requires-python = ">=3.9"
11
+ dependencies = ["httpx>=0.27,<1"]
12
+
13
+ [project.optional-dependencies]
14
+ keypair = ["cryptography>=42"]
15
+
16
+ [tool.setuptools.packages.find]
17
+ where = ["."]
18
+ include = ["withruntime*"]
@@ -0,0 +1,5 @@
1
+ """Runtime Cloud: Runtime() and AsyncRuntime(), a sandbox handle, every verb of the API typed."""
2
+
3
+ from ._version import VERSION as __version__
4
+ from .generated import * # noqa: F401,F403
5
+ from .generated import __all__ # noqa: F401
@@ -0,0 +1 @@
1
+ VERSION = "1.0.0"
@@ -0,0 +1,205 @@
1
+ # Generated by spec-gen from engines/front/crates/spec. Do not edit:
2
+ # change the spec and run `cargo run -p runtime-front-spec-gen -- write`.
3
+
4
+ """Runtime: every product's client over one transport. ``Runtime()`` reads
5
+ RUNTIME_API_KEY; ``runtime.sandboxes.create()`` is a sandbox to work in.
6
+ ``AsyncRuntime()`` is the same for asyncio."""
7
+
8
+ from __future__ import annotations
9
+
10
+ from typing import Any, Dict, List, Optional, Union
11
+
12
+ from ._runtime import (API_VERSION, MAX_RETRIES, AsyncPage, AsyncStream, AsyncTransport, Page, RuntimeApiError, Stream,
13
+ Transport, route_call, routes_of)
14
+ from ._runtime import InvalidRequestError, UnauthorizedError, PaymentRequiredError, ForbiddenError, LimitExceededError, NotFoundError, AlreadyExistsError, ConflictError, TooLargeError, RateLimitedError, InternalError, ApiNotImplementedError, UnavailableError, CapacityUnavailableError, ApiTimeoutError
15
+ from ._routes import ROUTES
16
+ from .sandboxes import MachineStart, VolumeMount, SandboxRun, NetworkRules, SandboxSettings, SandboxCreate, MachineReady, SandboxInfo, Terminal, ExecRequest, Process, FileWritten, OutputChunk, ProcessOutput, ProcessInput, ProcessWritten, ProcessSignal, ProcessList, FileRemove, FileRemoved, FileInfo, FileList, FolderUnpacked, FolderUploadBegin, FolderUpload, FolderUploadReceived, FolderUploadAborted, FileMkdir, FileMade, FileRename, FileRenamed, FileLinkCreate, FileLink, FileLinksRevoked, SandboxNetwork, MetricPoint, MetricsBase, SandboxMetrics, ForkRequest, Forked, SnapshotRequest, Stored, MachineUpdate, Action, ActRequest, Point, ScreenSize, Acted, RunCode, CodeResult, CodeError, CodeRun, Sandboxes, Sandbox, AsyncSandboxes, AsyncSandbox
17
+ from .functions import Functions, FunctionMachine, AsyncFunctions, AsyncFunctionMachine
18
+ from .secrets import SecretScope, SecretRule, SecretGit, SecretGraphql, SecretApi, SecretPolicies, SecretSettings, SecretInfo, SecretSet, Secrets, Secret, AsyncSecrets, AsyncSecret
19
+ from .apps import Apps, App, AsyncApps, AsyncApp
20
+ from .sites import Sites, Site, AsyncSites, AsyncSite
21
+ from .ci import Ci, CiMachine, AsyncCi, AsyncCiMachine
22
+ from .browsers import Browsers, Browser, AsyncBrowsers, AsyncBrowser
23
+ from .desktops import Desktops, Desktop, AsyncDesktops, AsyncDesktop
24
+ from .notebooks import Notebooks, Notebook, AsyncNotebooks, AsyncNotebook
25
+ from .workspaces import Workspaces, Workspace, AsyncWorkspaces, AsyncWorkspace
26
+ from .containers import Containers, Container, AsyncContainers, AsyncContainer
27
+ from .builds import Builds, Build, AsyncBuilds, AsyncBuild
28
+ from .jobs import JobSchedule, JobRetry, JobSecrets, JobSettings, JobCreate, JobError, JobInfo, Jobs, Job, AsyncJobs, AsyncJob
29
+ from .job_runs import JobRun, JobRunOutput, JobRuns, AsyncJobRuns
30
+ from .snapshots import Snapshots, AsyncSnapshots
31
+ from .images import ContextAsked, ContextMissing, ChunkStored, ImageFile, ImageRecipe, ImageArchive, ImageContextFile, ImageContext, ImageBuild, ImageCreate, ImageLogLine, ImageLogs, Images, Image, AsyncImages, AsyncImage
32
+ from .volumes import VolumeCreate, Volumes, AsyncVolumes
33
+ from .sessions import SessionCreate, Session, SessionCreated, Sessions, AsyncSessions
34
+ from .keys import Key, KeyAuthorization, KeyCreate, KeyCreated, KeyUpdate, Keys, AsyncKeys
35
+ from .projects import Project, ProjectCreate, Rename, Projects, AsyncProjects
36
+ from .identities import Identity, Identities, AsyncIdentities
37
+ from .roles import Role, Roles, AsyncRoles
38
+ from .audit import AuditLine, Audit, AsyncAudit
39
+ from .me import Me, MeClient, AsyncMeClient
40
+ from .usage import MeterUse, Limit, KeyUsage, KeySpendCap, Usage, UsageLine, UsageExport, UsageClient, AsyncUsageClient
41
+ from .previews import PreviewCreate, PreviewInfo, Previews, Preview, AsyncPreviews, AsyncPreview
42
+ from .domains import DomainCreate, DomainSettings, DomainInfo, Domains, Domain, AsyncDomains, AsyncDomain
43
+ from .ports import PortCreate, PortSettings, Port, Ports, AsyncPorts
44
+ from .egress_ips import EgressIpSettings, EgressIp, EgressIps, AsyncEgressIps
45
+ from .tunnels import TunnelPeer, TunnelMember, TunnelSettings, Tunnel, Tunnels, AsyncTunnels
46
+ from .networks import NetworkSettings, Network, Networks, AsyncNetworks
47
+ from .webhooks import WebhookCreate, Webhook, Webhooks, AsyncWebhooks
48
+ from .events import Event, Events, AsyncEvents
49
+ from .otel import ExportCreate, Export, Otel, AsyncOtel
50
+ from .feedback import FeedbackCreate, Feedback, FeedbackClient, AsyncFeedbackClient
51
+
52
+
53
+ class Runtime:
54
+ """Every product's client over one transport."""
55
+
56
+ def __init__(self, api_key: Optional[str] = None, base_url: Optional[str] = None, max_retries: int = MAX_RETRIES, project: Optional[str] = None) -> None:
57
+ self.transport = Transport(api_key=api_key, base_url=base_url, max_retries=max_retries, project=project)
58
+ self.sandboxes = Sandboxes(self.transport)
59
+ self.functions = Functions(self.transport)
60
+ self.secrets = Secrets(self.transport)
61
+ self.apps = Apps(self.transport)
62
+ self.sites = Sites(self.transport)
63
+ self.ci = Ci(self.transport)
64
+ self.browsers = Browsers(self.transport)
65
+ self.desktops = Desktops(self.transport)
66
+ self.notebooks = Notebooks(self.transport)
67
+ self.workspaces = Workspaces(self.transport)
68
+ self.containers = Containers(self.transport)
69
+ self.builds = Builds(self.transport)
70
+ self.jobs = Jobs(self.transport)
71
+ self.job_runs = JobRuns(self.transport)
72
+ self.snapshots = Snapshots(self.transport)
73
+ self.images = Images(self.transport)
74
+ self.volumes = Volumes(self.transport)
75
+ self.sessions = Sessions(self.transport)
76
+ self.keys = Keys(self.transport)
77
+ self.projects = Projects(self.transport)
78
+ self.identities = Identities(self.transport)
79
+ self.roles = Roles(self.transport)
80
+ self.audit = Audit(self.transport)
81
+ self.me = MeClient(self.transport)
82
+ self.usage = UsageClient(self.transport)
83
+ self.previews = Previews(self.transport)
84
+ self.domains = Domains(self.transport)
85
+ self.ports = Ports(self.transport)
86
+ self.egress_ips = EgressIps(self.transport)
87
+ self.tunnels = Tunnels(self.transport)
88
+ self.networks = Networks(self.transport)
89
+ self.webhooks = Webhooks(self.transport)
90
+ self.events = Events(self.transport)
91
+ self.otel = Otel(self.transport)
92
+ self.feedback = FeedbackClient(self.transport)
93
+ self._served: Optional[Dict[str, Dict[str, Any]]] = None
94
+
95
+ def close(self) -> None:
96
+ self.transport.close()
97
+
98
+ def __enter__(self) -> "Runtime":
99
+ return self
100
+
101
+ def __exit__(self, *exc: Any) -> None:
102
+ self.close()
103
+
104
+ def call(self, name: str, args: Optional[Dict[str, Any]] = None, idempotency_key: Optional[str] = None) -> Any:
105
+ """Calls any verb by its name, `product.verb` (`sandboxes.create`), with
106
+ its arguments by name: its path's parts, its query's fields and its
107
+ body's. A verb newer than this SDK is found in the API's own served
108
+ description, so it is callable before the SDK is updated."""
109
+ route = ROUTES.get(name)
110
+ if route is None:
111
+ if self._served is None:
112
+ self._served = routes_of(self.transport.request("GET", "/v2/openapi.json", idempotent=True))
113
+ route = self._served.get(name)
114
+ if route is None:
115
+ raise TypeError(f"No verb {name}: GET /v2/openapi.json names each.")
116
+ path, how = route_call(route, args or {})
117
+ return self.transport.request(route["method"], path, idempotency_key=idempotency_key, **how)
118
+
119
+ def run(self, *, cmd: Union[str, List[str]], image: Optional[str] = None, vcpu: Optional[int] = None, memory_gb: Optional[float] = None, cwd: Optional[str] = None, env: Optional[Dict[str, str]] = None, stdin: Optional[str] = None, timeout_seconds: Optional[float] = None) -> Any:
120
+ """Runs a command in a new sandbox and deletes the sandbox after, whether the command succeeded or not. Returns the command's result."""
121
+ a0 = self.call("sandboxes.create", {"image": image, "vcpu": vcpu, "memoryGB": memory_gb})
122
+ try:
123
+ a1 = self.call("sandboxes.exec", {"id": a0["id"], "cmd": cmd, "cwd": cwd, "env": env, "stdin": stdin, "timeoutSeconds": timeout_seconds})
124
+ return a1
125
+ finally:
126
+ self.call("sandboxes.delete", {"id": a0["id"]})
127
+
128
+
129
+ class AsyncRuntime:
130
+ """Every product's client over one transport."""
131
+
132
+ def __init__(self, api_key: Optional[str] = None, base_url: Optional[str] = None, max_retries: int = MAX_RETRIES, project: Optional[str] = None) -> None:
133
+ self.transport = AsyncTransport(api_key=api_key, base_url=base_url, max_retries=max_retries, project=project)
134
+ self.sandboxes = AsyncSandboxes(self.transport)
135
+ self.functions = AsyncFunctions(self.transport)
136
+ self.secrets = AsyncSecrets(self.transport)
137
+ self.apps = AsyncApps(self.transport)
138
+ self.sites = AsyncSites(self.transport)
139
+ self.ci = AsyncCi(self.transport)
140
+ self.browsers = AsyncBrowsers(self.transport)
141
+ self.desktops = AsyncDesktops(self.transport)
142
+ self.notebooks = AsyncNotebooks(self.transport)
143
+ self.workspaces = AsyncWorkspaces(self.transport)
144
+ self.containers = AsyncContainers(self.transport)
145
+ self.builds = AsyncBuilds(self.transport)
146
+ self.jobs = AsyncJobs(self.transport)
147
+ self.job_runs = AsyncJobRuns(self.transport)
148
+ self.snapshots = AsyncSnapshots(self.transport)
149
+ self.images = AsyncImages(self.transport)
150
+ self.volumes = AsyncVolumes(self.transport)
151
+ self.sessions = AsyncSessions(self.transport)
152
+ self.keys = AsyncKeys(self.transport)
153
+ self.projects = AsyncProjects(self.transport)
154
+ self.identities = AsyncIdentities(self.transport)
155
+ self.roles = AsyncRoles(self.transport)
156
+ self.audit = AsyncAudit(self.transport)
157
+ self.me = AsyncMeClient(self.transport)
158
+ self.usage = AsyncUsageClient(self.transport)
159
+ self.previews = AsyncPreviews(self.transport)
160
+ self.domains = AsyncDomains(self.transport)
161
+ self.ports = AsyncPorts(self.transport)
162
+ self.egress_ips = AsyncEgressIps(self.transport)
163
+ self.tunnels = AsyncTunnels(self.transport)
164
+ self.networks = AsyncNetworks(self.transport)
165
+ self.webhooks = AsyncWebhooks(self.transport)
166
+ self.events = AsyncEvents(self.transport)
167
+ self.otel = AsyncOtel(self.transport)
168
+ self.feedback = AsyncFeedbackClient(self.transport)
169
+ self._served: Optional[Dict[str, Dict[str, Any]]] = None
170
+
171
+ async def close(self) -> None:
172
+ await self.transport.close()
173
+
174
+ async def __aenter__(self) -> "AsyncRuntime":
175
+ return self
176
+
177
+ async def __aexit__(self, *exc: Any) -> None:
178
+ await self.close()
179
+
180
+ async def call(self, name: str, args: Optional[Dict[str, Any]] = None, idempotency_key: Optional[str] = None) -> Any:
181
+ """Calls any verb by its name, `product.verb` (`sandboxes.create`), with
182
+ its arguments by name: its path's parts, its query's fields and its
183
+ body's. A verb newer than this SDK is found in the API's own served
184
+ description, so it is callable before the SDK is updated."""
185
+ route = ROUTES.get(name)
186
+ if route is None:
187
+ if self._served is None:
188
+ self._served = routes_of(await self.transport.request("GET", "/v2/openapi.json", idempotent=True))
189
+ route = self._served.get(name)
190
+ if route is None:
191
+ raise TypeError(f"No verb {name}: GET /v2/openapi.json names each.")
192
+ path, how = route_call(route, args or {})
193
+ return await self.transport.request(route["method"], path, idempotency_key=idempotency_key, **how)
194
+
195
+ async def run(self, *, cmd: Union[str, List[str]], image: Optional[str] = None, vcpu: Optional[int] = None, memory_gb: Optional[float] = None, cwd: Optional[str] = None, env: Optional[Dict[str, str]] = None, stdin: Optional[str] = None, timeout_seconds: Optional[float] = None) -> Any:
196
+ """Runs a command in a new sandbox and deletes the sandbox after, whether the command succeeded or not. Returns the command's result."""
197
+ a0 = await self.call("sandboxes.create", {"image": image, "vcpu": vcpu, "memoryGB": memory_gb})
198
+ try:
199
+ a1 = await self.call("sandboxes.exec", {"id": a0["id"], "cmd": cmd, "cwd": cwd, "env": env, "stdin": stdin, "timeoutSeconds": timeout_seconds})
200
+ return a1
201
+ finally:
202
+ await self.call("sandboxes.delete", {"id": a0["id"]})
203
+
204
+
205
+ __all__ = ["API_VERSION", "AsyncPage", "AsyncRuntime", "AsyncStream", "Page", "Runtime", "RuntimeApiError", "Stream", "Transport", "AsyncTransport", "InvalidRequestError", "UnauthorizedError", "PaymentRequiredError", "ForbiddenError", "LimitExceededError", "NotFoundError", "AlreadyExistsError", "ConflictError", "TooLargeError", "RateLimitedError", "InternalError", "ApiNotImplementedError", "UnavailableError", "CapacityUnavailableError", "ApiTimeoutError", "MachineStart", "VolumeMount", "SandboxRun", "NetworkRules", "SandboxSettings", "SandboxCreate", "MachineReady", "SandboxInfo", "Terminal", "ExecRequest", "Process", "FileWritten", "OutputChunk", "ProcessOutput", "ProcessInput", "ProcessWritten", "ProcessSignal", "ProcessList", "FileRemove", "FileRemoved", "FileInfo", "FileList", "FolderUnpacked", "FolderUploadBegin", "FolderUpload", "FolderUploadReceived", "FolderUploadAborted", "FileMkdir", "FileMade", "FileRename", "FileRenamed", "FileLinkCreate", "FileLink", "FileLinksRevoked", "SandboxNetwork", "MetricPoint", "MetricsBase", "SandboxMetrics", "ForkRequest", "Forked", "SnapshotRequest", "Stored", "MachineUpdate", "Action", "ActRequest", "Point", "ScreenSize", "Acted", "RunCode", "CodeResult", "CodeError", "CodeRun", "Sandboxes", "Sandbox", "AsyncSandboxes", "AsyncSandbox", "Functions", "FunctionMachine", "AsyncFunctions", "AsyncFunctionMachine", "SecretScope", "SecretRule", "SecretGit", "SecretGraphql", "SecretApi", "SecretPolicies", "SecretSettings", "SecretInfo", "SecretSet", "Secrets", "Secret", "AsyncSecrets", "AsyncSecret", "Apps", "App", "AsyncApps", "AsyncApp", "Sites", "Site", "AsyncSites", "AsyncSite", "Ci", "CiMachine", "AsyncCi", "AsyncCiMachine", "Browsers", "Browser", "AsyncBrowsers", "AsyncBrowser", "Desktops", "Desktop", "AsyncDesktops", "AsyncDesktop", "Notebooks", "Notebook", "AsyncNotebooks", "AsyncNotebook", "Workspaces", "Workspace", "AsyncWorkspaces", "AsyncWorkspace", "Containers", "Container", "AsyncContainers", "AsyncContainer", "Builds", "Build", "AsyncBuilds", "AsyncBuild", "JobSchedule", "JobRetry", "JobSecrets", "JobSettings", "JobCreate", "JobError", "JobInfo", "Jobs", "Job", "AsyncJobs", "AsyncJob", "JobRun", "JobRunOutput", "JobRuns", "AsyncJobRuns", "Snapshots", "AsyncSnapshots", "ContextAsked", "ContextMissing", "ChunkStored", "ImageFile", "ImageRecipe", "ImageArchive", "ImageContextFile", "ImageContext", "ImageBuild", "ImageCreate", "ImageLogLine", "ImageLogs", "Images", "Image", "AsyncImages", "AsyncImage", "VolumeCreate", "Volumes", "AsyncVolumes", "SessionCreate", "Session", "SessionCreated", "Sessions", "AsyncSessions", "Key", "KeyAuthorization", "KeyCreate", "KeyCreated", "KeyUpdate", "Keys", "AsyncKeys", "Project", "ProjectCreate", "Rename", "Projects", "AsyncProjects", "Identity", "Identities", "AsyncIdentities", "Role", "Roles", "AsyncRoles", "AuditLine", "Audit", "AsyncAudit", "Me", "MeClient", "AsyncMeClient", "MeterUse", "Limit", "KeyUsage", "KeySpendCap", "Usage", "UsageLine", "UsageExport", "UsageClient", "AsyncUsageClient", "PreviewCreate", "PreviewInfo", "Previews", "Preview", "AsyncPreviews", "AsyncPreview", "DomainCreate", "DomainSettings", "DomainInfo", "Domains", "Domain", "AsyncDomains", "AsyncDomain", "PortCreate", "PortSettings", "Port", "Ports", "AsyncPorts", "EgressIpSettings", "EgressIp", "EgressIps", "AsyncEgressIps", "TunnelPeer", "TunnelMember", "TunnelSettings", "Tunnel", "Tunnels", "AsyncTunnels", "NetworkSettings", "Network", "Networks", "AsyncNetworks", "WebhookCreate", "Webhook", "Webhooks", "AsyncWebhooks", "Event", "Events", "AsyncEvents", "ExportCreate", "Export", "Otel", "AsyncOtel", "FeedbackCreate", "Feedback", "FeedbackClient", "AsyncFeedbackClient"]