withruntime 0.33.0__tar.gz → 0.35.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 (441) hide show
  1. withruntime-0.35.0/PKG-INFO +352 -0
  2. withruntime-0.35.0/README.md +326 -0
  3. {withruntime-0.33.0 → withruntime-0.35.0}/pyproject.toml +1 -1
  4. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_agents.py +44 -0
  5. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_jobs.py +17 -0
  6. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_modal_dropin.py +5 -3
  7. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_modal_examples.py +2 -1
  8. withruntime-0.35.0/tests/test_modal_jobs.py +158 -0
  9. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_package_typing.py +1 -1
  10. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_async_products/agents.py +60 -5
  11. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_async_products/ci.py +8 -2
  12. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_async_products/jobs.py +18 -0
  13. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_errors.py +3 -2
  14. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_sync_products/agents.py +60 -5
  15. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_sync_products/ci.py +8 -2
  16. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_sync_products/jobs.py +18 -0
  17. withruntime-0.35.0/withruntime/_version.py +1 -0
  18. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/modal/__init__.py +7 -5
  19. withruntime-0.35.0/withruntime/modal/__main__.py +35 -0
  20. withruntime-0.35.0/withruntime/modal/_functions.py +331 -0
  21. withruntime-0.35.0/withruntime/modal/_job_runner.py +20 -0
  22. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/modal/app.py +39 -4
  23. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/modal/secret.py +14 -2
  24. withruntime-0.35.0/withruntime.egg-info/PKG-INFO +352 -0
  25. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime.egg-info/SOURCES.txt +4 -0
  26. withruntime-0.33.0/PKG-INFO +0 -315
  27. withruntime-0.33.0/README.md +0 -289
  28. withruntime-0.33.0/withruntime/_version.py +0 -1
  29. withruntime-0.33.0/withruntime.egg-info/PKG-INFO +0 -315
  30. {withruntime-0.33.0 → withruntime-0.35.0}/LICENSE +0 -0
  31. {withruntime-0.33.0 → withruntime-0.35.0}/setup.cfg +0 -0
  32. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_account_errors.py +0 -0
  33. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_answer_start.py +0 -0
  34. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_apps_builds.py +0 -0
  35. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_async_stream_cleanup.py +0 -0
  36. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_audit.py +0 -0
  37. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_billing.py +0 -0
  38. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_blaxel.py +0 -0
  39. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_blaxel_0_4_17.py +0 -0
  40. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_blaxel_0_4_18.py +0 -0
  41. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_blaxel_create_timeout.py +0 -0
  42. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_blaxel_wait_deadline.py +0 -0
  43. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_browser.py +0 -0
  44. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_capacity_wait.py +0 -0
  45. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_ci.py +0 -0
  46. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_compat_live.py +0 -0
  47. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_compat_modal_deadline_errors.py +0 -0
  48. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_compat_new_providers.py +0 -0
  49. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_compat_prime_contract.py +0 -0
  50. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_compat_prime_process_lifecycle.py +0 -0
  51. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_compat_prime_validation.py +0 -0
  52. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_compat_python_disk_snapshots.py +0 -0
  53. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_compat_python_e2b_deadline.py +0 -0
  54. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_compat_python_e2b_pty.py +0 -0
  55. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_compat_python_e2b_stream.py +0 -0
  56. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_compat_python_e2b_watch.py +0 -0
  57. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_compat_python_interpreter_deadline.py +0 -0
  58. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_compat_python_modal.py +0 -0
  59. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_compat_python_morph.py +0 -0
  60. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_compat_python_official.py +0 -0
  61. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_compat_python_pins.py +0 -0
  62. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_compat_python_processes.py +0 -0
  63. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_compat_python_request_scope.py +0 -0
  64. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_compat_python_runloop.py +0 -0
  65. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_compat_python_shell.py +0 -0
  66. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_compat_python_snapshot_capture.py +0 -0
  67. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_compat_python_sprites.py +0 -0
  68. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_compat_router.py +0 -0
  69. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_customer_usage.py +0 -0
  70. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_daytona.py +0 -0
  71. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_daytona_0_223_1.py +0 -0
  72. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_daytona_0_224_1.py +0 -0
  73. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_daytona_0_225_0.py +0 -0
  74. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_daytona_create_cleanup.py +0 -0
  75. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_daytona_create_options.py +0 -0
  76. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_daytona_download_labels.py +0 -0
  77. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_daytona_refusals_lifted.py +0 -0
  78. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_deepagents.py +0 -0
  79. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_e2b_2_55.py +0 -0
  80. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_e2b_code_interpreter.py +0 -0
  81. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_e2b_connection_cap.py +0 -0
  82. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_e2b_exports.py +0 -0
  83. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_e2b_fork_validation.py +0 -0
  84. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_e2b_sandbox.py +0 -0
  85. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_e2b_upstream.py +0 -0
  86. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_e2b_watch.py +0 -0
  87. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_embed_and_webhook_watch.py +0 -0
  88. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_eval_sandbox.py +0 -0
  89. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_exec_stream.py +0 -0
  90. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_exec_stream_names.py +0 -0
  91. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_exec_user.py +0 -0
  92. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_file_archives.py +0 -0
  93. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_files_download.py +0 -0
  94. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_files_mode.py +0 -0
  95. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_files_upload_parallel.py +0 -0
  96. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_files_write_lost_body.py +0 -0
  97. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_harbor.py +0 -0
  98. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_http_tls_close.py +0 -0
  99. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_identity_token.py +0 -0
  100. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_image_delete_by_name.py +0 -0
  101. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_images_v2.py +0 -0
  102. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_images_volumes_interpreter.py +0 -0
  103. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_inspect_ai.py +0 -0
  104. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_interface_contract.py +0 -0
  105. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_late_answer.py +0 -0
  106. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_lifecycle_settings.py +0 -0
  107. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_limits.py +0 -0
  108. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_machine_engine.py +0 -0
  109. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_modal_1_6_2.py +0 -0
  110. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_mounts.py +0 -0
  111. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_network_funding.py +0 -0
  112. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_network_products.py +0 -0
  113. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_observability.py +0 -0
  114. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_openai_agents.py +0 -0
  115. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_out_of_memory.py +0 -0
  116. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_plans.py +0 -0
  117. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_previews_network_desktop.py +0 -0
  118. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_prime_0_4_5.py +0 -0
  119. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_prime_0_4_6.py +0 -0
  120. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_prime_0_4_7.py +0 -0
  121. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_private_network.py +0 -0
  122. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_process_deadline.py +0 -0
  123. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_process_input.py +0 -0
  124. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_process_object.py +0 -0
  125. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_process_output.py +0 -0
  126. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_process_write_backpressure.py +0 -0
  127. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_product_aliases.py +0 -0
  128. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_proxy.py +0 -0
  129. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_referrals.py +0 -0
  130. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_replayed_create_message.py +0 -0
  131. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_reservations.py +0 -0
  132. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_runloop_stream_cleanup.py +0 -0
  133. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_runloop_v2.py +0 -0
  134. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_sandbox_origin.py +0 -0
  135. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_sandbox_sessions.py +0 -0
  136. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_sandboxes_delete_all.py +0 -0
  137. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_sandboxes_stop_all.py +0 -0
  138. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_saved_connection.py +0 -0
  139. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_secrets.py +0 -0
  140. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_signed_requests.py +0 -0
  141. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_snapshot_after_fork.py +0 -0
  142. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_snapshot_recovery.py +0 -0
  143. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_sso.py +0 -0
  144. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_start_report_kept.py +0 -0
  145. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_stream_cut_short.py +0 -0
  146. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_stream_exit_close.py +0 -0
  147. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_switch_image.py +0 -0
  148. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_switching.py +0 -0
  149. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_tailscale.py +0 -0
  150. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_tools.py +0 -0
  151. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_trace_files.py +0 -0
  152. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_transport_body_recovery.py +0 -0
  153. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_transport_connection_limits.py +0 -0
  154. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_transport_never_sent.py +0 -0
  155. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_unpack.py +0 -0
  156. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_upload_deadline.py +0 -0
  157. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_usage_export.py +0 -0
  158. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_vercel.py +0 -0
  159. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_vercel_create_validation.py +0 -0
  160. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_vercel_disk_snapshot.py +0 -0
  161. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_vercel_refusals_lifted.py +0 -0
  162. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_volume_backups.py +0 -0
  163. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_volume_operations.py +0 -0
  164. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_wake_awake.py +0 -0
  165. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_wallet.py +0 -0
  166. {withruntime-0.33.0 → withruntime-0.35.0}/tests/test_watch.py +0 -0
  167. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/__init__.py +0 -0
  168. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_agent_templates.py +0 -0
  169. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_api_defaults.py +0 -0
  170. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_async_client.py +0 -0
  171. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_async_products/__init__.py +0 -0
  172. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_async_products/apps.py +0 -0
  173. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_async_products/audit.py +0 -0
  174. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_async_products/billing.py +0 -0
  175. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_async_products/browser.py +0 -0
  176. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_async_products/builds.py +0 -0
  177. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_async_products/containers.py +0 -0
  178. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_async_products/desktop.py +0 -0
  179. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_async_products/images.py +0 -0
  180. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_async_products/interpreter.py +0 -0
  181. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_async_products/limits.py +0 -0
  182. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_async_products/mcp.py +0 -0
  183. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_async_products/mounts.py +0 -0
  184. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_async_products/network.py +0 -0
  185. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_async_products/network_products.py +0 -0
  186. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_async_products/observability.py +0 -0
  187. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_async_products/plans.py +0 -0
  188. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_async_products/previews.py +0 -0
  189. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_async_products/private_network.py +0 -0
  190. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_async_products/referrals.py +0 -0
  191. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_async_products/reservations.py +0 -0
  192. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_async_products/secrets.py +0 -0
  193. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_async_products/signed_requests.py +0 -0
  194. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_async_products/sso.py +0 -0
  195. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_async_products/switching.py +0 -0
  196. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_async_products/tailscale.py +0 -0
  197. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_async_products/volumes.py +0 -0
  198. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_async_products/watch.py +0 -0
  199. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_clock.py +0 -0
  200. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_compat.py +0 -0
  201. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_compat_lease.py +0 -0
  202. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_compat_lifecycle.py +0 -0
  203. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_compat_shell.py +0 -0
  204. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_connection.py +0 -0
  205. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_eval_sandbox.py +0 -0
  206. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_http.py +0 -0
  207. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_proxy.py +0 -0
  208. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_renamed.py +0 -0
  209. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_request_scope.py +0 -0
  210. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_sync_client.py +0 -0
  211. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_sync_products/__init__.py +0 -0
  212. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_sync_products/apps.py +0 -0
  213. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_sync_products/audit.py +0 -0
  214. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_sync_products/billing.py +0 -0
  215. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_sync_products/browser.py +0 -0
  216. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_sync_products/builds.py +0 -0
  217. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_sync_products/containers.py +0 -0
  218. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_sync_products/desktop.py +0 -0
  219. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_sync_products/images.py +0 -0
  220. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_sync_products/interpreter.py +0 -0
  221. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_sync_products/limits.py +0 -0
  222. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_sync_products/mcp.py +0 -0
  223. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_sync_products/mounts.py +0 -0
  224. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_sync_products/network.py +0 -0
  225. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_sync_products/network_products.py +0 -0
  226. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_sync_products/observability.py +0 -0
  227. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_sync_products/plans.py +0 -0
  228. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_sync_products/previews.py +0 -0
  229. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_sync_products/private_network.py +0 -0
  230. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_sync_products/referrals.py +0 -0
  231. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_sync_products/reservations.py +0 -0
  232. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_sync_products/secrets.py +0 -0
  233. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_sync_products/signed_requests.py +0 -0
  234. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_sync_products/sso.py +0 -0
  235. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_sync_products/switching.py +0 -0
  236. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_sync_products/tailscale.py +0 -0
  237. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_sync_products/volumes.py +0 -0
  238. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_sync_products/watch.py +0 -0
  239. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_tunnel.py +0 -0
  240. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_unpack.py +0 -0
  241. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/_ws.py +0 -0
  242. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/__init__.py +0 -0
  243. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/_async_io.py +0 -0
  244. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/_async_sandbox.py +0 -0
  245. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/_core.py +0 -0
  246. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/_sync_io.py +0 -0
  247. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/_sync_sandbox.py +0 -0
  248. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/core/__init__.py +0 -0
  249. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/core/agents.py +0 -0
  250. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/core/client/__init__.py +0 -0
  251. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/core/client/api/__init__.py +0 -0
  252. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/core/client/api/applications/__init__.py +0 -0
  253. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/core/client/api/applications/list_application_revisions.py +0 -0
  254. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/core/client/api/compute/__init__.py +0 -0
  255. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/core/client/api/compute/get_sandbox.py +0 -0
  256. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/core/client/api/compute/update_sandbox.py +0 -0
  257. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/core/client/api/functions/__init__.py +0 -0
  258. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/core/client/api/functions/create_function.py +0 -0
  259. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/core/client/api/images.py +0 -0
  260. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/core/client/api/workspaces.py +0 -0
  261. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/core/client/client.py +0 -0
  262. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/core/client/models/__init__.py +0 -0
  263. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/core/client/models/create_job_execution_request.py +0 -0
  264. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/core/client/models/create_job_execution_request_env.py +0 -0
  265. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/core/client/models/env.py +0 -0
  266. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/core/client/models/function.py +0 -0
  267. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/core/client/models/function_runtime.py +0 -0
  268. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/core/client/models/function_spec.py +0 -0
  269. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/core/client/models/metadata.py +0 -0
  270. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/core/client/models/pagination_meta.py +0 -0
  271. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/core/client/models/workspace.py +0 -0
  272. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/core/client/pagination.py +0 -0
  273. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/core/client/types.py +0 -0
  274. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/core/common.py +0 -0
  275. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/core/drive.py +0 -0
  276. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/core/errors.py +0 -0
  277. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/core/jobs.py +0 -0
  278. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/core/sandbox/__init__.py +0 -0
  279. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/core/sandbox/types.py +0 -0
  280. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/core/secret.py +0 -0
  281. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/crewai.py +0 -0
  282. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/googleadk.py +0 -0
  283. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/langgraph.py +0 -0
  284. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/livekit.py +0 -0
  285. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/llamaindex.py +0 -0
  286. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/openai.py +0 -0
  287. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/pydantic.py +0 -0
  288. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/blaxel/telemetry.py +0 -0
  289. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/daytona/__init__.py +0 -0
  290. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/daytona/_async_daytona.py +0 -0
  291. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/daytona/_async_io.py +0 -0
  292. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/daytona/_core.py +0 -0
  293. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/daytona/_sync_daytona.py +0 -0
  294. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/daytona/_sync_io.py +0 -0
  295. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/deepagents.py +0 -0
  296. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/__init__.py +0 -0
  297. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/_async_io.py +0 -0
  298. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/_async_sandbox.py +0 -0
  299. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/_core.py +0 -0
  300. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/_sync_io.py +0 -0
  301. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/_sync_sandbox.py +0 -0
  302. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/code_interpreter/__init__.py +0 -0
  303. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/code_interpreter/_async_ci.py +0 -0
  304. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/code_interpreter/_models.py +0 -0
  305. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/code_interpreter/_sync_ci.py +0 -0
  306. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/code_interpreter/charts.py +0 -0
  307. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/code_interpreter/code_interpreter_async.py +0 -0
  308. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/code_interpreter/code_interpreter_sync.py +0 -0
  309. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/code_interpreter/models.py +0 -0
  310. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/connection_config.py +0 -0
  311. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/exceptions.py +0 -0
  312. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/sandbox/__init__.py +0 -0
  313. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/sandbox/commands/__init__.py +0 -0
  314. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/sandbox/commands/command_handle.py +0 -0
  315. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/sandbox/commands/main.py +0 -0
  316. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/sandbox/filesystem/__init__.py +0 -0
  317. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/sandbox/filesystem/filesystem.py +0 -0
  318. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/sandbox/filesystem/watch_handle.py +0 -0
  319. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/sandbox/network.py +0 -0
  320. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/sandbox/sandbox_api.py +0 -0
  321. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/sandbox/signature.py +0 -0
  322. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/sandbox_async/__init__.py +0 -0
  323. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/sandbox_async/commands/__init__.py +0 -0
  324. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/sandbox_async/commands/command.py +0 -0
  325. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/sandbox_async/commands/command_handle.py +0 -0
  326. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/sandbox_async/commands/pty.py +0 -0
  327. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/sandbox_async/filesystem/__init__.py +0 -0
  328. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/sandbox_async/filesystem/filesystem.py +0 -0
  329. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/sandbox_async/filesystem/watch_handle.py +0 -0
  330. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/sandbox_async/main.py +0 -0
  331. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/sandbox_async/paginator.py +0 -0
  332. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/sandbox_async/utils.py +0 -0
  333. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/sandbox_sync/__init__.py +0 -0
  334. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/sandbox_sync/commands/__init__.py +0 -0
  335. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/sandbox_sync/commands/command.py +0 -0
  336. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/sandbox_sync/commands/command_handle.py +0 -0
  337. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/sandbox_sync/commands/pty.py +0 -0
  338. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/sandbox_sync/filesystem/__init__.py +0 -0
  339. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/sandbox_sync/filesystem/filesystem.py +0 -0
  340. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/sandbox_sync/filesystem/watch_handle.py +0 -0
  341. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/sandbox_sync/git.py +0 -0
  342. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/sandbox_sync/main.py +0 -0
  343. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/sandbox_sync/paginator.py +0 -0
  344. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/secret/__init__.py +0 -0
  345. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/template/__init__.py +0 -0
  346. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/template/dockerfile_parser.py +0 -0
  347. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/template/logger.py +0 -0
  348. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/template/main.py +0 -0
  349. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/template/readycmd.py +0 -0
  350. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/template/types.py +0 -0
  351. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/template_async/__init__.py +0 -0
  352. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/template_async/main.py +0 -0
  353. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/template_sync/__init__.py +0 -0
  354. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/template_sync/main.py +0 -0
  355. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/volume/__init__.py +0 -0
  356. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/volume/connection_config.py +0 -0
  357. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/volume/types.py +0 -0
  358. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/volume/volume_async.py +0 -0
  359. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/e2b/volume/volume_sync.py +0 -0
  360. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/harbor.py +0 -0
  361. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/inspect_ai.py +0 -0
  362. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/modal/_async.py +0 -0
  363. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/modal/_dual.py +0 -0
  364. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/modal/_fs_async.py +0 -0
  365. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/modal/_fs_common.py +0 -0
  366. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/modal/_fs_sync.py +0 -0
  367. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/modal/_lookup.py +0 -0
  368. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/modal/_object.py +0 -0
  369. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/modal/_probe.py +0 -0
  370. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/modal/_snapshot.py +0 -0
  371. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/modal/_tunnel.py +0 -0
  372. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/modal/cloud_bucket_mount.py +0 -0
  373. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/modal/container_process.py +0 -0
  374. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/modal/exception.py +0 -0
  375. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/modal/file_pattern_matcher.py +0 -0
  376. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/modal/image.py +0 -0
  377. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/modal/io_streams.py +0 -0
  378. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/modal/output.py +0 -0
  379. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/modal/proxy.py +0 -0
  380. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/modal/sandbox/__init__.py +0 -0
  381. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/modal/sandbox/sandbox.py +0 -0
  382. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/modal/sandbox_fs.py +0 -0
  383. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/modal/snapshot.py +0 -0
  384. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/modal/stream_type.py +0 -0
  385. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/modal/types.py +0 -0
  386. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/modal/volume.py +0 -0
  387. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/morph/__init__.py +0 -0
  388. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/morph/api.py +0 -0
  389. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/openai_agents.py +0 -0
  390. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/prime/__init__.py +0 -0
  391. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/prime/_async.py +0 -0
  392. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/prime/_sync.py +0 -0
  393. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/prime/core/__init__.py +0 -0
  394. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/prime/core/client.py +0 -0
  395. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/prime/exceptions.py +0 -0
  396. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/prime/models.py +0 -0
  397. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/prime/process.py +0 -0
  398. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/prime/sandbox.py +0 -0
  399. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/py.typed +0 -0
  400. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/runloop/__init__.py +0 -0
  401. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/runloop/_async.py +0 -0
  402. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/runloop/_exceptions.py +0 -0
  403. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/runloop/_snapshots.py +0 -0
  404. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/runloop/_sync.py +0 -0
  405. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/runloop/_v2.py +0 -0
  406. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/runloop/lib/__init__.py +0 -0
  407. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/runloop/lib/polling.py +0 -0
  408. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/runloop/sdk/__init__.py +0 -0
  409. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/sprites/__init__.py +0 -0
  410. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/sprites/_capture.py +0 -0
  411. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/sprites/_capture_async.py +0 -0
  412. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/sprites/_features.py +0 -0
  413. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/sprites/_metadata.py +0 -0
  414. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/sprites/_stream.py +0 -0
  415. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/sprites/_stream_async.py +0 -0
  416. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/sprites/_translate.py +0 -0
  417. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/sprites/async_client.py +0 -0
  418. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/sprites/async_exec.py +0 -0
  419. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/sprites/client.py +0 -0
  420. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/sprites/control.py +0 -0
  421. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/sprites/exceptions.py +0 -0
  422. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/sprites/exec.py +0 -0
  423. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/sprites/filesystem.py +0 -0
  424. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/sprites/sprite.py +0 -0
  425. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/sprites/types.py +0 -0
  426. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/tools.py +0 -0
  427. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/vercel/__init__.py +0 -0
  428. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/vercel/_async_io.py +0 -0
  429. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/vercel/_async_sandbox.py +0 -0
  430. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/vercel/_core.py +0 -0
  431. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/vercel/_sync_io.py +0 -0
  432. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/vercel/_sync_sandbox.py +0 -0
  433. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/vercel/api.py +0 -0
  434. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/vercel/sandbox/__init__.py +0 -0
  435. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/vercel/sandbox/sync.py +0 -0
  436. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/wallet.py +0 -0
  437. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime/webhooks.py +0 -0
  438. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime.egg-info/dependency_links.txt +0 -0
  439. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime.egg-info/entry_points.txt +0 -0
  440. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime.egg-info/requires.txt +0 -0
  441. {withruntime-0.33.0 → withruntime-0.35.0}/withruntime.egg-info/top_level.txt +0 -0
