blaxel 0.2.26rc119__py3-none-any.whl → 0.2.28__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.
Files changed (118) hide show
  1. blaxel/__init__.py +2 -2
  2. blaxel/core/__init__.py +9 -1
  3. blaxel/core/client/api/{privateclusters/create_private_cluster.py → images/cleanup_images.py} +31 -25
  4. blaxel/core/client/models/__init__.py +2 -4
  5. blaxel/core/client/models/agent.py +1 -0
  6. blaxel/core/client/models/agent_spec.py +1 -24
  7. blaxel/core/client/models/billable_time_metric.py +1 -0
  8. blaxel/core/{sandbox/client/models/find_match.py → client/models/cleanup_images_response_200.py} +19 -19
  9. blaxel/core/client/models/configuration.py +1 -0
  10. blaxel/core/client/models/core_event.py +9 -0
  11. blaxel/core/client/models/core_spec.py +1 -24
  12. blaxel/core/client/models/core_spec_configurations.py +1 -0
  13. blaxel/core/client/models/create_job_execution_request.py +1 -0
  14. blaxel/core/client/models/create_job_execution_response.py +1 -0
  15. blaxel/core/client/models/custom_domain.py +1 -0
  16. blaxel/core/client/models/custom_domain_metadata.py +1 -0
  17. blaxel/core/client/models/custom_domain_spec.py +1 -0
  18. blaxel/core/client/models/delete_volume_template_version_response_200.py +1 -0
  19. blaxel/core/client/models/entrypoint.py +1 -0
  20. blaxel/core/client/models/form.py +1 -0
  21. blaxel/core/client/models/function.py +1 -0
  22. blaxel/core/client/models/function_spec.py +1 -24
  23. blaxel/core/client/models/image.py +1 -0
  24. blaxel/core/client/models/image_spec.py +1 -0
  25. blaxel/core/client/models/integration.py +1 -0
  26. blaxel/core/client/models/integration_connection.py +1 -0
  27. blaxel/core/client/models/integration_connection_spec.py +1 -0
  28. blaxel/core/client/models/integration_endpoint.py +1 -0
  29. blaxel/core/client/models/integration_endpoints.py +2 -0
  30. blaxel/core/client/models/job.py +1 -0
  31. blaxel/core/client/models/job_execution.py +1 -0
  32. blaxel/core/client/models/job_execution_spec.py +1 -0
  33. blaxel/core/client/models/job_execution_task.py +1 -0
  34. blaxel/core/client/models/job_metrics.py +1 -0
  35. blaxel/core/client/models/job_spec.py +1 -24
  36. blaxel/core/client/models/jobs_network_chart.py +1 -0
  37. blaxel/core/client/models/jobs_success_failed_chart.py +1 -0
  38. blaxel/core/client/models/latency_metric.py +1 -0
  39. blaxel/core/client/models/location_response.py +1 -0
  40. blaxel/core/client/models/mcp_definition.py +1 -0
  41. blaxel/core/client/models/metadata.py +1 -0
  42. blaxel/core/client/models/metrics.py +34 -0
  43. blaxel/core/client/models/model.py +1 -0
  44. blaxel/core/client/models/model_spec.py +1 -24
  45. blaxel/core/client/models/pending_invitation_accept.py +1 -0
  46. blaxel/core/client/models/pending_invitation_render.py +1 -0
  47. blaxel/core/client/models/policy.py +1 -0
  48. blaxel/core/client/models/policy_spec.py +1 -0
  49. blaxel/core/client/models/preview.py +1 -0
  50. blaxel/core/client/models/preview_spec.py +1 -0
  51. blaxel/core/client/models/preview_token.py +1 -0
  52. blaxel/core/client/models/public_ips.py +1 -0
  53. blaxel/core/client/models/request_duration_over_time_metrics.py +1 -0
  54. blaxel/core/client/models/request_total_by_origin_metric.py +1 -0
  55. blaxel/core/client/models/request_total_metric.py +1 -0
  56. blaxel/core/client/models/resource_metrics.py +1 -0
  57. blaxel/core/client/models/revision_configuration.py +9 -0
  58. blaxel/core/client/models/runtime.py +1 -0
  59. blaxel/core/client/models/sandbox.py +1 -0
  60. blaxel/core/client/models/sandbox_definition.py +1 -0
  61. blaxel/core/client/models/sandbox_lifecycle.py +1 -0
  62. blaxel/core/client/models/sandbox_spec.py +1 -24
  63. blaxel/core/client/models/serverless_config.py +1 -0
  64. blaxel/core/client/models/start_sandbox.py +1 -0
  65. blaxel/core/client/models/stop_sandbox.py +1 -0
  66. blaxel/core/client/models/store_agent.py +1 -0
  67. blaxel/core/client/models/store_configuration.py +1 -0
  68. blaxel/core/client/models/template.py +1 -0
  69. blaxel/core/client/models/time_to_first_token_over_time_metrics.py +1 -0
  70. blaxel/core/client/models/token_rate_metrics.py +1 -0
  71. blaxel/core/client/models/trigger.py +10 -0
  72. blaxel/core/client/models/trigger_configuration.py +28 -0
  73. blaxel/core/client/models/volume.py +1 -0
  74. blaxel/core/client/models/volume_template.py +1 -0
  75. blaxel/core/client/models/websocket_channel.py +9 -0
  76. blaxel/core/client/models/workspace.py +1 -0
  77. blaxel/core/client/response_interceptor.py +0 -1
  78. blaxel/core/common/__init__.py +10 -0
  79. blaxel/core/common/autoload.py +5 -4
  80. blaxel/core/common/settings.py +29 -0
  81. blaxel/core/common/webhook.py +187 -0
  82. blaxel/core/jobs/__init__.py +355 -8
  83. blaxel/core/sandbox/client/models/__init__.py +0 -16
  84. blaxel/core/sandbox/default/action.py +10 -27
  85. blaxel/core/sandbox/default/filesystem.py +52 -187
  86. blaxel/core/sandbox/default/interpreter.py +55 -62
  87. blaxel/core/sandbox/default/process.py +46 -66
  88. blaxel/core/sandbox/sync/filesystem.py +5 -2
  89. blaxel/googleadk/model.py +0 -1
  90. blaxel/livekit/model.py +0 -1
  91. {blaxel-0.2.26rc119.dist-info → blaxel-0.2.28.dist-info}/METADATA +2 -2
  92. {blaxel-0.2.26rc119.dist-info → blaxel-0.2.28.dist-info}/RECORD +94 -117
  93. blaxel/core/client/api/privateclusters/__init__.py +0 -0
  94. blaxel/core/client/api/privateclusters/delete_private_cluster.py +0 -152
  95. blaxel/core/client/api/privateclusters/get_private_cluster.py +0 -155
  96. blaxel/core/client/api/privateclusters/get_private_cluster_health.py +0 -97
  97. blaxel/core/client/api/privateclusters/list_private_clusters.py +0 -136
  98. blaxel/core/client/api/privateclusters/update_private_cluster.py +0 -152
  99. blaxel/core/client/api/privateclusters/update_private_cluster_health.py +0 -97
  100. blaxel/core/client/models/model_private_cluster.py +0 -79
  101. blaxel/core/client/models/private_cluster.py +0 -183
  102. blaxel/core/sandbox/client/api/filesystem/delete_filesystem_tree_path.py +0 -188
  103. blaxel/core/sandbox/client/api/filesystem/get_filesystem_content_search_path.py +0 -265
  104. blaxel/core/sandbox/client/api/filesystem/get_filesystem_find_path.py +0 -248
  105. blaxel/core/sandbox/client/api/filesystem/get_filesystem_search_path.py +0 -237
  106. blaxel/core/sandbox/client/api/filesystem/get_filesystem_tree_path.py +0 -197
  107. blaxel/core/sandbox/client/api/filesystem/put_filesystem_tree_path.py +0 -223
  108. blaxel/core/sandbox/client/api/websocket/__init__.py +0 -0
  109. blaxel/core/sandbox/client/api/websocket/get_ws.py +0 -81
  110. blaxel/core/sandbox/client/models/content_search_match.py +0 -98
  111. blaxel/core/sandbox/client/models/content_search_response.py +0 -97
  112. blaxel/core/sandbox/client/models/find_response.py +0 -88
  113. blaxel/core/sandbox/client/models/fuzzy_search_match.py +0 -78
  114. blaxel/core/sandbox/client/models/fuzzy_search_response.py +0 -88
  115. blaxel/core/sandbox/client/models/tree_request.py +0 -76
  116. blaxel/core/sandbox/client/models/tree_request_files.py +0 -49
  117. {blaxel-0.2.26rc119.dist-info → blaxel-0.2.28.dist-info}/WHEEL +0 -0
  118. {blaxel-0.2.26rc119.dist-info → blaxel-0.2.28.dist-info}/licenses/LICENSE +0 -0
