e2b 2.62.0__tar.gz → 2.63.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 (263) hide show
  1. {e2b-2.62.0 → e2b-2.63.0}/PKG-INFO +3 -1
  2. {e2b-2.62.0 → e2b-2.63.0}/README.md +2 -0
  3. {e2b-2.62.0 → e2b-2.63.0}/e2b/__init__.py +2 -0
  4. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/__init__.py +6 -0
  5. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/sandboxes/delete_sandboxes_sandbox_id.py +4 -0
  6. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/sandboxes/get_sandboxes.py +8 -4
  7. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_connect.py +12 -4
  8. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_pause.py +12 -4
  9. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_resume.py +16 -4
  10. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_snapshots.py +4 -0
  11. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/sandboxes/post_v_2_sandboxes_sandbox_id_connect.py +12 -4
  12. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/templates/get_templates.py +12 -4
  13. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/connect_sandbox.py +2 -1
  14. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/connect_sandbox_v2.py +2 -1
  15. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/error.py +5 -1
  16. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/listed_sandbox.py +13 -0
  17. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/resumed_sandbox.py +2 -1
  18. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/sandbox_detail.py +13 -0
  19. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/sandbox_pause_request.py +14 -0
  20. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client_async/__init__.py +5 -1
  21. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client_sync/__init__.py +5 -1
  22. {e2b-2.62.0 → e2b-2.63.0}/e2b/connection_config.py +4 -1
  23. {e2b-2.62.0 → e2b-2.63.0}/e2b/envd/api.py +9 -0
  24. {e2b-2.62.0 → e2b-2.63.0}/e2b/exceptions.py +16 -0
  25. e2b-2.63.0/e2b/sandbox/commands/stream_input.py +66 -0
  26. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox/sandbox_api.py +5 -0
  27. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox_async/filesystem/filesystem.py +16 -5
  28. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox_async/main.py +10 -0
  29. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox_async/sandbox_api.py +5 -1
  30. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox_sync/commands/command.py +3 -20
  31. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox_sync/commands/pty.py +3 -21
  32. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox_sync/filesystem/filesystem.py +16 -6
  33. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox_sync/main.py +10 -0
  34. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox_sync/sandbox_api.py +5 -1
  35. {e2b-2.62.0 → e2b-2.63.0}/e2b/template/utils.py +5 -1
  36. {e2b-2.62.0 → e2b-2.63.0}/pyproject.toml +2 -2
  37. {e2b-2.62.0 → e2b-2.63.0}/pyproject.toml.orig +2 -2
  38. e2b-2.62.0/e2b/sandbox/commands/stream_input.py +0 -37
  39. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/__init__.py +0 -0
  40. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/__init__.py +0 -0
  41. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/sandboxes/__init__.py +0 -0
  42. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/sandboxes/get_sandboxes_metrics.py +0 -0
  43. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/sandboxes/get_sandboxes_sandbox_id.py +0 -0
  44. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/sandboxes/get_sandboxes_sandbox_id_logs.py +0 -0
  45. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/sandboxes/get_sandboxes_sandbox_id_metrics.py +0 -0
  46. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/sandboxes/get_v2_sandboxes.py +0 -0
  47. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/sandboxes/get_v_2_sandboxes_sandbox_id_logs.py +0 -0
  48. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/sandboxes/post_sandboxes.py +0 -0
  49. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_fork.py +0 -0
  50. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_refreshes.py +0 -0
  51. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_timeout.py +0 -0
  52. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/sandboxes/post_v2_sandboxes.py +0 -0
  53. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/sandboxes/put_sandboxes_sandbox_id_network.py +0 -0
  54. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/secrets/__init__.py +0 -0
  55. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/secrets/delete_secrets_secret_id.py +0 -0
  56. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/secrets/get_secrets.py +0 -0
  57. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/secrets/get_secrets_secret_id.py +0 -0
  58. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/secrets/post_secrets.py +0 -0
  59. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/secrets/post_secrets_secret_id.py +0 -0
  60. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/snapshots/__init__.py +0 -0
  61. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/snapshots/get_snapshots.py +0 -0
  62. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/tags/__init__.py +0 -0
  63. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/tags/delete_templates_tags.py +0 -0
  64. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/tags/get_templates_template_id_tags.py +0 -0
  65. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/tags/get_templates_template_id_tags_count.py +0 -0
  66. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/tags/get_templates_template_id_tags_exists.py +0 -0
  67. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/tags/get_templates_template_id_tags_groups.py +0 -0
  68. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/tags/get_templates_template_id_tags_tag_assignments.py +0 -0
  69. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/tags/post_templates_tags.py +0 -0
  70. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/templates/__init__.py +0 -0
  71. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/templates/delete_templates_template_id.py +0 -0
  72. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/templates/get_default_templates.py +0 -0
  73. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/templates/get_templates_aliases_alias.py +0 -0
  74. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/templates/get_templates_template_id.py +0 -0
  75. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/templates/get_templates_template_id_builds_build_id_logs.py +0 -0
  76. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/templates/get_templates_template_id_builds_build_id_status.py +0 -0
  77. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/templates/get_templates_template_id_files_hash.py +0 -0
  78. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/templates/get_v2_templates.py +0 -0
  79. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/templates/patch_templates_template_id.py +0 -0
  80. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/templates/patch_v_2_templates_template_id.py +0 -0
  81. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/templates/post_v3_templates.py +0 -0
  82. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/templates/post_v_2_templates_template_id_builds_build_id.py +0 -0
  83. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/volumes/__init__.py +0 -0
  84. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/volumes/delete_volumes_volume_id.py +0 -0
  85. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/volumes/get_volumes.py +0 -0
  86. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/volumes/get_volumes_volume_id.py +0 -0
  87. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/api/volumes/post_volumes.py +0 -0
  88. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/client.py +0 -0
  89. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/errors.py +0 -0
  90. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/__init__.py +0 -0
  91. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/assign_template_tags_request.py +0 -0
  92. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/assigned_template_tags.py +0 -0
  93. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/aws_registry.py +0 -0
  94. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/aws_registry_type.py +0 -0
  95. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/build_log_entry.py +0 -0
  96. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/build_status_reason.py +0 -0
  97. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/delete_template_tags_request.py +0 -0
  98. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/gcp_registry.py +0 -0
  99. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/gcp_registry_type.py +0 -0
  100. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/general_registry.py +0 -0
  101. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/general_registry_type.py +0 -0
  102. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/get_templates_template_id_tags_groups_sort.py +0 -0
  103. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/log_level.py +0 -0
  104. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/logs_direction.py +0 -0
  105. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/logs_source.py +0 -0
  106. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/mcp_type_0.py +0 -0
  107. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/new_sandbox.py +0 -0
  108. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/new_sandbox_v2.py +0 -0
  109. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/new_secret.py +0 -0
  110. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/new_volume.py +0 -0
  111. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/order_direction.py +0 -0
  112. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/sandbox.py +0 -0
  113. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/sandbox_auto_resume_config.py +0 -0
  114. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/sandbox_egress_proxy_config_type_0.py +0 -0
  115. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/sandbox_egress_proxy_tls_config_type_0.py +0 -0
  116. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/sandbox_fork_request.py +0 -0
  117. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/sandbox_fork_result.py +0 -0
  118. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/sandbox_iam.py +0 -0
  119. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/sandbox_iam_token.py +0 -0
  120. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/sandbox_iam_tokens.py +0 -0
  121. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/sandbox_lifecycle.py +0 -0
  122. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/sandbox_log.py +0 -0
  123. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/sandbox_log_entry.py +0 -0
  124. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/sandbox_log_entry_fields.py +0 -0
  125. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/sandbox_logs.py +0 -0
  126. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/sandbox_logs_v2_response.py +0 -0
  127. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/sandbox_metric.py +0 -0
  128. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/sandbox_network_config.py +0 -0
  129. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/sandbox_network_config_rules.py +0 -0
  130. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/sandbox_network_rule.py +0 -0
  131. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/sandbox_network_transform.py +0 -0
  132. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/sandbox_network_transform_headers.py +0 -0
  133. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/sandbox_network_update_config.py +0 -0
  134. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/sandbox_network_update_config_rules.py +0 -0
  135. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/sandbox_on_timeout.py +0 -0
  136. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/sandbox_pause_mode.py +0 -0
  137. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/sandbox_refresh_request.py +0 -0
  138. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/sandbox_snapshot_request.py +0 -0
  139. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/sandbox_state.py +0 -0
  140. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/sandbox_timeout_request.py +0 -0
  141. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/sandbox_volume_mount.py +0 -0
  142. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/sandboxes_with_metrics.py +0 -0
  143. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/secret.py +0 -0
  144. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/secret_metadata.py +0 -0
  145. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/secret_update.py +0 -0
  146. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/snapshot_info.py +0 -0
  147. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/team_user.py +0 -0
  148. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/template.py +0 -0
  149. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/template_alias_response.py +0 -0
  150. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/template_build.py +0 -0
  151. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/template_build_file_upload.py +0 -0
  152. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/template_build_file_upload_headers.py +0 -0
  153. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/template_build_info.py +0 -0
  154. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/template_build_logs_response.py +0 -0
  155. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/template_build_request_v3.py +0 -0
  156. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/template_build_start_v2.py +0 -0
  157. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/template_build_status.py +0 -0
  158. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/template_request_response_v3.py +0 -0
  159. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/template_step.py +0 -0
  160. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/template_tag.py +0 -0
  161. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/template_tag_assignment.py +0 -0
  162. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/template_tag_assignments_response.py +0 -0
  163. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/template_tag_exists_response.py +0 -0
  164. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/template_tag_group.py +0 -0
  165. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/template_tag_groups_response.py +0 -0
  166. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/template_tags_count_response.py +0 -0
  167. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/template_update_request.py +0 -0
  168. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/template_update_response.py +0 -0
  169. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/template_with_builds.py +0 -0
  170. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/volume.py +0 -0
  171. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/models/volume_and_token.py +0 -0
  172. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/py.typed +0 -0
  173. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/client/types.py +0 -0
  174. {e2b-2.62.0 → e2b-2.63.0}/e2b/api/metadata.py +0 -0
  175. {e2b-2.62.0 → e2b-2.63.0}/e2b/client.py +0 -0
  176. {e2b-2.62.0 → e2b-2.63.0}/e2b/envd/__init__.py +0 -0
  177. {e2b-2.62.0 → e2b-2.63.0}/e2b/envd/client_async/__init__.py +0 -0
  178. {e2b-2.62.0 → e2b-2.63.0}/e2b/envd/client_shared.py +0 -0
  179. {e2b-2.62.0 → e2b-2.63.0}/e2b/envd/client_sync/__init__.py +0 -0
  180. {e2b-2.62.0 → e2b-2.63.0}/e2b/envd/filesystem/__init__.py +0 -0
  181. {e2b-2.62.0 → e2b-2.63.0}/e2b/envd/filesystem/filesystem_connect.py +0 -0
  182. {e2b-2.62.0 → e2b-2.63.0}/e2b/envd/filesystem/filesystem_pb.py +0 -0
  183. {e2b-2.62.0 → e2b-2.63.0}/e2b/envd/interceptors.py +0 -0
  184. {e2b-2.62.0 → e2b-2.63.0}/e2b/envd/process/__init__.py +0 -0
  185. {e2b-2.62.0 → e2b-2.63.0}/e2b/envd/process/process_connect.py +0 -0
  186. {e2b-2.62.0 → e2b-2.63.0}/e2b/envd/process/process_pb.py +0 -0
  187. {e2b-2.62.0 → e2b-2.63.0}/e2b/envd/rpc.py +0 -0
  188. {e2b-2.62.0 → e2b-2.63.0}/e2b/envd/utils.py +0 -0
  189. {e2b-2.62.0 → e2b-2.63.0}/e2b/envd/versions.py +0 -0
  190. {e2b-2.62.0 → e2b-2.63.0}/e2b/io_utils.py +0 -0
  191. {e2b-2.62.0 → e2b-2.63.0}/e2b/paginator.py +0 -0
  192. {e2b-2.62.0 → e2b-2.63.0}/e2b/py.typed +0 -0
  193. {e2b-2.62.0 → e2b-2.63.0}/e2b/retry.py +0 -0
  194. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox/_git/__init__.py +0 -0
  195. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox/_git/args.py +0 -0
  196. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox/_git/auth.py +0 -0
  197. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox/_git/config.py +0 -0
  198. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox/_git/parse.py +0 -0
  199. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox/_git/types.py +0 -0
  200. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox/commands/command_handle.py +0 -0
  201. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox/commands/main.py +0 -0
  202. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox/filesystem/filesystem.py +0 -0
  203. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox/filesystem/watch_handle.py +0 -0
  204. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox/iam.py +0 -0
  205. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox/main.py +0 -0
  206. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox/mcp.py +0 -0
  207. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox/network.py +0 -0
  208. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox/signature.py +0 -0
  209. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox/utils.py +0 -0
  210. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox_async/commands/command.py +0 -0
  211. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox_async/commands/command_handle.py +0 -0
  212. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox_async/commands/command_input_handle.py +0 -0
  213. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox_async/commands/pty.py +0 -0
  214. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox_async/filesystem/watch_handle.py +0 -0
  215. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox_async/git.py +0 -0
  216. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox_async/paginator.py +0 -0
  217. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox_async/utils.py +0 -0
  218. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox_domains.py +0 -0
  219. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox_sync/commands/command_handle.py +0 -0
  220. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox_sync/filesystem/watch_handle.py +0 -0
  221. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox_sync/git.py +0 -0
  222. {e2b-2.62.0 → e2b-2.63.0}/e2b/sandbox_sync/paginator.py +0 -0
  223. {e2b-2.62.0 → e2b-2.63.0}/e2b/secret/__init__.py +0 -0
  224. {e2b-2.62.0 → e2b-2.63.0}/e2b/secret/base.py +0 -0
  225. {e2b-2.62.0 → e2b-2.63.0}/e2b/secret/secret_async.py +0 -0
  226. {e2b-2.62.0 → e2b-2.63.0}/e2b/secret/secret_sync.py +0 -0
  227. {e2b-2.62.0 → e2b-2.63.0}/e2b/secret/types.py +0 -0
  228. {e2b-2.62.0 → e2b-2.63.0}/e2b/template/consts.py +0 -0
  229. {e2b-2.62.0 → e2b-2.63.0}/e2b/template/dockerfile_parser.py +0 -0
  230. {e2b-2.62.0 → e2b-2.63.0}/e2b/template/logger.py +0 -0
  231. {e2b-2.62.0 → e2b-2.63.0}/e2b/template/main.py +0 -0
  232. {e2b-2.62.0 → e2b-2.63.0}/e2b/template/readycmd.py +0 -0
  233. {e2b-2.62.0 → e2b-2.63.0}/e2b/template/types.py +0 -0
  234. {e2b-2.62.0 → e2b-2.63.0}/e2b/template_async/build_api.py +0 -0
  235. {e2b-2.62.0 → e2b-2.63.0}/e2b/template_async/main.py +0 -0
  236. {e2b-2.62.0 → e2b-2.63.0}/e2b/template_sync/build_api.py +0 -0
  237. {e2b-2.62.0 → e2b-2.63.0}/e2b/template_sync/main.py +0 -0
  238. {e2b-2.62.0 → e2b-2.63.0}/e2b/volume/client/__init__.py +0 -0
  239. {e2b-2.62.0 → e2b-2.63.0}/e2b/volume/client/api/__init__.py +0 -0
  240. {e2b-2.62.0 → e2b-2.63.0}/e2b/volume/client/api/volumes/__init__.py +0 -0
  241. {e2b-2.62.0 → e2b-2.63.0}/e2b/volume/client/api/volumes/delete_volumecontent_volume_id_path.py +0 -0
  242. {e2b-2.62.0 → e2b-2.63.0}/e2b/volume/client/api/volumes/get_volumecontent_volume_id_dir.py +0 -0
  243. {e2b-2.62.0 → e2b-2.63.0}/e2b/volume/client/api/volumes/get_volumecontent_volume_id_file.py +0 -0
  244. {e2b-2.62.0 → e2b-2.63.0}/e2b/volume/client/api/volumes/get_volumecontent_volume_id_path.py +0 -0
  245. {e2b-2.62.0 → e2b-2.63.0}/e2b/volume/client/api/volumes/patch_volumecontent_volume_id_path.py +0 -0
  246. {e2b-2.62.0 → e2b-2.63.0}/e2b/volume/client/api/volumes/post_volumecontent_volume_id_dir.py +0 -0
  247. {e2b-2.62.0 → e2b-2.63.0}/e2b/volume/client/api/volumes/put_volumecontent_volume_id_file.py +0 -0
  248. {e2b-2.62.0 → e2b-2.63.0}/e2b/volume/client/client.py +0 -0
  249. {e2b-2.62.0 → e2b-2.63.0}/e2b/volume/client/errors.py +0 -0
  250. {e2b-2.62.0 → e2b-2.63.0}/e2b/volume/client/models/__init__.py +0 -0
  251. {e2b-2.62.0 → e2b-2.63.0}/e2b/volume/client/models/error.py +0 -0
  252. {e2b-2.62.0 → e2b-2.63.0}/e2b/volume/client/models/patch_volumecontent_volume_id_path_body.py +0 -0
  253. {e2b-2.62.0 → e2b-2.63.0}/e2b/volume/client/models/volume_entry_stat.py +0 -0
  254. {e2b-2.62.0 → e2b-2.63.0}/e2b/volume/client/models/volume_entry_stat_type.py +0 -0
  255. {e2b-2.62.0 → e2b-2.63.0}/e2b/volume/client/py.typed +0 -0
  256. {e2b-2.62.0 → e2b-2.63.0}/e2b/volume/client/types.py +0 -0
  257. {e2b-2.62.0 → e2b-2.63.0}/e2b/volume/client_async/__init__.py +0 -0
  258. {e2b-2.62.0 → e2b-2.63.0}/e2b/volume/client_sync/__init__.py +0 -0
  259. {e2b-2.62.0 → e2b-2.63.0}/e2b/volume/connection_config.py +0 -0
  260. {e2b-2.62.0 → e2b-2.63.0}/e2b/volume/types.py +0 -0
  261. {e2b-2.62.0 → e2b-2.63.0}/e2b/volume/utils.py +0 -0
  262. {e2b-2.62.0 → e2b-2.63.0}/e2b/volume/volume_async.py +0 -0
  263. {e2b-2.62.0 → e2b-2.63.0}/e2b/volume/volume_sync.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: e2b