@@ -0,0 +1,352 @@
1
+ Metadata-Version: 2.4
2
+ Name: withruntime
3
+ Version: 0.35.0
4
+ Summary: Runtime Cloud: one client (sync and async) for every Runtime product. Sandboxes first.
5
+ License: Apache-2.0
6
+ Project-URL: Homepage, https://withruntime.com
7
+ Project-URL: Documentation, https://withruntime.com/docs/python
8
+ Project-URL: Source, https://github.com/withruntime/runtime/tree/main/sdks/python
9
+ Project-URL: Issues, https://github.com/withruntime/runtime/issues
10
+ Keywords: sandbox,ai-agents,agents,microvm,firecracker,code-execution,code-interpreter,mcp,llm
11
+ Requires-Python: >=3.9
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ Requires-Dist: tomli>=1.1.0; python_version < "3.11"
15
+ Provides-Extra: e2b
16
+ Requires-Dist: httpx<1.0.0,>=0.27.0; extra == "e2b"
17
+ Provides-Extra: openai-agents
18
+ Requires-Dist: openai-agents>=0.22.3; extra == "openai-agents"
19
+ Provides-Extra: deepagents
20
+ Requires-Dist: deepagents>=0.7; extra == "deepagents"
21
+ Provides-Extra: harbor
22
+ Requires-Dist: harbor>=0.23.0; extra == "harbor"
23
+ Provides-Extra: inspect-ai
24
+ Requires-Dist: inspect-ai>=0.3.268; extra == "inspect-ai"
25
+ Dynamic: license-file
26
+
27
+ # Runtime Cloud Python SDK
28
+
29
+ One client for every Runtime Cloud product, sync and async. It needs Python 3.9
30
+ or later (the `python3` that a Mac comes with). It uses only the standard
31
+ library.
32
+
33
+ ```bash no-run
34
+ pip install withruntime
35
+ ```
36
+
37
+ The client uses `RUNTIME_API_KEY` if it is set. If not, it uses the connection
38
+ that this machine saved when you ran `npx withruntime login`. That takes one
39
+ approval in the browser. You do not copy a key. On a server or a CI runner, set
40
+ `RUNTIME_API_KEY` from your secret manager. To get a new key, run
41
+ `npx withruntime keys create`. It prints the key once, after an owner, admin or
42
+ developer of the account approves it in the browser. You can also create a key
43
+ at https://withruntime.com/account/keys. Never put a key in source code, a URL
44
+ or a command-line argument.
45
+
46
+ ```python
47
+ from withruntime import Sandbox
48
+
49
+ with Sandbox.create() as sbx:
50
+ sbx.files.write("/workspace/invoice.py", "print(sum([125, 250, 375]))\n")
51
+ result = sbx.exec("python3 /workspace/invoice.py")
52
+ print(result.exit_code, result.stdout)
53
+ ```
54
+
55
+ `Sandbox.create()` takes no arguments. It returns when the sandbox is running.
56
+ Leaving the `with` block deletes the sandbox. Set `keep=True` to stop it
57
+ instead. Its disk stays.
58
+
59
+ With no arguments, you get the free usage. No card is needed. You can run up to
60
+ four sandboxes at once without credit. The current default image
61
+ includes NumPy, pandas and matplotlib. See the
62
+ [sandbox environment](https://withruntime.com/docs/sandbox-environment). The
63
+ free usage is spent first, then prepaid credit. You do not choose. `funding` is
64
+ accepted and ignored.
65
+
66
+ `AsyncRuntime` is the same client for asyncio, with the same methods:
67
+
68
+ ```python
69
+ import asyncio
70
+ from withruntime import AsyncRuntime
71
+
72
+
73
+ async def main():
74
+ async with AsyncRuntime() as runtime:
75
+ async with await runtime.sandboxes.create() as sbx:
76
+ print((await sbx.exec("uname -a")).stdout)
77
+
78
+
79
+ asyncio.run(main())
80
+ ```
81
+
82
+ A sandbox has these methods and products:
83
+
84
+ - Methods: `exec`, `exec_stream`, `spawn`, `terminal`, and `forward_port` (which
85
+ maps a TCP port in the sandbox to a local port).
86
+ - `files`: read, write, list, glob, stat, rename and remove. Upload and download
87
+ directories.
88
+ - Lifecycle: `pause`, `wake`, `extend`, `update` (its name, environment and
89
+ settings), `keep_alive`, `fork`, `snapshot`, `switch_image` (moves it to a new
90
+ image and keeps /workspace), and `delete` (removes it for good).
91
+ - Products: `interpreter`, `network`, `previews`, `desktop`, `mounts` (your S3,
92
+ R2 or Google Cloud Storage bucket as a folder), `tailscale` (a paid sandbox on
93
+ your own tailnet), `metrics`, and `mcp` (servers from the MCP catalog, run in
94
+ the sandbox).
95
+
96
+ A paused sandbox also wakes by itself on the next call. `Sandbox.get_or_create(name)`
97
+ returns the sandbox with that name, or creates it.
98
+
99
+ A sandbox pauses itself after 300 seconds with nothing happening in it. It
100
+ keeps its memory and processes, so an idle sandbox uses no compute.
101
+ `idle_pause_seconds` sets the idle time from 60 to
102
+ 86,400. A shorter time is raised to 60. Set it to 0
103
+ to never pause.
104
+
105
+ Each product has one plural name, as in the CLI: `runtime.sandboxes`,
106
+ `snapshots`, `images`, `volumes`, `jobs`, `domains`, `ports`, `ips` and
107
+ `networks`. The old singular names (`runtime.sandbox`, `address`, `tunnel` and
108
+ the rest) still work for now. The [guide](https://withruntime.com/docs/python)
109
+ lists them.
110
+
111
+ The client has `sandboxes`, `images`, `volumes`, `snapshots`, `jobs`, `secrets`,
112
+ `limits`, `feedback` and `support`. It has `webhooks`, `events`, `otel` and
113
+ `audit` to watch the account. It has `domains`, `ports`, `ips` and `networks`
114
+ (with `networks.wireguard`) to connect sandboxes to your own systems (paid
115
+ accounts). It has `mcp`, `sso`, `billing`, `referrals` and `switching`.
116
+
117
+ `runtime.limits.get()` (0.3.1 and later) says whether the key is read-only, and
118
+ what its agent may still spend today. Every write carries an idempotency key, so
119
+ a retry never runs a write twice. Errors are typed. They carry `code`, `hint` and
120
+ `request_id`.
121
+
122
+ `RuntimeAPIError` and `RuntimeConnectionError` are the SDK's error names. They do
123
+ not shadow Python's built-in errors. The older `RuntimeError` and
124
+ `ConnectionError` exports are still aliases.
125
+
126
+ `runtime.usage_requests("7d")` reads the account's API call counts and error
127
+ rates. Counts are exact decimal strings. An empty window has `errorPercent: None`.
128
+
129
+ `runtime.usage_export(since, until, cursor=...)` reads one page of settled usage
130
+ over a UTC range, with its server CSV. `finalThrough` is the time before which
131
+ no more charges will settle. Each row's `final` is True once its resource is
132
+ deleted. After that, it cannot be charged anything more.
133
+
134
+ ## Behind a proxy
135
+
136
+ The client reads `HTTPS_PROXY`, `HTTP_PROXY` and `NO_PROXY`, for sync and async
137
+ calls. The names work in upper or lower case. If both cases are set, lower case
138
+ wins.
139
+
140
+ Calls to the API and terminal WebSockets go through `HTTPS_PROXY` as a CONNECT
141
+ tunnel. Any `user:password@` in the proxy address is sent to the proxy.
142
+ `HTTP_PROXY` is used only for `http://` addresses. It is never used for the
143
+ HTTPS API.
144
+
145
+ `NO_PROXY` lists hosts to reach directly. Split them with commas or spaces. A
146
+ name covers its subdomains. A leading dot is allowed. `host:port` limits the
147
+ rule to one port. `*` means every host.
148
+
149
+ A proxy address without a scheme is treated as `http://`. Only `http://` proxies
150
+ are supported. Any other scheme fails at once with `invalid_proxy`.
151
+
152
+ When a call cannot get through, the error names the proxy it tried. It leaves
153
+ out the password. For example: `No answer from Runtime at https://api.withruntime.com through the
154
+ proxy http://proxy.internal:3128 (HTTPS_PROXY).`
155
+
156
+ ## Code written for E2B
157
+
158
+ `withruntime.e2b` translates supported E2B Python sandbox calls. Change the
159
+ import and set `RUNTIME_API_KEY`:
160
+
161
+ ```python no-run
162
+ from withruntime.e2b import Sandbox, AsyncSandbox # was: from e2b import ...
163
+ from withruntime.e2b.code_interpreter import Sandbox # was: from e2b_code_interpreter import Sandbox
164
+ ```
165
+
166
+ Sandboxes get E2B's defaults: 2 vCPU and 512 MiB. There is no time limit unless
167
+ you pass `timeout`. A sandbox runs while it works, and pauses itself when it is
168
+ idle. Timeouts are in seconds, as in E2B's Python SDK. `runtime_create={...}`
169
+ passes Runtime's own create fields, for example `{"idle_pause_seconds": 0}`.
170
+
171
+ A call that Runtime does not handle the way E2B does raises
172
+ `NotSupportedException` before anything happens. The error names what to use
173
+ instead. Importing `withruntime` alone does not load it. The sync `Sandbox` is
174
+ generated from the async one by `scripts/generate_e2b_sync.py`.
175
+
176
+ ## Code written for Daytona or Vercel Sandbox
177
+
178
+ `withruntime.daytona` and `withruntime.vercel` do the same for Daytona's Python
179
+ SDK and Vercel Sandbox's. Change the import:
180
+
181
+ ```python no-run
182
+ from withruntime.daytona import Daytona, AsyncDaytona # was: from daytona import ...
183
+ from withruntime.vercel import sandbox # was: from vercel import sandbox
184
+ from withruntime.vercel.sandbox import sync as sandbox # was: from vercel.sandbox import sync as sandbox
185
+ ```
186
+
187
+ Sandboxes get the rival's defaults. For Daytona, that is 1 vCPU, 1 GiB and a
188
+ 3 GiB disk. It pauses after 15 idle minutes. For Vercel, that is 2 vCPUs with
189
+ 2048 MiB each. Vercel sandboxes are persistent, with no time limit unless you
190
+ pass one. `runtime_create={...}` passes Runtime's own create fields.
191
+
192
+ A Daytona or Vercel key is never sent anywhere. A call that Runtime does not
193
+ handle the same way raises `NotSupportedError` before anything happens. The
194
+ error names what to use instead. The sync modules are generated from the async
195
+ ones by `scripts/generate_dropin_sync.py`. `DAYTONA.md` and `VERCEL.md` in the
196
+ JavaScript package list every mapping and gap.
197
+
198
+ ## Code written for Blaxel
199
+
200
+ `withruntime.blaxel` translates supported Blaxel Python sandbox calls (`blaxel`
201
+ 0.4.11) on Runtime. Change the import and set `RUNTIME_API_KEY`. Or run
202
+ `npx withruntime login` once:
203
+
204
+ ```python no-run
205
+ from withruntime.blaxel import SandboxInstance # was: from blaxel.core import SandboxInstance
206
+ from withruntime.blaxel import SyncSandboxInstance # was: from blaxel.core import SyncSandboxInstance
207
+ ```
208
+
209
+ `withruntime.blaxel.core` holds the same names. So replacing `blaxel.` with
210
+ `withruntime.blaxel.` also works. A Runtime key in `BL_API_KEY` is used. A
211
+ Blaxel key is never sent anywhere.
212
+
213
+ How it maps:
214
+
215
+ - **Sandboxes.** `create`, `create_if_not_exists` (one sandbox when two calls
216
+ race), `get`, `get_by_external_id`, `list`, `delete`, `fork`, `snapshots` and
217
+ the `update_*` calls work. `memory` is kept, with one vCPU for every 2048 MB.
218
+ Blaxel's general templates run on Runtime's image: `blaxel/base-image`,
219
+ `py-app`, `ts-app`, `node`, `jupyter-server` and `docker-in-sandbox`. Any other
220
+ image `ns/name:tag` starts from the ready Runtime image `ns-name:tag`. Every
221
+ `/` becomes `-`. The tag is `latest` when none is given. So the code keeps
222
+ Blaxel's image string. A missing image raises `NotSupportedError` with the
223
+ build command. For example: `npx withruntime images build
224
+ --dockerfile Dockerfile --name my-company-agent-image -t
225
+ my-company-agent-image:latest`. Volumes mount Runtime volumes of the same
226
+ name. Without credit, a sandbox has at most 4096 MB of memory (2 vCPUs).
227
+ - **Standby.** A sandbox pauses after a minute with no call. Blaxel's standby
228
+ time is about 15 seconds. A paused sandbox keeps its memory and processes. It
229
+ wakes on the next command, file call or preview visit. `archive` pauses it and
230
+ keeps its memory too. A sandbox has no time limit, so a long command is never
231
+ paused by a clock. `keep_alive` raises the idle pause to the process's time
232
+ limit. For a process with no time limit, it turns the idle pause off. The
233
+ first call from any client that finds no `keep_alive` process running brings
234
+ back the old idle pause.
235
+ - **How long it is kept.** A paused sandbox with no `ttl` or `lifecycle` is kept
236
+ 365 days. Blaxel keeps it until you delete it. A limit is rounded up to whole
237
+ days of pause. A limit of an hour or less, counted from creation, also ends the
238
+ sandbox at that time. Without credit, a paused sandbox is kept seven days. That
239
+ is the most Blaxel's first tier keeps.
240
+ - **Envs** reach every process, from any client. They are kept on the sandbox. A
241
+ process's own `env` wins.
242
+ - **Paths.** `/blaxel` is Blaxel's working directory and `HOME`. On Runtime it is
243
+ `/workspace`. Relative paths and `~` start there.
244
+ - **Processes.** You can find a process by name from any client, as long as
245
+ Runtime still has its record. Runtime keeps the running processes and the last
246
+ 16 that ended.
247
+ - **Previews** are Runtime previews of each port. A private preview's
248
+ `tokens.create(expires_at)` gives a token. The token works as Blaxel's
249
+ `X-Blaxel-Preview-Token` header or `bl_preview_token` address parameter.
250
+ `fetch(port)` uses a private preview for you.
251
+ - **Code interpreter.** `CodeInterpreter.run_code` and `create_code_context` run
252
+ on Runtime's interpreter. They return Blaxel's result classes.
253
+ - **Errors.** Errors keep Blaxel's classes: `SandboxAPIError`, `ResponseError`
254
+ and `SnapshotAPIError`. Each one also carries Runtime's `code`, `hint` and
255
+ `request_id`.
256
+ - **Runtime fields.** `runtime_create={...}` passes Runtime's own create fields,
257
+ for example `{"idle_pause_seconds": 0}`. `sandbox.withruntime` is the Runtime
258
+ sandbox underneath.
259
+
260
+ Differences you can hit:
261
+
262
+ - Commands run as root, as on Blaxel, with the sandbox's `PATH` and `HOME`
263
+ (`/workspace`). File calls act as the sandbox user. They fall back to `sudo`
264
+ where only root may act. So they reach files that a root process made,
265
+ including private ones. A file they write belongs to the sandbox user.
266
+ - A key sees the sandboxes it made. Another key's calls get 404. The exception is
267
+ when an owner or admin makes the key account-wide, as a Blaxel workspace key is
268
+ ([teams](https://withruntime.com/docs/teams#keys-in-a-team)).
269
+ - Public previews need a paid sandbox.
270
+ - A process's `pid` is Runtime's process id. It is not an operating-system number.
271
+ - `sandbox.sessions` makes a Runtime sandbox session. `SandboxInstance.from_session`
272
+ drives the sandbox with its token. That gives commands, files and previews of
273
+ that one sandbox. A session lasts a day at most. `Access-Control-Allow-Origin`
274
+ in `response_headers` names the page that may use it.
275
+
276
+ These raise `NotSupportedError` before anything happens. The error names what to
277
+ use instead: regions outside the US, read-only and ephemeral volumes, drives,
278
+ `extra_args` other than `iptables`, egress and subnet settings, preview headers,
279
+ custom domains and preview expiry, restoring a snapshot in place (fork from it
280
+ instead), codegen, `system`, schedules, and Blaxel's agents, models, tools, jobs
281
+ and applications. The sync module is generated from the async one by
282
+ `scripts/generate_dropin_sync.py`.
283
+
284
+ ## Code written for Modal Sandboxes
285
+
286
+ `withruntime.modal` runs code written for Modal's Sandboxes (`modal` 1.6.2),
287
+ sync and `.aio`. Change the import and set `RUNTIME_API_KEY`:
288
+
289
+ ```python no-run
290
+ from withruntime import modal # was: import modal
291
+ ```
292
+
293
+ Modal's own sandbox examples run unchanged if they use none of the features
294
+ refused below. A Modal token is never needed or sent. Commands run as root, as
295
+ in a Modal container. A `timeout` ends the sandbox. An `idle_timeout` pauses it
296
+ and keeps its memory. The next call wakes it.
297
+
298
+ Images build from Modal's recipes. `publish(name)` makes a Runtime image name
299
+ that `Image.from_name` finds. Memory snapshots (`_experimental_enable_snapshot`)
300
+ keep the running entrypoint.
301
+
302
+ These raise `CompatibilityError` before anything is created. The error names
303
+ what to use instead: GPUs; Modal Functions and Dicts; named secrets; volumes
304
+ made on first use; sidecars; connect tokens; and directory snapshots. `COMPATIBILITY.md`
305
+ lists every mapping.
306
+
307
+ ## Agent frameworks
308
+
309
+ `withruntime.openai_agents` is a sandbox client for the OpenAI Agents SDK's
310
+ `SandboxAgent`. Install it with `pip install "withruntime[openai-agents]"`.
311
+ `withruntime.deepagents` is a Deep Agents sandbox backend. `withruntime.tools`
312
+ gives LangChain, CrewAI, LlamaIndex, Pydantic AI, Google ADK and any framework
313
+ that takes typed functions four sandbox tools. See
314
+ https://withruntime.com/docs/frameworks.
315
+
316
+ ## How Runtime compares
317
+
318
+ For typical agent work, Runtime costs 42% to 88% less than fourteen
319
+ other sandbox providers at their published rates. These pages show the
320
+ arithmetic. Each one lists the rates it used and the date they were read:
321
+
322
+ - [Best sandbox for AI agents](https://withruntime.com/compare/best-sandbox-for-ai-agents)
323
+ - Alternatives to [E2B](https://withruntime.com/compare/e2b-alternatives),
324
+ [Daytona](https://withruntime.com/compare/daytona-alternatives),
325
+ [Modal](https://withruntime.com/compare/modal-alternatives) and
326
+ [Vercel Sandbox](https://withruntime.com/compare/vercel-sandbox-alternatives)
327
+ - [E2B vs Daytona](https://withruntime.com/compare/e2b-vs-daytona), and
328
+ [every comparison](https://withruntime.com/compare)
329
+ - [The agent sandbox price index](https://withruntime.com/pricing/agent-sandbox-price-index):
330
+ every provider's rates, also as CSV and JSON
331
+ - [Sandbox cost calculator](https://withruntime.com/calculators/sandbox-cost-calculator)
332
+ and [Runtime's pricing](https://withruntime.com/pricing)
333
+
334
+ ## Reliability and support
335
+
336
+ - **Status:** https://withruntime.com/status checks the API from outside every
337
+ two minutes. It starts a real sandbox every ten minutes. It keeps every day's
338
+ record. The same status is also at https://withruntime.com/status.md and
339
+ https://withruntime.com/status.json.
340
+ - **Uptime Promise:** we promise paid accounts 99% API uptime
341
+ each calendar month. If a month falls below that, 10% of that
342
+ month's charges is paid back as credit. This is automatic
343
+ (https://withruntime.com/legal/sla).
344
+ - **Security and compliance:** https://withruntime.com/docs/trust.
345
+ - **What changed:** https://withruntime.com/changelog.
346
+ - **Help:** `npx withruntime support "<question>"`, or
347
+ `npx withruntime feedback "<text>"` for anything that got in your way.
348
+
349
+ Docs: https://withruntime.com/docs/python.
350
+
351
+ The package was called `withruntime-cloud`, imported as `runtime_cloud`, until
352
+ 0.3.0. That name stopped at 0.5.1. It gets no new releases. Use `withruntime`.
@@ -0,0 +1,326 @@
1
+ # Runtime Cloud Python SDK
2
+
3
+ One client for every Runtime Cloud product, sync and async. It needs Python 3.9
4
+ or later (the `python3` that a Mac comes with). It uses only the standard
5
+ library.
6
+
7
+ ```bash no-run
8
+ pip install withruntime
9
+ ```
10
+
11
+ The client uses `RUNTIME_API_KEY` if it is set. If not, it uses the connection
12
+ that this machine saved when you ran `npx withruntime login`. That takes one
13
+ approval in the browser. You do not copy a key. On a server or a CI runner, set
14
+ `RUNTIME_API_KEY` from your secret manager. To get a new key, run
15
+ `npx withruntime keys create`. It prints the key once, after an owner, admin or
16
+ developer of the account approves it in the browser. You can also create a key
17
+ at https://withruntime.com/account/keys. Never put a key in source code, a URL
18
+ or a command-line argument.
19
+
20
+ ```python
21
+ from withruntime import Sandbox
22
+
23
+ with Sandbox.create() as sbx:
24
+ sbx.files.write("/workspace/invoice.py", "print(sum([125, 250, 375]))\n")
25
+ result = sbx.exec("python3 /workspace/invoice.py")
26
+ print(result.exit_code, result.stdout)
27
+ ```
28
+
29
+ `Sandbox.create()` takes no arguments. It returns when the sandbox is running.
30
+ Leaving the `with` block deletes the sandbox. Set `keep=True` to stop it
31
+ instead. Its disk stays.
32
+
33
+ With no arguments, you get the free usage. No card is needed. You can run up to
34
+ four sandboxes at once without credit. The current default image
35
+ includes NumPy, pandas and matplotlib. See the
36
+ [sandbox environment](https://withruntime.com/docs/sandbox-environment). The
37
+ free usage is spent first, then prepaid credit. You do not choose. `funding` is
38
+ accepted and ignored.
39
+
40
+ `AsyncRuntime` is the same client for asyncio, with the same methods:
41
+
42
+ ```python
43
+ import asyncio
44
+ from withruntime import AsyncRuntime
45
+
46
+
47
+ async def main():
48
+ async with AsyncRuntime() as runtime:
49
+ async with await runtime.sandboxes.create() as sbx:
50
+ print((await sbx.exec("uname -a")).stdout)
51
+
52
+
53
+ asyncio.run(main())
54
+ ```
55
+
56
+ A sandbox has these methods and products:
57
+
58
+ - Methods: `exec`, `exec_stream`, `spawn`, `terminal`, and `forward_port` (which
59
+ maps a TCP port in the sandbox to a local port).
60
+ - `files`: read, write, list, glob, stat, rename and remove. Upload and download
61
+ directories.
62
+ - Lifecycle: `pause`, `wake`, `extend`, `update` (its name, environment and
63
+ settings), `keep_alive`, `fork`, `snapshot`, `switch_image` (moves it to a new
64
+ image and keeps /workspace), and `delete` (removes it for good).
65
+ - Products: `interpreter`, `network`, `previews`, `desktop`, `mounts` (your S3,
66
+ R2 or Google Cloud Storage bucket as a folder), `tailscale` (a paid sandbox on
67
+ your own tailnet), `metrics`, and `mcp` (servers from the MCP catalog, run in
68
+ the sandbox).
69
+
70
+ A paused sandbox also wakes by itself on the next call. `Sandbox.get_or_create(name)`
71
+ returns the sandbox with that name, or creates it.
72
+
73
+ A sandbox pauses itself after 300 seconds with nothing happening in it. It
74
+ keeps its memory and processes, so an idle sandbox uses no compute.
75
+ `idle_pause_seconds` sets the idle time from 60 to
76
+ 86,400. A shorter time is raised to 60. Set it to 0
77
+ to never pause.
78
+
79
+ Each product has one plural name, as in the CLI: `runtime.sandboxes`,
80
+ `snapshots`, `images`, `volumes`, `jobs`, `domains`, `ports`, `ips` and
81
+ `networks`. The old singular names (`runtime.sandbox`, `address`, `tunnel` and
82
+ the rest) still work for now. The [guide](https://withruntime.com/docs/python)
83
+ lists them.
84
+
85
+ The client has `sandboxes`, `images`, `volumes`, `snapshots`, `jobs`, `secrets`,
86
+ `limits`, `feedback` and `support`. It has `webhooks`, `events`, `otel` and
87
+ `audit` to watch the account. It has `domains`, `ports`, `ips` and `networks`
88
+ (with `networks.wireguard`) to connect sandboxes to your own systems (paid
89
+ accounts). It has `mcp`, `sso`, `billing`, `referrals` and `switching`.
90
+
91
+ `runtime.limits.get()` (0.3.1 and later) says whether the key is read-only, and
92
+ what its agent may still spend today. Every write carries an idempotency key, so
93
+ a retry never runs a write twice. Errors are typed. They carry `code`, `hint` and
94
+ `request_id`.
95
+
96
+ `RuntimeAPIError` and `RuntimeConnectionError` are the SDK's error names. They do
97
+ not shadow Python's built-in errors. The older `RuntimeError` and
98
+ `ConnectionError` exports are still aliases.
99
+
100
+ `runtime.usage_requests("7d")` reads the account's API call counts and error
101
+ rates. Counts are exact decimal strings. An empty window has `errorPercent: None`.
102
+
103
+ `runtime.usage_export(since, until, cursor=...)` reads one page of settled usage
104
+ over a UTC range, with its server CSV. `finalThrough` is the time before which
105
+ no more charges will settle. Each row's `final` is True once its resource is
106
+ deleted. After that, it cannot be charged anything more.
107
+
108
+ ## Behind a proxy
109
+
110
+ The client reads `HTTPS_PROXY`, `HTTP_PROXY` and `NO_PROXY`, for sync and async
111
+ calls. The names work in upper or lower case. If both cases are set, lower case
112
+ wins.
113
+
114
+ Calls to the API and terminal WebSockets go through `HTTPS_PROXY` as a CONNECT
115
+ tunnel. Any `user:password@` in the proxy address is sent to the proxy.
116
+ `HTTP_PROXY` is used only for `http://` addresses. It is never used for the
117
+ HTTPS API.
118
+
119
+ `NO_PROXY` lists hosts to reach directly. Split them with commas or spaces. A
120
+ name covers its subdomains. A leading dot is allowed. `host:port` limits the
121
+ rule to one port. `*` means every host.
122
+
123
+ A proxy address without a scheme is treated as `http://`. Only `http://` proxies
124
+ are supported. Any other scheme fails at once with `invalid_proxy`.
125
+
126
+ When a call cannot get through, the error names the proxy it tried. It leaves
127
+ out the password. For example: `No answer from Runtime at https://api.withruntime.com through the
128
+ proxy http://proxy.internal:3128 (HTTPS_PROXY).`
129
+
130
+ ## Code written for E2B
131
+
132
+ `withruntime.e2b` translates supported E2B Python sandbox calls. Change the
133
+ import and set `RUNTIME_API_KEY`:
134
+
135
+ ```python no-run
136
+ from withruntime.e2b import Sandbox, AsyncSandbox # was: from e2b import ...
137
+ from withruntime.e2b.code_interpreter import Sandbox # was: from e2b_code_interpreter import Sandbox
138
+ ```
139
+
140
+ Sandboxes get E2B's defaults: 2 vCPU and 512 MiB. There is no time limit unless
141
+ you pass `timeout`. A sandbox runs while it works, and pauses itself when it is
142
+ idle. Timeouts are in seconds, as in E2B's Python SDK. `runtime_create={...}`
143
+ passes Runtime's own create fields, for example `{"idle_pause_seconds": 0}`.
144
+
145
+ A call that Runtime does not handle the way E2B does raises
146
+ `NotSupportedException` before anything happens. The error names what to use
147
+ instead. Importing `withruntime` alone does not load it. The sync `Sandbox` is
148
+ generated from the async one by `scripts/generate_e2b_sync.py`.
149
+
150
+ ## Code written for Daytona or Vercel Sandbox
151
+
152
+ `withruntime.daytona` and `withruntime.vercel` do the same for Daytona's Python
153
+ SDK and Vercel Sandbox's. Change the import:
154
+
155
+ ```python no-run
156
+ from withruntime.daytona import Daytona, AsyncDaytona # was: from daytona import ...
157
+ from withruntime.vercel import sandbox # was: from vercel import sandbox
158
+ from withruntime.vercel.sandbox import sync as sandbox # was: from vercel.sandbox import sync as sandbox
159
+ ```
160
+
161
+ Sandboxes get the rival's defaults. For Daytona, that is 1 vCPU, 1 GiB and a
162
+ 3 GiB disk. It pauses after 15 idle minutes. For Vercel, that is 2 vCPUs with
163
+ 2048 MiB each. Vercel sandboxes are persistent, with no time limit unless you
164
+ pass one. `runtime_create={...}` passes Runtime's own create fields.
165
+
166
+ A Daytona or Vercel key is never sent anywhere. A call that Runtime does not
167
+ handle the same way raises `NotSupportedError` before anything happens. The
168
+ error names what to use instead. The sync modules are generated from the async
169
+ ones by `scripts/generate_dropin_sync.py`. `DAYTONA.md` and `VERCEL.md` in the
170
+ JavaScript package list every mapping and gap.
171
+
172
+ ## Code written for Blaxel
173
+
174
+ `withruntime.blaxel` translates supported Blaxel Python sandbox calls (`blaxel`
175
+ 0.4.11) on Runtime. Change the import and set `RUNTIME_API_KEY`. Or run
176
+ `npx withruntime login` once:
177
+
178
+ ```python no-run
179
+ from withruntime.blaxel import SandboxInstance # was: from blaxel.core import SandboxInstance
180
+ from withruntime.blaxel import SyncSandboxInstance # was: from blaxel.core import SyncSandboxInstance
181
+ ```
182
+
183
+ `withruntime.blaxel.core` holds the same names. So replacing `blaxel.` with
184
+ `withruntime.blaxel.` also works. A Runtime key in `BL_API_KEY` is used. A
185
+ Blaxel key is never sent anywhere.
186
+
187
+ How it maps:
188
+
189
+ - **Sandboxes.** `create`, `create_if_not_exists` (one sandbox when two calls
190
+ race), `get`, `get_by_external_id`, `list`, `delete`, `fork`, `snapshots` and
191
+ the `update_*` calls work. `memory` is kept, with one vCPU for every 2048 MB.
192
+ Blaxel's general templates run on Runtime's image: `blaxel/base-image`,
193
+ `py-app`, `ts-app`, `node`, `jupyter-server` and `docker-in-sandbox`. Any other
194
+ image `ns/name:tag` starts from the ready Runtime image `ns-name:tag`. Every
195
+ `/` becomes `-`. The tag is `latest` when none is given. So the code keeps
196
+ Blaxel's image string. A missing image raises `NotSupportedError` with the
197
+ build command. For example: `npx withruntime images build
198
+ --dockerfile Dockerfile --name my-company-agent-image -t
199
+ my-company-agent-image:latest`. Volumes mount Runtime volumes of the same
200
+ name. Without credit, a sandbox has at most 4096 MB of memory (2 vCPUs).
201
+ - **Standby.** A sandbox pauses after a minute with no call. Blaxel's standby
202
+ time is about 15 seconds. A paused sandbox keeps its memory and processes. It
203
+ wakes on the next command, file call or preview visit. `archive` pauses it and
204
+ keeps its memory too. A sandbox has no time limit, so a long command is never
205
+ paused by a clock. `keep_alive` raises the idle pause to the process's time
206
+ limit. For a process with no time limit, it turns the idle pause off. The
207
+ first call from any client that finds no `keep_alive` process running brings
208
+ back the old idle pause.
209
+ - **How long it is kept.** A paused sandbox with no `ttl` or `lifecycle` is kept
210
+ 365 days. Blaxel keeps it until you delete it. A limit is rounded up to whole
211
+ days of pause. A limit of an hour or less, counted from creation, also ends the
212
+ sandbox at that time. Without credit, a paused sandbox is kept seven days. That
213
+ is the most Blaxel's first tier keeps.
214
+ - **Envs** reach every process, from any client. They are kept on the sandbox. A
215
+ process's own `env` wins.
216
+ - **Paths.** `/blaxel` is Blaxel's working directory and `HOME`. On Runtime it is
217
+ `/workspace`. Relative paths and `~` start there.
218
+ - **Processes.** You can find a process by name from any client, as long as
219
+ Runtime still has its record. Runtime keeps the running processes and the last
220
+ 16 that ended.
221
+ - **Previews** are Runtime previews of each port. A private preview's
222
+ `tokens.create(expires_at)` gives a token. The token works as Blaxel's
223
+ `X-Blaxel-Preview-Token` header or `bl_preview_token` address parameter.
224
+ `fetch(port)` uses a private preview for you.
225
+ - **Code interpreter.** `CodeInterpreter.run_code` and `create_code_context` run
226
+ on Runtime's interpreter. They return Blaxel's result classes.
227
+ - **Errors.** Errors keep Blaxel's classes: `SandboxAPIError`, `ResponseError`
228
+ and `SnapshotAPIError`. Each one also carries Runtime's `code`, `hint` and
229
+ `request_id`.
230
+ - **Runtime fields.** `runtime_create={...}` passes Runtime's own create fields,
231
+ for example `{"idle_pause_seconds": 0}`. `sandbox.withruntime` is the Runtime
232
+ sandbox underneath.
233
+
234
+ Differences you can hit:
235
+
236
+ - Commands run as root, as on Blaxel, with the sandbox's `PATH` and `HOME`
237
+ (`/workspace`). File calls act as the sandbox user. They fall back to `sudo`
238
+ where only root may act. So they reach files that a root process made,
239
+ including private ones. A file they write belongs to the sandbox user.
240
+ - A key sees the sandboxes it made. Another key's calls get 404. The exception is
241
+ when an owner or admin makes the key account-wide, as a Blaxel workspace key is
242
+ ([teams](https://withruntime.com/docs/teams#keys-in-a-team)).
243
+ - Public previews need a paid sandbox.
244
+ - A process's `pid` is Runtime's process id. It is not an operating-system number.
245
+ - `sandbox.sessions` makes a Runtime sandbox session. `SandboxInstance.from_session`
246
+ drives the sandbox with its token. That gives commands, files and previews of
247
+ that one sandbox. A session lasts a day at most. `Access-Control-Allow-Origin`
248
+ in `response_headers` names the page that may use it.
249
+
250
+ These raise `NotSupportedError` before anything happens. The error names what to
251
+ use instead: regions outside the US, read-only and ephemeral volumes, drives,
252
+ `extra_args` other than `iptables`, egress and subnet settings, preview headers,
253
+ custom domains and preview expiry, restoring a snapshot in place (fork from it
254
+ instead), codegen, `system`, schedules, and Blaxel's agents, models, tools, jobs
255
+ and applications. The sync module is generated from the async one by
256
+ `scripts/generate_dropin_sync.py`.
257
+
258
+ ## Code written for Modal Sandboxes
259
+
260
+ `withruntime.modal` runs code written for Modal's Sandboxes (`modal` 1.6.2),
261
+ sync and `.aio`. Change the import and set `RUNTIME_API_KEY`:
262
+
263
+ ```python no-run
264
+ from withruntime import modal # was: import modal
265
+ ```
266
+
267
+ Modal's own sandbox examples run unchanged if they use none of the features
268
+ refused below. A Modal token is never needed or sent. Commands run as root, as
269
+ in a Modal container. A `timeout` ends the sandbox. An `idle_timeout` pauses it
270
+ and keeps its memory. The next call wakes it.
271
+
272
+ Images build from Modal's recipes. `publish(name)` makes a Runtime image name
273
+ that `Image.from_name` finds. Memory snapshots (`_experimental_enable_snapshot`)
274
+ keep the running entrypoint.
275
+
276
+ These raise `CompatibilityError` before anything is created. The error names
277
+ what to use instead: GPUs; Modal Functions and Dicts; named secrets; volumes
278
+ made on first use; sidecars; connect tokens; and directory snapshots. `COMPATIBILITY.md`
279
+ lists every mapping.
280
+
281
+ ## Agent frameworks
282
+
283
+ `withruntime.openai_agents` is a sandbox client for the OpenAI Agents SDK's
284
+ `SandboxAgent`. Install it with `pip install "withruntime[openai-agents]"`.
285
+ `withruntime.deepagents` is a Deep Agents sandbox backend. `withruntime.tools`
286
+ gives LangChain, CrewAI, LlamaIndex, Pydantic AI, Google ADK and any framework
287
+ that takes typed functions four sandbox tools. See
288
+ https://withruntime.com/docs/frameworks.
289
+
290
+ ## How Runtime compares
291
+
292
+ For typical agent work, Runtime costs 42% to 88% less than fourteen
293
+ other sandbox providers at their published rates. These pages show the
294
+ arithmetic. Each one lists the rates it used and the date they were read:
295
+
296
+ - [Best sandbox for AI agents](https://withruntime.com/compare/best-sandbox-for-ai-agents)
297
+ - Alternatives to [E2B](https://withruntime.com/compare/e2b-alternatives),
298
+ [Daytona](https://withruntime.com/compare/daytona-alternatives),
299
+ [Modal](https://withruntime.com/compare/modal-alternatives) and
300
+ [Vercel Sandbox](https://withruntime.com/compare/vercel-sandbox-alternatives)
301
+ - [E2B vs Daytona](https://withruntime.com/compare/e2b-vs-daytona), and
302
+ [every comparison](https://withruntime.com/compare)
303
+ - [The agent sandbox price index](https://withruntime.com/pricing/agent-sandbox-price-index):
304
+ every provider's rates, also as CSV and JSON
305
+ - [Sandbox cost calculator](https://withruntime.com/calculators/sandbox-cost-calculator)
306
+ and [Runtime's pricing](https://withruntime.com/pricing)
307
+
308
+ ## Reliability and support
309
+
310
+ - **Status:** https://withruntime.com/status checks the API from outside every
311
+ two minutes. It starts a real sandbox every ten minutes. It keeps every day's
312
+ record. The same status is also at https://withruntime.com/status.md and
313
+ https://withruntime.com/status.json.
314
+ - **Uptime Promise:** we promise paid accounts 99% API uptime
315
+ each calendar month. If a month falls below that, 10% of that
316
+ month's charges is paid back as credit. This is automatic
317
+ (https://withruntime.com/legal/sla).
318
+ - **Security and compliance:** https://withruntime.com/docs/trust.
319
+ - **What changed:** https://withruntime.com/changelog.
320
+ - **Help:** `npx withruntime support "<question>"`, or
321
+ `npx withruntime feedback "<text>"` for anything that got in your way.
322
+
323
+ Docs: https://withruntime.com/docs/python.
324
+
325
+ The package was called `withruntime-cloud`, imported as `runtime_cloud`, until
326
+ 0.3.0. That name stopped at 0.5.1. It gets no new releases. Use `withruntime`.