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