3
- Version: 2.62.0
3
+ Version: 2.63.0
4
4
  Summary: E2B SDK that give agents cloud environments
5
5
  Author: e2b
6
6
  Author-email: e2b <hello@e2b.dev>
@@ -95,6 +95,8 @@ Per-call params still take precedence over the client's params, and clients are
95
95
 
96
96
  Sandbox `commands` and `files` traffic from all sandboxes in a process shares one HTTP/2 connection pool. Requests are spread over the pooled connections by free stream capacity, and a new connection is dialed only once every existing one is at the server's concurrent-stream limit (`100` for `sandbox.e2b.app`), up to `E2B_MAX_CONNECTIONS` connections per resolved address (default `200`). Past that cap, a request waits for a stream to free up. Long-running streams therefore never queue behind one connection's concurrent-stream limit, and idle processes keep a single connection.
97
97
 
98
+ File downloads (`files.read`) are the exception: they use a separate HTTP/1.1 pool, where each in-flight download holds its own connection. That pool has the same `E2B_MAX_CONNECTIONS` cap per resolved address, so a process runs at most that many downloads at once across all its sandboxes, and further reads wait for a free connection.
99
+
98
100
  `E2B_MAX_CONNECTIONS` is read when `e2b` is imported:
99
101
 
100
102
  ```sh
@@ -70,6 +70,8 @@ Per-call params still take precedence over the client's params, and clients are
70
70
 
71
71
  Sandbox `commands` and `files` traffic from all sandboxes in a process shares one HTTP/2 connection pool. Requests are spread over the pooled connections by free stream capacity, and a new connection is dialed only once every existing one is at the server's concurrent-stream limit (`100` for `sandbox.e2b.app`), up to `E2B_MAX_CONNECTIONS` connections per resolved address (default `200`). Past that cap, a request waits for a stream to free up. Long-running streams therefore never queue behind one connection's concurrent-stream limit, and idle processes keep a single connection.
72
72
 
73
+ File downloads (`files.read`) are the exception: they use a separate HTTP/1.1 pool, where each in-flight download holds its own connection. That pool has the same `E2B_MAX_CONNECTIONS` cap per resolved address, so a process runs at most that many downloads at once across all its sandboxes, and further reads wait for a free connection.
74
+
73
75
  `E2B_MAX_CONNECTIONS` is read when `e2b` is imported:
74
76
 
75
77
  ```sh