@@ -1,88 +0,0 @@
1
- from typing import TYPE_CHECKING, Any, TypeVar, Union
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- from ..types import UNSET, Unset
7
-
8
- if TYPE_CHECKING:
9
- from ..models.fuzzy_search_match import FuzzySearchMatch
10
-
11
-
12
- T = TypeVar("T", bound="FuzzySearchResponse")
13
-
14
-
15
- @_attrs_define
16
- class FuzzySearchResponse:
17
- """
18
- Attributes:
19
- matches (Union[Unset, list['FuzzySearchMatch']]):
20
- total (Union[Unset, int]): Example: 5.
21
- """
22
-
23
- matches: Union[Unset, list["FuzzySearchMatch"]] = UNSET
24
- total: Union[Unset, int] = UNSET
25
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
26
-
27
- def to_dict(self) -> dict[str, Any]:
28
- matches: Union[Unset, list[dict[str, Any]]] = UNSET
29
- if not isinstance(self.matches, Unset):
30
- matches = []
31
- for matches_item_data in self.matches:
32
- if type(matches_item_data) is dict:
33
- matches_item = matches_item_data
34
- else:
35
- matches_item = matches_item_data.to_dict()
36
- matches.append(matches_item)
37
-
38
- total = self.total
39
-
40
- field_dict: dict[str, Any] = {}
41
- field_dict.update(self.additional_properties)
42
- field_dict.update({})
43
- if matches is not UNSET:
44
- field_dict["matches"] = matches
45
- if total is not UNSET:
46
- field_dict["total"] = total
47
-
48
- return field_dict
49
-
50
- @classmethod
51
- def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
52
- from ..models.fuzzy_search_match import FuzzySearchMatch
53
-
54
- if not src_dict:
55
- return None
56
- d = src_dict.copy()
57
- matches = []
58
- _matches = d.pop("matches", UNSET)
59
- for matches_item_data in _matches or []:
60
- matches_item = FuzzySearchMatch.from_dict(matches_item_data)
61
-
62
- matches.append(matches_item)
63
-
64
- total = d.pop("total", UNSET)
65
-
66
- fuzzy_search_response = cls(
67
- matches=matches,
68
- total=total,
69
- )
70
-
71
- fuzzy_search_response.additional_properties = d
72
- return fuzzy_search_response
73
-
74
- @property
75
- def additional_keys(self) -> list[str]:
76
- return list(self.additional_properties.keys())
77
-
78
- def __getitem__(self, key: str) -> Any:
79
- return self.additional_properties[key]
80
-
81
- def __setitem__(self, key: str, value: Any) -> None:
82
- self.additional_properties[key] = value
83
-
84
- def __delitem__(self, key: str) -> None:
85
- del self.additional_properties[key]
86
-
87
- def __contains__(self, key: str) -> bool:
88
- return key in self.additional_properties
@@ -1,76 +0,0 @@
1
- from typing import TYPE_CHECKING, Any, TypeVar, Union
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- from ..types import UNSET, Unset
7
-
8
- if TYPE_CHECKING:
9
- from ..models.tree_request_files import TreeRequestFiles
10
-
11
-
12
- T = TypeVar("T", bound="TreeRequest")
13
-
14
-
15
- @_attrs_define
16
- class TreeRequest:
17
- """
18
- Attributes:
19
- files (Union[Unset, TreeRequestFiles]): Example: {'"dir/file2.txt"': '"content2"}', '{"file1.txt"':
20
- '"content1"'}.
21
- """
22
-
23
- files: Union[Unset, "TreeRequestFiles"] = UNSET
24
- additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
25
-
26
- def to_dict(self) -> dict[str, Any]:
27
- files: Union[Unset, dict[str, Any]] = UNSET
28
- if self.files and not isinstance(self.files, Unset) and not isinstance(self.files, dict):
29
- files = self.files.to_dict()
30
- elif self.files and isinstance(self.files, dict):
31
- files = self.files
32
-
33
- field_dict: dict[str, Any] = {}
34
- field_dict.update(self.additional_properties)
35
- field_dict.update({})
36
- if files is not UNSET:
37
- field_dict["files"] = files
38
-
39
- return field_dict
40
-
41
- @classmethod
42
- def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
43
- from ..models.tree_request_files import TreeRequestFiles
44
-
45
- if not src_dict:
46
- return None
47
- d = src_dict.copy()
48
- _files = d.pop("files", UNSET)
49
- files: Union[Unset, TreeRequestFiles]
50
- if isinstance(_files, Unset):
51
- files = UNSET
52
- else:
53
- files = TreeRequestFiles.from_dict(_files)
54
-
55
- tree_request = cls(
56
- files=files,
57
- )
58
-
59
- tree_request.additional_properties = d
60
- return tree_request
61
-
62
- @property
63
- def additional_keys(self) -> list[str]:
64
- return list(self.additional_properties.keys())
65
-
66
- def __getitem__(self, key: str) -> Any:
67
- return self.additional_properties[key]
68
-
69
- def __setitem__(self, key: str, value: Any) -> None:
70
- self.additional_properties[key] = value
71
-
72
- def __delitem__(self, key: str) -> None:
73
- del self.additional_properties[key]
74
-
75
- def __contains__(self, key: str) -> bool:
76
- return key in self.additional_properties
@@ -1,49 +0,0 @@
1
- from typing import Any, TypeVar
2
-
3
- from attrs import define as _attrs_define
4
- from attrs import field as _attrs_field
5
-
6
- T = TypeVar("T", bound="TreeRequestFiles")
7
-
8
-
9
- @_attrs_define
10
- class TreeRequestFiles:
11
- """
12
- Example:
13
- {'"dir/file2.txt"': '"content2"}', '{"file1.txt"': '"content1"'}
14
-
15
- """
16
-
17
- additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict)
18
-
19
- def to_dict(self) -> dict[str, Any]:
20
- field_dict: dict[str, Any] = {}
21
- field_dict.update(self.additional_properties)
22
-
23
- return field_dict
24
-
25
- @classmethod
26
- def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
27
- if not src_dict:
28
- return None
29
- d = src_dict.copy()
30
- tree_request_files = cls()
31
-
32
- tree_request_files.additional_properties = d
33
- return tree_request_files
34
-
35
- @property
36
- def additional_keys(self) -> list[str]:
37
- return list(self.additional_properties.keys())
38
-
39
- def __getitem__(self, key: str) -> str:
40
- return self.additional_properties[key]
41
-
42
- def __setitem__(self, key: str, value: str) -> None:
43
- self.additional_properties[key] = value
44
-
45
- def __delitem__(self, key: str) -> None:
46
- del self.additional_properties[key]
47
-
48
- def __contains__(self, key: str) -> bool:
49
- return key in self.additional_properties