runloop_api_client 0.61.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- runloop_api_client/__init__.py +92 -0
- runloop_api_client/_base_client.py +1995 -0
- runloop_api_client/_client.py +668 -0
- runloop_api_client/_compat.py +219 -0
- runloop_api_client/_constants.py +14 -0
- runloop_api_client/_exceptions.py +108 -0
- runloop_api_client/_files.py +123 -0
- runloop_api_client/_models.py +835 -0
- runloop_api_client/_qs.py +150 -0
- runloop_api_client/_resource.py +43 -0
- runloop_api_client/_response.py +832 -0
- runloop_api_client/_streaming.py +520 -0
- runloop_api_client/_types.py +260 -0
- runloop_api_client/_utils/__init__.py +64 -0
- runloop_api_client/_utils/_compat.py +45 -0
- runloop_api_client/_utils/_datetime_parse.py +136 -0
- runloop_api_client/_utils/_logs.py +25 -0
- runloop_api_client/_utils/_proxy.py +65 -0
- runloop_api_client/_utils/_reflection.py +42 -0
- runloop_api_client/_utils/_resources_proxy.py +24 -0
- runloop_api_client/_utils/_streams.py +12 -0
- runloop_api_client/_utils/_sync.py +86 -0
- runloop_api_client/_utils/_transform.py +457 -0
- runloop_api_client/_utils/_typing.py +156 -0
- runloop_api_client/_utils/_utils.py +421 -0
- runloop_api_client/_version.py +4 -0
- runloop_api_client/lib/.keep +4 -0
- runloop_api_client/lib/polling.py +75 -0
- runloop_api_client/lib/polling_async.py +60 -0
- runloop_api_client/pagination.py +761 -0
- runloop_api_client/py.typed +0 -0
- runloop_api_client/resources/__init__.py +103 -0
- runloop_api_client/resources/benchmarks/__init__.py +33 -0
- runloop_api_client/resources/benchmarks/benchmarks.py +982 -0
- runloop_api_client/resources/benchmarks/runs.py +587 -0
- runloop_api_client/resources/blueprints.py +1206 -0
- runloop_api_client/resources/devboxes/__init__.py +89 -0
- runloop_api_client/resources/devboxes/browsers.py +267 -0
- runloop_api_client/resources/devboxes/computers.py +648 -0
- runloop_api_client/resources/devboxes/devboxes.py +3414 -0
- runloop_api_client/resources/devboxes/disk_snapshots.py +519 -0
- runloop_api_client/resources/devboxes/executions.py +1059 -0
- runloop_api_client/resources/devboxes/logs.py +197 -0
- runloop_api_client/resources/objects.py +860 -0
- runloop_api_client/resources/repositories.py +717 -0
- runloop_api_client/resources/scenarios/__init__.py +47 -0
- runloop_api_client/resources/scenarios/runs.py +949 -0
- runloop_api_client/resources/scenarios/scenarios.py +1079 -0
- runloop_api_client/resources/scenarios/scorers.py +629 -0
- runloop_api_client/resources/secrets.py +500 -0
- runloop_api_client/types/__init__.py +95 -0
- runloop_api_client/types/benchmark_create_params.py +40 -0
- runloop_api_client/types/benchmark_definitions_params.py +15 -0
- runloop_api_client/types/benchmark_list_params.py +15 -0
- runloop_api_client/types/benchmark_list_public_params.py +15 -0
- runloop_api_client/types/benchmark_run_list_view.py +19 -0
- runloop_api_client/types/benchmark_run_view.py +51 -0
- runloop_api_client/types/benchmark_start_run_params.py +25 -0
- runloop_api_client/types/benchmark_update_params.py +40 -0
- runloop_api_client/types/benchmark_view.py +45 -0
- runloop_api_client/types/benchmarks/__init__.py +6 -0
- runloop_api_client/types/benchmarks/run_list_params.py +18 -0
- runloop_api_client/types/benchmarks/run_list_scenario_runs_params.py +18 -0
- runloop_api_client/types/blueprint_build_log.py +16 -0
- runloop_api_client/types/blueprint_build_logs_list_view.py +16 -0
- runloop_api_client/types/blueprint_build_parameters.py +87 -0
- runloop_api_client/types/blueprint_create_params.py +90 -0
- runloop_api_client/types/blueprint_list_params.py +18 -0
- runloop_api_client/types/blueprint_list_public_params.py +18 -0
- runloop_api_client/types/blueprint_list_view.py +19 -0
- runloop_api_client/types/blueprint_preview_params.py +90 -0
- runloop_api_client/types/blueprint_preview_view.py +10 -0
- runloop_api_client/types/blueprint_view.py +86 -0
- runloop_api_client/types/devbox_async_execution_detail_view.py +40 -0
- runloop_api_client/types/devbox_create_params.py +70 -0
- runloop_api_client/types/devbox_create_ssh_key_response.py +16 -0
- runloop_api_client/types/devbox_create_tunnel_params.py +12 -0
- runloop_api_client/types/devbox_download_file_params.py +15 -0
- runloop_api_client/types/devbox_execute_async_params.py +25 -0
- runloop_api_client/types/devbox_execute_params.py +34 -0
- runloop_api_client/types/devbox_execute_sync_params.py +25 -0
- runloop_api_client/types/devbox_execution_detail_view.py +24 -0
- runloop_api_client/types/devbox_list_disk_snapshots_params.py +29 -0
- runloop_api_client/types/devbox_list_params.py +20 -0
- runloop_api_client/types/devbox_list_view.py +19 -0
- runloop_api_client/types/devbox_read_file_contents_params.py +15 -0
- runloop_api_client/types/devbox_read_file_contents_response.py +7 -0
- runloop_api_client/types/devbox_remove_tunnel_params.py +12 -0
- runloop_api_client/types/devbox_snapshot_disk_async_params.py +16 -0
- runloop_api_client/types/devbox_snapshot_disk_params.py +16 -0
- runloop_api_client/types/devbox_snapshot_list_view.py +19 -0
- runloop_api_client/types/devbox_snapshot_view.py +24 -0
- runloop_api_client/types/devbox_tunnel_view.py +16 -0
- runloop_api_client/types/devbox_update_params.py +16 -0
- runloop_api_client/types/devbox_upload_file_params.py +19 -0
- runloop_api_client/types/devbox_view.py +94 -0
- runloop_api_client/types/devbox_wait_for_command_params.py +25 -0
- runloop_api_client/types/devbox_write_file_contents_params.py +18 -0
- runloop_api_client/types/devboxes/__init__.py +32 -0
- runloop_api_client/types/devboxes/browser_create_params.py +13 -0
- runloop_api_client/types/devboxes/browser_view.py +25 -0
- runloop_api_client/types/devboxes/computer_create_params.py +24 -0
- runloop_api_client/types/devboxes/computer_keyboard_interaction_params.py +16 -0
- runloop_api_client/types/devboxes/computer_keyboard_interaction_response.py +15 -0
- runloop_api_client/types/devboxes/computer_mouse_interaction_params.py +30 -0
- runloop_api_client/types/devboxes/computer_mouse_interaction_response.py +15 -0
- runloop_api_client/types/devboxes/computer_screen_interaction_params.py +12 -0
- runloop_api_client/types/devboxes/computer_screen_interaction_response.py +15 -0
- runloop_api_client/types/devboxes/computer_view.py +19 -0
- runloop_api_client/types/devboxes/devbox_logs_list_view.py +39 -0
- runloop_api_client/types/devboxes/devbox_snapshot_async_status_view.py +20 -0
- runloop_api_client/types/devboxes/disk_snapshot_list_params.py +29 -0
- runloop_api_client/types/devboxes/disk_snapshot_update_params.py +16 -0
- runloop_api_client/types/devboxes/execution_execute_async_params.py +25 -0
- runloop_api_client/types/devboxes/execution_execute_sync_params.py +25 -0
- runloop_api_client/types/devboxes/execution_kill_params.py +18 -0
- runloop_api_client/types/devboxes/execution_retrieve_params.py +14 -0
- runloop_api_client/types/devboxes/execution_stream_stderr_updates_params.py +14 -0
- runloop_api_client/types/devboxes/execution_stream_stdout_updates_params.py +14 -0
- runloop_api_client/types/devboxes/execution_update_chunk.py +15 -0
- runloop_api_client/types/devboxes/log_list_params.py +15 -0
- runloop_api_client/types/input_context.py +15 -0
- runloop_api_client/types/input_context_param.py +16 -0
- runloop_api_client/types/input_context_update_param.py +16 -0
- runloop_api_client/types/object_create_params.py +19 -0
- runloop_api_client/types/object_download_params.py +12 -0
- runloop_api_client/types/object_download_url_view.py +10 -0
- runloop_api_client/types/object_list_params.py +27 -0
- runloop_api_client/types/object_list_public_params.py +27 -0
- runloop_api_client/types/object_list_view.py +22 -0
- runloop_api_client/types/object_view.py +28 -0
- runloop_api_client/types/repository_connection_list_view.py +19 -0
- runloop_api_client/types/repository_connection_view.py +16 -0
- runloop_api_client/types/repository_create_params.py +22 -0
- runloop_api_client/types/repository_inspection_details.py +77 -0
- runloop_api_client/types/repository_inspection_list_view.py +13 -0
- runloop_api_client/types/repository_list_params.py +21 -0
- runloop_api_client/types/repository_manifest_view.py +158 -0
- runloop_api_client/types/repository_refresh_params.py +16 -0
- runloop_api_client/types/scenario_create_params.py +53 -0
- runloop_api_client/types/scenario_definition_list_view.py +19 -0
- runloop_api_client/types/scenario_environment.py +25 -0
- runloop_api_client/types/scenario_environment_param.py +27 -0
- runloop_api_client/types/scenario_list_params.py +21 -0
- runloop_api_client/types/scenario_list_public_params.py +18 -0
- runloop_api_client/types/scenario_run_list_view.py +19 -0
- runloop_api_client/types/scenario_run_view.py +50 -0
- runloop_api_client/types/scenario_start_run_params.py +28 -0
- runloop_api_client/types/scenario_update_params.py +46 -0
- runloop_api_client/types/scenario_view.py +57 -0
- runloop_api_client/types/scenarios/__init__.py +14 -0
- runloop_api_client/types/scenarios/run_list_params.py +18 -0
- runloop_api_client/types/scenarios/scorer_create_params.py +18 -0
- runloop_api_client/types/scenarios/scorer_create_response.py +16 -0
- runloop_api_client/types/scenarios/scorer_list_params.py +15 -0
- runloop_api_client/types/scenarios/scorer_list_response.py +16 -0
- runloop_api_client/types/scenarios/scorer_retrieve_response.py +16 -0
- runloop_api_client/types/scenarios/scorer_update_params.py +18 -0
- runloop_api_client/types/scenarios/scorer_update_response.py +16 -0
- runloop_api_client/types/scenarios/scorer_validate_params.py +17 -0
- runloop_api_client/types/scenarios/scorer_validate_response.py +23 -0
- runloop_api_client/types/scoring_contract.py +13 -0
- runloop_api_client/types/scoring_contract_param.py +15 -0
- runloop_api_client/types/scoring_contract_result_view.py +16 -0
- runloop_api_client/types/scoring_contract_update_param.py +15 -0
- runloop_api_client/types/scoring_function.py +135 -0
- runloop_api_client/types/scoring_function_param.py +131 -0
- runloop_api_client/types/scoring_function_result_view.py +21 -0
- runloop_api_client/types/secret_create_params.py +23 -0
- runloop_api_client/types/secret_list_params.py +12 -0
- runloop_api_client/types/secret_list_view.py +22 -0
- runloop_api_client/types/secret_update_params.py +16 -0
- runloop_api_client/types/secret_view.py +22 -0
- runloop_api_client/types/shared/__init__.py +6 -0
- runloop_api_client/types/shared/after_idle.py +15 -0
- runloop_api_client/types/shared/code_mount_parameters.py +24 -0
- runloop_api_client/types/shared/launch_parameters.py +79 -0
- runloop_api_client/types/shared/run_profile.py +33 -0
- runloop_api_client/types/shared_params/__init__.py +6 -0
- runloop_api_client/types/shared_params/after_idle.py +15 -0
- runloop_api_client/types/shared_params/code_mount_parameters.py +25 -0
- runloop_api_client/types/shared_params/launch_parameters.py +81 -0
- runloop_api_client/types/shared_params/run_profile.py +34 -0
- runloop_api_client-0.61.0.dist-info/METADATA +496 -0
- runloop_api_client-0.61.0.dist-info/RECORD +187 -0
- runloop_api_client-0.61.0.dist-info/WHEEL +4 -0
- runloop_api_client-0.61.0.dist-info/licenses/LICENSE +7 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import typing as _t
|
|
4
|
+
|
|
5
|
+
from . import types
|
|
6
|
+
from ._types import NOT_GIVEN, Omit, NoneType, NotGiven, Transport, ProxiesTypes, omit, not_given
|
|
7
|
+
from ._utils import file_from_path
|
|
8
|
+
from ._client import Client, Stream, Runloop, Timeout, Transport, AsyncClient, AsyncStream, AsyncRunloop, RequestOptions
|
|
9
|
+
from ._models import BaseModel
|
|
10
|
+
from ._version import __title__, __version__
|
|
11
|
+
from ._response import APIResponse as APIResponse, AsyncAPIResponse as AsyncAPIResponse
|
|
12
|
+
from ._constants import DEFAULT_TIMEOUT, DEFAULT_MAX_RETRIES, DEFAULT_CONNECTION_LIMITS
|
|
13
|
+
from ._exceptions import (
|
|
14
|
+
APIError,
|
|
15
|
+
RunloopError,
|
|
16
|
+
ConflictError,
|
|
17
|
+
NotFoundError,
|
|
18
|
+
APIStatusError,
|
|
19
|
+
RateLimitError,
|
|
20
|
+
APITimeoutError,
|
|
21
|
+
BadRequestError,
|
|
22
|
+
APIConnectionError,
|
|
23
|
+
AuthenticationError,
|
|
24
|
+
InternalServerError,
|
|
25
|
+
PermissionDeniedError,
|
|
26
|
+
UnprocessableEntityError,
|
|
27
|
+
APIResponseValidationError,
|
|
28
|
+
)
|
|
29
|
+
from ._base_client import DefaultHttpxClient, DefaultAioHttpClient, DefaultAsyncHttpxClient
|
|
30
|
+
from ._utils._logs import setup_logging as _setup_logging
|
|
31
|
+
|
|
32
|
+
__all__ = [
|
|
33
|
+
"types",
|
|
34
|
+
"__version__",
|
|
35
|
+
"__title__",
|
|
36
|
+
"NoneType",
|
|
37
|
+
"Transport",
|
|
38
|
+
"ProxiesTypes",
|
|
39
|
+
"NotGiven",
|
|
40
|
+
"NOT_GIVEN",
|
|
41
|
+
"not_given",
|
|
42
|
+
"Omit",
|
|
43
|
+
"omit",
|
|
44
|
+
"RunloopError",
|
|
45
|
+
"APIError",
|
|
46
|
+
"APIStatusError",
|
|
47
|
+
"APITimeoutError",
|
|
48
|
+
"APIConnectionError",
|
|
49
|
+
"APIResponseValidationError",
|
|
50
|
+
"BadRequestError",
|
|
51
|
+
"AuthenticationError",
|
|
52
|
+
"PermissionDeniedError",
|
|
53
|
+
"NotFoundError",
|
|
54
|
+
"ConflictError",
|
|
55
|
+
"UnprocessableEntityError",
|
|
56
|
+
"RateLimitError",
|
|
57
|
+
"InternalServerError",
|
|
58
|
+
"Timeout",
|
|
59
|
+
"RequestOptions",
|
|
60
|
+
"Client",
|
|
61
|
+
"AsyncClient",
|
|
62
|
+
"Stream",
|
|
63
|
+
"AsyncStream",
|
|
64
|
+
"Runloop",
|
|
65
|
+
"AsyncRunloop",
|
|
66
|
+
"file_from_path",
|
|
67
|
+
"BaseModel",
|
|
68
|
+
"DEFAULT_TIMEOUT",
|
|
69
|
+
"DEFAULT_MAX_RETRIES",
|
|
70
|
+
"DEFAULT_CONNECTION_LIMITS",
|
|
71
|
+
"DefaultHttpxClient",
|
|
72
|
+
"DefaultAsyncHttpxClient",
|
|
73
|
+
"DefaultAioHttpClient",
|
|
74
|
+
]
|
|
75
|
+
|
|
76
|
+
if not _t.TYPE_CHECKING:
|
|
77
|
+
from ._utils._resources_proxy import resources as resources
|
|
78
|
+
|
|
79
|
+
_setup_logging()
|
|
80
|
+
|
|
81
|
+
# Update the __module__ attribute for exported symbols so that
|
|
82
|
+
# error messages point to this module instead of the module
|
|
83
|
+
# it was originally defined in, e.g.
|
|
84
|
+
# runloop_api_client._exceptions.NotFoundError -> runloop_api_client.NotFoundError
|
|
85
|
+
__locals = locals()
|
|
86
|
+
for __name in __all__:
|
|
87
|
+
if not __name.startswith("__"):
|
|
88
|
+
try:
|
|
89
|
+
__locals[__name].__module__ = "runloop_api_client"
|
|
90
|
+
except (TypeError, AttributeError):
|
|
91
|
+
# Some of our exported symbols are builtins which we can't set attributes for.
|
|
92
|
+
pass
|