@@ -44,6 +44,7 @@ from .exceptions import (
44
44
  GitUpstreamException,
45
45
  BuildException,
46
46
  FileUploadException,
47
+ GuestUnresponsiveException,
47
48
  InvalidArgumentException,
48
49
  NotEnoughSpaceException,
49
50
  NotFoundException,
@@ -208,6 +209,7 @@ __all__ = [
208
209
  "DockerfileSyntaxError",
209
210
  "BuildException",
210
211
  "FileUploadException",
212
+ "GuestUnresponsiveException",
211
213
  "RateLimitException",
212
214
  "VolumeException",
213
215
  "VolumeNotFoundException",
@@ -22,6 +22,7 @@ from e2b.api.metadata import default_headers
22
22
  from e2b.connection_config import ConnectionConfig, ProxyTypes
23
23
  from e2b.exceptions import (
24
24
  AuthenticationException,
25
+ GuestUnresponsiveException,
25
26
  InvalidArgumentException,
26
27
  RateLimitException,
27
28
  ServiceBusyException,
@@ -199,6 +200,11 @@ def handle_api_exception(
199
200
  body = {}
200
201
 
201
202
  message = body["message"] if "message" in body else None
203
+ if body.get("error_code") == GuestUnresponsiveException.code:
204
+ return GuestUnresponsiveException(
205
+ f'{message}. Resume the sandbox with on_resume="reboot".'
206
+ ).with_traceback(stack_trace)
207
+
202
208
  if message is None and e.status_code not in (401, 429, 503):
203
209
  err = default_exception_class(f"{e.status_code}: {e.content}").with_traceback(
204
210
  stack_trace
@@ -34,6 +34,10 @@ def _parse_response(
34
34
  response_404 = Error.from_dict(response.json())
35
35
 
36
36
  return response_404
37
+ if response.status_code == 409:
38
+ response_409 = Error.from_dict(response.json())
39
+
40
+ return response_409
37
41
  if response.status_code == 429:
38
42
  response_429 = Error.from_dict(response.json())
39
43
 
@@ -81,7 +81,8 @@ def sync_detailed(
81
81
  ) -> Response[Union[Error, list["ListedSandbox"]]]:
82
82
  """List running sandboxes
83
83
 
84
- List all running sandboxes. Use GET /v2/sandboxes instead.
84
+ List all running sandboxes. Returns 400 when more than 5000 running sandboxes match; use GET
85
+ /v2/sandboxes to page through them.
85
86
 
86
87
  Args:
87
88
  metadata (Union[Unset, str]):
@@ -112,7 +113,8 @@ def sync(
112
113
  ) -> Optional[Union[Error, list["ListedSandbox"]]]:
113
114
  """List running sandboxes
114
115
 
115
- List all running sandboxes. Use GET /v2/sandboxes instead.
116
+ List all running sandboxes. Returns 400 when more than 5000 running sandboxes match; use GET
117
+ /v2/sandboxes to page through them.
116
118
 
117
119
  Args:
118
120
  metadata (Union[Unset, str]):
@@ -138,7 +140,8 @@ async def asyncio_detailed(
138
140
  ) -> Response[Union[Error, list["ListedSandbox"]]]:
139
141
  """List running sandboxes
140
142
 
141
- List all running sandboxes. Use GET /v2/sandboxes instead.
143
+ List all running sandboxes. Returns 400 when more than 5000 running sandboxes match; use GET
144
+ /v2/sandboxes to page through them.
142
145
 
143
146
  Args:
144
147
  metadata (Union[Unset, str]):
@@ -167,7 +170,8 @@ async def asyncio(
167
170
  ) -> Optional[Union[Error, list["ListedSandbox"]]]:
168
171
  """List running sandboxes
169
172
 
170
- List all running sandboxes. Use GET /v2/sandboxes instead.
173
+ List all running sandboxes. Returns 400 when more than 5000 running sandboxes match; use GET
174
+ /v2/sandboxes to page through them.
171
175
 
172
176
  Args:
173
177
  metadata (Union[Unset, str]):
@@ -100,7 +100,9 @@ def sync_detailed(
100
100
  """Connect sandbox
101
101
 
102
102
  Returns sandbox details. If the sandbox is paused, it will be resumed. TTL is only extended. Use
103
- POST /v2/sandboxes/{sandboxID}/connect instead.
103
+ POST /v2/sandboxes/{sandboxID}/connect instead. Answers 409 with error_code
104
+ sandbox_snapshot_guest_agent_unresponsive when the paused sandbox's snapshot was taken while its
105
+ guest agent was not responding and the request did not ask for `memory: false`.
104
106
 
105
107
  Args:
106
108
  sandbox_id (str):
@@ -135,7 +137,9 @@ def sync(
135
137
  """Connect sandbox
136
138
 
137
139
  Returns sandbox details. If the sandbox is paused, it will be resumed. TTL is only extended. Use
138
- POST /v2/sandboxes/{sandboxID}/connect instead.
140
+ POST /v2/sandboxes/{sandboxID}/connect instead. Answers 409 with error_code
141
+ sandbox_snapshot_guest_agent_unresponsive when the paused sandbox's snapshot was taken while its
142
+ guest agent was not responding and the request did not ask for `memory: false`.
139
143
 
140
144
  Args:
141
145
  sandbox_id (str):
@@ -165,7 +169,9 @@ async def asyncio_detailed(
165
169
  """Connect sandbox
166
170
 
167
171
  Returns sandbox details. If the sandbox is paused, it will be resumed. TTL is only extended. Use
168
- POST /v2/sandboxes/{sandboxID}/connect instead.
172
+ POST /v2/sandboxes/{sandboxID}/connect instead. Answers 409 with error_code
173
+ sandbox_snapshot_guest_agent_unresponsive when the paused sandbox's snapshot was taken while its
174
+ guest agent was not responding and the request did not ask for `memory: false`.
169
175
 
170
176
  Args:
171
177
  sandbox_id (str):
@@ -198,7 +204,9 @@ async def asyncio(
198
204
  """Connect sandbox
199
205
 
200
206
  Returns sandbox details. If the sandbox is paused, it will be resumed. TTL is only extended. Use
201
- POST /v2/sandboxes/{sandboxID}/connect instead.
207
+ POST /v2/sandboxes/{sandboxID}/connect instead. Answers 409 with error_code
208
+ sandbox_snapshot_guest_agent_unresponsive when the paused sandbox's snapshot was taken while its
209
+ guest agent was not responding and the request did not ask for `memory: false`.
202
210
 
203
211
  Args:
204
212
  sandbox_id (str):
@@ -85,7 +85,9 @@ def sync_detailed(
85
85
  ) -> Response[Union[Any, Error]]:
86
86
  """Pause sandbox
87
87
 
88
- Pause the sandbox
88
+ Pause the sandbox. Answers 503 and leaves the sandbox running when it cannot be paused right now:
89
+ its node is busy, it is being snapshotted, or `requireHealthyGuest` was set and the sandbox guest
90
+ agent is not responding; retry later.
89
91
 
90
92
  Args:
91
93
  sandbox_id (str):
@@ -119,7 +121,9 @@ def sync(
119
121
  ) -> Optional[Union[Any, Error]]:
120
122
  """Pause sandbox
121
123
 
122
- Pause the sandbox
124
+ Pause the sandbox. Answers 503 and leaves the sandbox running when it cannot be paused right now:
125
+ its node is busy, it is being snapshotted, or `requireHealthyGuest` was set and the sandbox guest
126
+ agent is not responding; retry later.
123
127
 
124
128
  Args:
125
129
  sandbox_id (str):
@@ -148,7 +152,9 @@ async def asyncio_detailed(
148
152
  ) -> Response[Union[Any, Error]]:
149
153
  """Pause sandbox
150
154
 
151
- Pause the sandbox
155
+ Pause the sandbox. Answers 503 and leaves the sandbox running when it cannot be paused right now:
156
+ its node is busy, it is being snapshotted, or `requireHealthyGuest` was set and the sandbox guest
157
+ agent is not responding; retry later.
152
158
 
153
159
  Args:
154
160
  sandbox_id (str):
@@ -180,7 +186,9 @@ async def asyncio(
180
186
  ) -> Optional[Union[Any, Error]]:
181
187
  """Pause sandbox
182
188
 
183
- Pause the sandbox
189
+ Pause the sandbox. Answers 503 and leaves the sandbox running when it cannot be paused right now:
190
+ its node is busy, it is being snapshotted, or `requireHealthyGuest` was set and the sandbox guest
191
+ agent is not responding; retry later.
184
192
 
185
193
  Args:
186
194
  sandbox_id (str):
@@ -95,7 +95,10 @@ def sync_detailed(
95
95
  ) -> Response[Union[Error, Sandbox]]:
96
96
  """Resume sandbox
97
97
 
98
- Resume the sandbox
98
+ Resume the sandbox. Answers 409 when the sandbox is already running, or when its snapshot was taken
99
+ while the sandbox guest agent was not responding and a plain resume would restore that memory
100
+ (error_code sandbox_snapshot_guest_agent_unresponsive); resume such a sandbox without memory
101
+ (`memory: false`).
99
102
 
100
103
  Args:
101
104
  sandbox_id (str):
@@ -129,7 +132,10 @@ def sync(
129
132
  ) -> Optional[Union[Error, Sandbox]]:
130
133
  """Resume sandbox
131
134
 
132
- Resume the sandbox
135
+ Resume the sandbox. Answers 409 when the sandbox is already running, or when its snapshot was taken
136
+ while the sandbox guest agent was not responding and a plain resume would restore that memory
137
+ (error_code sandbox_snapshot_guest_agent_unresponsive); resume such a sandbox without memory
138
+ (`memory: false`).
133
139
 
134
140
  Args:
135
141
  sandbox_id (str):
@@ -158,7 +164,10 @@ async def asyncio_detailed(
158
164
  ) -> Response[Union[Error, Sandbox]]:
159
165
  """Resume sandbox
160
166
 
161
- Resume the sandbox
167
+ Resume the sandbox. Answers 409 when the sandbox is already running, or when its snapshot was taken
168
+ while the sandbox guest agent was not responding and a plain resume would restore that memory
169
+ (error_code sandbox_snapshot_guest_agent_unresponsive); resume such a sandbox without memory
170
+ (`memory: false`).
162
171
 
163
172
  Args:
164
173
  sandbox_id (str):
@@ -190,7 +199,10 @@ async def asyncio(
190
199
  ) -> Optional[Union[Error, Sandbox]]:
191
200
  """Resume sandbox
192
201
 
193
- Resume the sandbox
202
+ Resume the sandbox. Answers 409 when the sandbox is already running, or when its snapshot was taken
203
+ while the sandbox guest agent was not responding and a plain resume would restore that memory
204
+ (error_code sandbox_snapshot_guest_agent_unresponsive); resume such a sandbox without memory
205
+ (`memory: false`).
194
206
 
195
207
  Args:
196
208
  sandbox_id (str):
@@ -58,6 +58,10 @@ def _parse_response(
58
58
  response_500 = Error.from_dict(response.json())
59
59
 
60
60
  return response_500
61
+ if response.status_code == 503:
62
+ response_503 = Error.from_dict(response.json())
63
+
64
+ return response_503
61
65
  if client.raise_on_unexpected_status:
62
66
  raise errors.UnexpectedStatus(response.status_code, response.content)
63
67
  else:
@@ -100,7 +100,9 @@ def sync_detailed(
100
100
  """Connect sandbox (v2)
101
101
 
102
102
  Returns sandbox details. If the sandbox is paused, it will be resumed. TTL is only extended. The
103
- request body is optional; an omitted timeout defaults to 300 seconds.
103
+ request body is optional; an omitted timeout defaults to 300 seconds. Answers 409 with error_code
104
+ sandbox_snapshot_guest_agent_unresponsive when the paused sandbox's snapshot was taken while its
105
+ guest agent was not responding and the request did not ask for `memory: false`.
104
106
 
105
107
  Args:
106
108
  sandbox_id (str):
@@ -135,7 +137,9 @@ def sync(
135
137
  """Connect sandbox (v2)
136
138
 
137
139
  Returns sandbox details. If the sandbox is paused, it will be resumed. TTL is only extended. The
138
- request body is optional; an omitted timeout defaults to 300 seconds.
140
+ request body is optional; an omitted timeout defaults to 300 seconds. Answers 409 with error_code
141
+ sandbox_snapshot_guest_agent_unresponsive when the paused sandbox's snapshot was taken while its
142
+ guest agent was not responding and the request did not ask for `memory: false`.
139
143
 
140
144
  Args:
141
145
  sandbox_id (str):
@@ -165,7 +169,9 @@ async def asyncio_detailed(
165
169
  """Connect sandbox (v2)
166
170
 
167
171
  Returns sandbox details. If the sandbox is paused, it will be resumed. TTL is only extended. The
168
- request body is optional; an omitted timeout defaults to 300 seconds.
172
+ request body is optional; an omitted timeout defaults to 300 seconds. Answers 409 with error_code
173
+ sandbox_snapshot_guest_agent_unresponsive when the paused sandbox's snapshot was taken while its
174
+ guest agent was not responding and the request did not ask for `memory: false`.
169
175
 
170
176
  Args:
171
177
  sandbox_id (str):
@@ -198,7 +204,9 @@ async def asyncio(
198
204
  """Connect sandbox (v2)
199
205
 
200
206
  Returns sandbox details. If the sandbox is paused, it will be resumed. TTL is only extended. The
201
- request body is optional; an omitted timeout defaults to 300 seconds.
207
+ request body is optional; an omitted timeout defaults to 300 seconds. Answers 409 with error_code
208
+ sandbox_snapshot_guest_agent_unresponsive when the paused sandbox's snapshot was taken while its
209
+ guest agent was not responding and the request did not ask for `memory: false`.
202
210
 
203
211
  Args:
204
212
  sandbox_id (str):
@@ -41,6 +41,10 @@ def _parse_response(
41
41
  response_200.append(response_200_item)
42
42
 
43
43
  return response_200
44
+ if response.status_code == 400:
45
+ response_400 = Error.from_dict(response.json())
46
+
47
+ return response_400
44
48
  if response.status_code == 401:
45
49
  response_401 = Error.from_dict(response.json())
46
50
 
@@ -77,7 +81,8 @@ def sync_detailed(
77
81
  ) -> Response[Union[Error, list["Template"]]]:
78
82
  """List templates
79
83
 
80
- List all templates
84
+ List all templates. Returns 400 when the team has more than 5000 templates; use /v2/templates to
85
+ page through them.
81
86
 
82
87
  Args:
83
88
  team_id (Union[Unset, str]): Identifier of the team, as its UUID or its public project ID
@@ -109,7 +114,8 @@ def sync(
109
114
  ) -> Optional[Union[Error, list["Template"]]]:
110
115
  """List templates
111
116
 
112
- List all templates
117
+ List all templates. Returns 400 when the team has more than 5000 templates; use /v2/templates to
118
+ page through them.
113
119
 
114
120
  Args:
115
121
  team_id (Union[Unset, str]): Identifier of the team, as its UUID or its public project ID
@@ -136,7 +142,8 @@ async def asyncio_detailed(
136
142
  ) -> Response[Union[Error, list["Template"]]]:
137
143
  """List templates
138
144
 
139
- List all templates
145
+ List all templates. Returns 400 when the team has more than 5000 templates; use /v2/templates to
146
+ page through them.
140
147
 
141
148
  Args:
142
149
  team_id (Union[Unset, str]): Identifier of the team, as its UUID or its public project ID
@@ -166,7 +173,8 @@ async def asyncio(
166
173
  ) -> Optional[Union[Error, list["Template"]]]:
167
174
  """List templates
168
175
 
169
- List all templates
176
+ List all templates. Returns 400 when the team has more than 5000 templates; use /v2/templates to
177
+ page through them.
170
178
 
171
179
  Args:
172
180
  team_id (Union[Unset, str]): Identifier of the team, as its UUID or its public project ID
@@ -18,7 +18,8 @@ class ConnectSandbox:
18
18
  only: the sandbox cold-boots fresh and any memory in the snapshot is ignored, never modified or deleted. Disk
19
19
  state has crash-recovery semantics — writes not flushed before the pause may be lost. A no-op for snapshots that
20
20
  contain no memory. Rejected with an error in environments where this capability is not enabled, never silently
21
- downgraded to a memory restore.
21
+ downgraded to a memory restore. A snapshot taken while the sandbox guest agent was not responding
22
+ (envdUnresponsiveAtPause) can only be resumed this way, and needs no enablement.
22
23
  """
23
24
 
24
25
  timeout: int
@@ -19,7 +19,8 @@ class ConnectSandboxV2:
19
19
  only: the sandbox cold-boots fresh and any memory in the snapshot is ignored, never modified or deleted. Disk
20
20
  state has crash-recovery semantics — writes not flushed before the pause may be lost. A no-op for snapshots that
21
21
  contain no memory. Rejected with an error in environments where this capability is not enabled, never silently
22
- downgraded to a memory restore.
22
+ downgraded to a memory restore. A snapshot taken while the sandbox guest agent was not responding
23
+ (envdUnresponsiveAtPause) can only be resumed this way, and needs no enablement.
23
24
  """
24
25
 
25
26
  timeout: Union[Unset, int] = 300
@@ -20,7 +20,11 @@ class Error:
20
20
  node could not create the sandbox this time; retry), sandbox_create_refused (a node refused the sandbox for a
21
21
  reason no retry changes, such as a vcpu count out of bounds in the stored build; a server error, since no
22
22
  request field reaches that check), internal_server_error, secret_limit_reached, idempotency_request_mismatch,
23
- idempotency_in_progress, idempotency_outcome_unknown.
23
+ idempotency_in_progress, idempotency_outcome_unknown, cluster_registration_invalid,
24
+ cluster_registration_conflict, cluster_assignment_invalid, cluster_assignment_project_not_found,
25
+ cluster_assignment_cluster_not_found, cluster_assignment_already_assigned, cluster_assignment_cluster_deleting,
26
+ sandbox_snapshot_guest_agent_unresponsive (a plain resume of a snapshot taken while the sandbox guest agent was
27
+ not responding; resume it with memory: false).
24
28
  """
25
29
 
26
30
  code: int
@@ -32,6 +32,11 @@ class ListedSandbox:
32
32
  envd_version (str): Version of the envd running in the sandbox
33
33
  alias (Union[Unset, str]): Alias of the template
34
34
  metadata (Union[Unset, Any]):
35
+ envd_unresponsive_at_pause (Union[Unset, bool]): True when the snapshot a paused sandbox would resume from was
36
+ taken while the sandbox guest agent was not responding. A plain resume of it is refused with 409 and error_code
37
+ sandbox_snapshot_guest_agent_unresponsive, because restoring that memory would bring the unresponsive agent
38
+ back; resume it without memory (`memory: false`), which cold-boots the sandbox from its disk. Omitted for a
39
+ running sandbox and for a snapshot whose agent answered.
35
40
  volume_mounts (Union[Unset, list['SandboxVolumeMount']]):
36
41
  """
37
42
 
@@ -47,6 +52,7 @@ class ListedSandbox:
47
52
  envd_version: str
48
53
  alias: Union[Unset, str] = UNSET
49
54
  metadata: Union[Unset, Any] = UNSET
55
+ envd_unresponsive_at_pause: Union[Unset, bool] = UNSET
50
56
  volume_mounts: Union[Unset, list["SandboxVolumeMount"]] = UNSET
51
57
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
52
58
 
@@ -75,6 +81,8 @@ class ListedSandbox:
75
81
 
76
82
  metadata = self.metadata
77
83
 
84
+ envd_unresponsive_at_pause = self.envd_unresponsive_at_pause
85
+
78
86
  volume_mounts: Union[Unset, list[dict[str, Any]]] = UNSET
79
87
  if not isinstance(self.volume_mounts, Unset):
80
88
  volume_mounts = []
@@ -102,6 +110,8 @@ class ListedSandbox:
102
110
  field_dict["alias"] = alias
103
111
  if metadata is not UNSET:
104
112
  field_dict["metadata"] = metadata
113
+ if envd_unresponsive_at_pause is not UNSET:
114
+ field_dict["envdUnresponsiveAtPause"] = envd_unresponsive_at_pause
105
115
  if volume_mounts is not UNSET:
106
116
  field_dict["volumeMounts"] = volume_mounts
107
117
 
@@ -136,6 +146,8 @@ class ListedSandbox:
136
146
 
137
147
  metadata = d.pop("metadata", UNSET)
138
148
 
149
+ envd_unresponsive_at_pause = d.pop("envdUnresponsiveAtPause", UNSET)
150
+
139
151
  volume_mounts = []
140
152
  _volume_mounts = d.pop("volumeMounts", UNSET)
141
153
  for volume_mounts_item_data in _volume_mounts or []:
@@ -156,6 +168,7 @@ class ListedSandbox:
156
168
  envd_version=envd_version,
157
169
  alias=alias,
158
170
  metadata=metadata,
171
+ envd_unresponsive_at_pause=envd_unresponsive_at_pause,
159
172
  volume_mounts=volume_mounts,
160
173
  )
161
174
 
@@ -19,7 +19,8 @@ class ResumedSandbox:
19
19
  fresh and any memory in the snapshot is ignored, never modified or deleted. Disk state has crash-recovery
20
20
  semantics — writes not flushed before the pause may be lost. A no-op for snapshots that contain no memory.
21
21
  Rejected with an error in environments where this capability is not enabled, never silently downgraded to a
22
- memory restore.
22
+ memory restore. A snapshot taken while the sandbox guest agent was not responding (envdUnresponsiveAtPause) can
23
+ only be resumed this way, and needs no enablement.
23
24
  """
24
25
 
25
26
  timeout: Union[Unset, int] = 15
@@ -34,6 +34,11 @@ class SandboxDetail:
34
34
  disk_size_mb (int): Disk size for the sandbox in MiB
35
35
  state (SandboxState): State of the sandbox
36
36
  alias (Union[Unset, str]): Alias of the template
37
+ envd_unresponsive_at_pause (Union[Unset, bool]): True when the snapshot a paused sandbox would resume from was
38
+ taken while the sandbox guest agent was not responding. A plain resume of it is refused with 409 and error_code
39
+ sandbox_snapshot_guest_agent_unresponsive, because restoring that memory would bring the unresponsive agent
40
+ back; resume it without memory (`memory: false`), which cold-boots the sandbox from its disk. Omitted for a
41
+ running sandbox and for a snapshot whose agent answered.
37
42
  envd_access_token (Union[Unset, str]): Access token used for envd communication
38
43
  allow_internet_access (Union[None, Unset, bool]): Whether internet access was explicitly enabled or disabled for
39
44
  the sandbox. Null means it was not explicitly set.
@@ -59,6 +64,7 @@ class SandboxDetail:
59
64
  disk_size_mb: int
60
65
  state: SandboxState
61
66
  alias: Union[Unset, str] = UNSET
67
+ envd_unresponsive_at_pause: Union[Unset, bool] = UNSET
62
68
  envd_access_token: Union[Unset, str] = UNSET
63
69
  allow_internet_access: Union[None, Unset, bool] = UNSET
64
70
  domain: Union[None, Unset, str] = UNSET
@@ -92,6 +98,8 @@ class SandboxDetail:
92
98
 
93
99
  alias = self.alias
94
100
 
101
+ envd_unresponsive_at_pause = self.envd_unresponsive_at_pause
102
+
95
103
  envd_access_token = self.envd_access_token
96
104
 
97
105
  allow_internet_access: Union[None, Unset, bool]
@@ -145,6 +153,8 @@ class SandboxDetail:
145
153
  )
146
154
  if alias is not UNSET:
147
155
  field_dict["alias"] = alias
156
+ if envd_unresponsive_at_pause is not UNSET:
157
+ field_dict["envdUnresponsiveAtPause"] = envd_unresponsive_at_pause
148
158
  if envd_access_token is not UNSET:
149
159
  field_dict["envdAccessToken"] = envd_access_token
150
160
  if allow_internet_access is not UNSET:
@@ -193,6 +203,8 @@ class SandboxDetail:
193
203
 
194
204
  alias = d.pop("alias", UNSET)
195
205
 
206
+ envd_unresponsive_at_pause = d.pop("envdUnresponsiveAtPause", UNSET)
207
+
196
208
  envd_access_token = d.pop("envdAccessToken", UNSET)
197
209
 
198
210
  def _parse_allow_internet_access(data: object) -> Union[None, Unset, bool]:
@@ -257,6 +269,7 @@ class SandboxDetail:
257
269
  disk_size_mb=disk_size_mb,
258
270
  state=state,
259
271
  alias=alias,
272
+ envd_unresponsive_at_pause=envd_unresponsive_at_pause,
260
273
  envd_access_token=envd_access_token,
261
274
  allow_internet_access=allow_internet_access,
262
275
  domain=domain,
@@ -17,19 +17,30 @@ class SandboxPauseRequest:
17
17
  persisted and resuming the sandbox cold-boots (reboots) it from disk, losing in-memory state, running processes,
18
18
  and open connections. Resume it with an explicit request (connect or resume); auto-resume, which can be
19
19
  triggered by arbitrary traffic, refuses such a sandbox. Defaults to true. Default: True.
20
+ require_healthy_guest (Union[Unset, bool]): The pause checks that the sandbox guest agent answers before it
21
+ takes the snapshot. By default an unresponsive agent is recorded on the snapshot and the pause proceeds; the
22
+ sandbox then shows `envdUnresponsiveAtPause` and a later resume must ask for `memory: false`, since restoring
23
+ that memory would bring the unresponsive agent back. With this true, the pause is instead refused with 503 while
24
+ the agent does not answer, and the sandbox keeps running. A filesystem-only pause (`memory: false`) is always
25
+ refused while the agent does not answer, whatever this says. Default: False.
20
26
  """
21
27
 
22
28
  memory: Union[Unset, bool] = True
29
+ require_healthy_guest: Union[Unset, bool] = False
23
30
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
24
31
 
25
32
  def to_dict(self) -> dict[str, Any]:
26
33
  memory = self.memory
27
34
 
35
+ require_healthy_guest = self.require_healthy_guest
36
+
28
37
  field_dict: dict[str, Any] = {}
29
38
  field_dict.update(self.additional_properties)
30
39
  field_dict.update({})
31
40
  if memory is not UNSET:
32
41
  field_dict["memory"] = memory
42
+ if require_healthy_guest is not UNSET:
43
+ field_dict["requireHealthyGuest"] = require_healthy_guest
33
44
 
34
45
  return field_dict
35
46
 
@@ -38,8 +49,11 @@ class SandboxPauseRequest:
38
49
  d = dict(src_dict)
39
50
  memory = d.pop("memory", UNSET)
40
51
 
52
+ require_healthy_guest = d.pop("requireHealthyGuest", UNSET)
53
+
41
54
  sandbox_pause_request = cls(
42
55
  memory=memory,
56
+ require_healthy_guest=require_healthy_guest,
43
57
  )
44
58
 
45
59
  sandbox_pause_request.additional_properties = d
@@ -217,6 +217,7 @@ def get_envd_api(
217
217
  *,
218
218
  for_streaming: bool = False,
219
219
  retry_connect: bool = True,
220
+ http_version: Optional[HttpVersion] = None,
220
221
  ) -> httpx.AsyncClient:
221
222
  """An httpx client for a sandbox's envd HTTP API (file transfers, health
222
223
  checks) on the shared transports. The client itself is a cheap stateless
@@ -225,7 +226,10 @@ def get_envd_api(
225
226
  return httpx.AsyncClient(
226
227
  base_url=base_url,
227
228
  transport=get_transport(
228
- config, for_streaming=for_streaming, retry_connect=retry_connect
229
+ config,
230
+ http_version=http_version,
231
+ for_streaming=for_streaming,
232
+ retry_connect=retry_connect,
229
233
  ),
230
234
  headers=config.sandbox_headers,
231
235
  event_hooks=make_async_logging_event_hooks(config.logger),
@@ -222,6 +222,7 @@ def get_envd_api(
222
222
  *,
223
223
  for_streaming: bool = False,
224
224
  retry_connect: bool = True,
225
+ http_version: Optional[HttpVersion] = None,
225
226
  ) -> httpx.Client:
226
227
  """An httpx client for a sandbox's envd HTTP API (file transfers, health
227
228
  checks) on the shared transports. The client itself is a cheap stateless
@@ -230,7 +231,10 @@ def get_envd_api(
230
231
  return httpx.Client(
231
232
  base_url=base_url,
232
233
  transport=get_transport(
233
- config, for_streaming=for_streaming, retry_connect=retry_connect
234
+ config,
235
+ http_version=http_version,
236
+ for_streaming=for_streaming,
237
+ retry_connect=retry_connect,
234
238
  ),
235
239
  headers=config.sandbox_headers,
236
240
  event_hooks=make_logging_event_hooks(config.logger),
@@ -128,7 +128,10 @@ class ApiParams(TypedDict, total=False):
128
128
  `"2"`. `"1.1"` pins them to HTTP/1.1, which
129
129
  uses one connection per concurrent request instead of multiplexing streams
130
130
  over shared connections — for example when an intermediary on the path
131
- retires or mishandles long-lived HTTP/2 connections."""
131
+ retires or mishandles long-lived HTTP/2 connections. In the Python SDK,
132
+ file downloads (`files.read`) always use HTTP/1.1, overriding this
133
+ option, to work around an HTTP/2 empty-DATA-frame limit in the
134
+ underlying transport."""
132
135
 
133
136
 
134
137
  class ApiParamsWithLogger(ApiParams, total=False):
@@ -2,6 +2,8 @@ import httpx
2
2
 
3
3
  from typing import Callable, Optional
4
4
 
5
+ from e2b.connection_config import HttpVersion
6
+
5
7
  from e2b.envd.rpc import (
6
8
  format_sandbox_unreachable_exception,
7
9
  format_terminated_exception,
@@ -21,6 +23,13 @@ from e2b.exceptions import (
21
23
  ENVD_API_FILES_ROUTE = "/files"
22
24
  ENVD_API_HEALTH_ROUTE = "/health"
23
25
 
26
+ # File downloads go over HTTP/1.1 whatever the configured HTTP version: the
27
+ # sandbox proxy pads them with an empty DATA frame every ~32 KiB, and h2 (under
28
+ # pyqwest) closes a connection with ENHANCE_YOUR_CALM ("too_many_data_frames")
29
+ # after 100 such frames over its lifetime — failing the download and every
30
+ # other stream multiplexed on that connection.
31
+ ENVD_API_FILE_DOWNLOAD_HTTP_VERSION: HttpVersion = "1.1"
32
+
24
33
  _DEFAULT_API_ERROR_MAP: dict[int, Callable[[str], Exception]] = {
25
34
  400: InvalidArgumentException,
26
35
  401: AuthenticationException,