polyaxon 2.0.0rc49__py3-none-any.whl → 2.4.0rc1__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 (177) hide show
  1. polyaxon/_auxiliaries/cleaner.py +8 -3
  2. polyaxon/_auxiliaries/init.py +7 -2
  3. polyaxon/_auxiliaries/notifier.py +8 -2
  4. polyaxon/_auxiliaries/sidecar.py +30 -2
  5. polyaxon/_cli/artifacts.py +96 -11
  6. polyaxon/_cli/components.py +96 -11
  7. polyaxon/_cli/config.py +118 -22
  8. polyaxon/_cli/dashboard.py +15 -2
  9. polyaxon/_cli/init.py +1 -1
  10. polyaxon/_cli/models.py +96 -11
  11. polyaxon/_cli/operations.py +267 -90
  12. polyaxon/_cli/project_versions.py +139 -6
  13. polyaxon/_cli/projects.py +23 -9
  14. polyaxon/_cli/run.py +37 -9
  15. polyaxon/_cli/services/agent.py +2 -2
  16. polyaxon/_cli/services/clean_artifacts.py +1 -1
  17. polyaxon/_cli/services/sidecar.py +8 -1
  18. polyaxon/_client/client.py +17 -0
  19. polyaxon/_client/mixin.py +39 -0
  20. polyaxon/_client/project.py +218 -23
  21. polyaxon/_client/run.py +131 -33
  22. polyaxon/_compiler/contexts/contexts.py +2 -2
  23. polyaxon/_compiler/contexts/ray_job.py +4 -2
  24. polyaxon/_compiler/resolver/agent.py +12 -2
  25. polyaxon/_compiler/resolver/runtime.py +2 -2
  26. polyaxon/_contexts/paths.py +4 -7
  27. polyaxon/_deploy/operators/compose.py +1 -27
  28. polyaxon/_deploy/schemas/deployment.py +4 -1
  29. polyaxon/_deploy/schemas/intervals.py +0 -7
  30. polyaxon/_deploy/schemas/proxy.py +1 -0
  31. polyaxon/_deploy/schemas/service.py +11 -1
  32. polyaxon/_docker/converter/base/base.py +8 -0
  33. polyaxon/_docker/executor.py +10 -4
  34. polyaxon/_env_vars/getters/owner_entity.py +4 -2
  35. polyaxon/_env_vars/getters/project.py +4 -2
  36. polyaxon/_env_vars/getters/run.py +5 -2
  37. polyaxon/_env_vars/keys.py +7 -1
  38. polyaxon/_flow/__init__.py +2 -0
  39. polyaxon/_flow/builds/__init__.py +19 -6
  40. polyaxon/_flow/component/base.py +1 -0
  41. polyaxon/_flow/component/component.py +14 -0
  42. polyaxon/_flow/environment/__init__.py +8 -8
  43. polyaxon/_flow/hooks/__init__.py +19 -6
  44. polyaxon/_flow/init/__init__.py +6 -6
  45. polyaxon/_flow/matrix/iterative.py +0 -1
  46. polyaxon/_flow/matrix/tuner.py +18 -6
  47. polyaxon/_flow/operations/operation.py +44 -17
  48. polyaxon/_flow/plugins/__init__.py +6 -0
  49. polyaxon/_flow/run/__init__.py +2 -2
  50. polyaxon/_flow/run/dag.py +2 -2
  51. polyaxon/_flow/run/dask/dask.py +0 -1
  52. polyaxon/_flow/run/dask/replica.py +3 -3
  53. polyaxon/_flow/run/enums.py +5 -0
  54. polyaxon/_flow/run/job.py +4 -4
  55. polyaxon/_flow/run/kubeflow/mpi_job.py +1 -2
  56. polyaxon/_flow/run/kubeflow/mx_job.py +1 -2
  57. polyaxon/_flow/run/kubeflow/paddle_job.py +35 -4
  58. polyaxon/_flow/run/kubeflow/pytorch_job.py +51 -5
  59. polyaxon/_flow/run/kubeflow/replica.py +4 -4
  60. polyaxon/_flow/run/kubeflow/scheduling_policy.py +12 -0
  61. polyaxon/_flow/run/kubeflow/tf_job.py +3 -3
  62. polyaxon/_flow/run/kubeflow/xgboost_job.py +1 -2
  63. polyaxon/_flow/run/ray/ray.py +2 -3
  64. polyaxon/_flow/run/ray/replica.py +3 -3
  65. polyaxon/_flow/run/service.py +4 -4
  66. polyaxon/_fs/fs.py +7 -2
  67. polyaxon/_fs/utils.py +3 -2
  68. polyaxon/_k8s/converter/base/base.py +2 -1
  69. polyaxon/_k8s/converter/base/main.py +1 -0
  70. polyaxon/_k8s/converter/base/sidecar.py +16 -1
  71. polyaxon/_k8s/converter/common/accelerators.py +7 -4
  72. polyaxon/_k8s/converter/converters/job.py +1 -1
  73. polyaxon/_k8s/converter/converters/kubeflow/paddle_job.py +1 -0
  74. polyaxon/_k8s/converter/converters/kubeflow/pytroch_job.py +2 -0
  75. polyaxon/_k8s/converter/converters/kubeflow/tf_job.py +1 -0
  76. polyaxon/_k8s/converter/converters/ray_job.py +4 -2
  77. polyaxon/_k8s/custom_resources/dask_job.py +3 -0
  78. polyaxon/_k8s/custom_resources/kubeflow/common.py +4 -1
  79. polyaxon/_k8s/custom_resources/kubeflow/paddle_job.py +10 -1
  80. polyaxon/_k8s/custom_resources/kubeflow/pytorch_job.py +14 -1
  81. polyaxon/_k8s/custom_resources/kubeflow/tf_job.py +4 -0
  82. polyaxon/_k8s/custom_resources/ray_job.py +3 -0
  83. polyaxon/_k8s/custom_resources/setter.py +1 -1
  84. polyaxon/_k8s/executor/async_executor.py +2 -0
  85. polyaxon/_k8s/executor/base.py +23 -6
  86. polyaxon/_k8s/logging/async_monitor.py +150 -5
  87. polyaxon/_k8s/manager/async_manager.py +96 -23
  88. polyaxon/_k8s/manager/base.py +4 -0
  89. polyaxon/_k8s/manager/manager.py +282 -134
  90. polyaxon/_local_process/__init__.py +0 -0
  91. polyaxon/_local_process/agent.py +6 -0
  92. polyaxon/_local_process/converter/__init__.py +1 -0
  93. polyaxon/_local_process/converter/base/__init__.py +1 -0
  94. polyaxon/_local_process/converter/base/base.py +140 -0
  95. polyaxon/_local_process/converter/base/containers.py +69 -0
  96. polyaxon/_local_process/converter/base/env_vars.py +253 -0
  97. polyaxon/_local_process/converter/base/init.py +414 -0
  98. polyaxon/_local_process/converter/base/main.py +74 -0
  99. polyaxon/_local_process/converter/base/mounts.py +82 -0
  100. polyaxon/_local_process/converter/converters/__init__.py +8 -0
  101. polyaxon/_local_process/converter/converters/job.py +40 -0
  102. polyaxon/_local_process/converter/converters/service.py +41 -0
  103. polyaxon/_local_process/converter/mixins.py +38 -0
  104. polyaxon/_local_process/executor.py +132 -0
  105. polyaxon/_local_process/process_types.py +39 -0
  106. polyaxon/_managers/agent.py +2 -0
  107. polyaxon/_managers/home.py +2 -1
  108. polyaxon/_operations/tuner.py +1 -0
  109. polyaxon/_polyaxonfile/check.py +2 -0
  110. polyaxon/_polyaxonfile/manager/operations.py +3 -0
  111. polyaxon/_polyaxonfile/manager/workflows.py +2 -0
  112. polyaxon/_polyaxonfile/specs/compiled_operation.py +1 -0
  113. polyaxon/_polyaxonfile/specs/operation.py +1 -0
  114. polyaxon/_polyaxonfile/specs/sections.py +3 -0
  115. polyaxon/_pql/manager.py +1 -1
  116. polyaxon/_runner/agent/async_agent.py +97 -21
  117. polyaxon/_runner/agent/base_agent.py +27 -9
  118. polyaxon/_runner/agent/client.py +15 -1
  119. polyaxon/_runner/agent/sync_agent.py +85 -20
  120. polyaxon/_runner/converter/converter.py +6 -2
  121. polyaxon/_runner/executor.py +13 -7
  122. polyaxon/_schemas/agent.py +27 -1
  123. polyaxon/_schemas/client.py +30 -3
  124. polyaxon/_schemas/installation.py +4 -3
  125. polyaxon/_schemas/lifecycle.py +10 -5
  126. polyaxon/_schemas/log_handler.py +2 -3
  127. polyaxon/_schemas/types/artifacts.py +3 -3
  128. polyaxon/_schemas/types/dockerfile.py +3 -3
  129. polyaxon/_schemas/types/file.py +3 -3
  130. polyaxon/_schemas/types/git.py +3 -3
  131. polyaxon/_schemas/types/tensorboard.py +3 -3
  132. polyaxon/_sdk/api/agents_v1_api.py +1076 -73
  133. polyaxon/_sdk/api/organizations_v1_api.py +371 -10
  134. polyaxon/_sdk/api/project_dashboards_v1_api.py +12 -12
  135. polyaxon/_sdk/api/project_searches_v1_api.py +12 -12
  136. polyaxon/_sdk/api/projects_v1_api.py +221 -44
  137. polyaxon/_sdk/api/runs_v1_api.py +917 -445
  138. polyaxon/_sdk/api/service_accounts_v1_api.py +16 -16
  139. polyaxon/_sdk/api/teams_v1_api.py +2827 -375
  140. polyaxon/_sdk/api/users_v1_api.py +231 -55
  141. polyaxon/_sdk/async_client/api_client.py +4 -0
  142. polyaxon/_sdk/schemas/__init__.py +10 -2
  143. polyaxon/_sdk/schemas/v1_agent.py +2 -1
  144. polyaxon/_sdk/schemas/v1_agent_reconcile_body_request.py +14 -0
  145. polyaxon/_sdk/schemas/v1_artifact_tree.py +1 -1
  146. polyaxon/_sdk/schemas/v1_dashboard_spec.py +4 -0
  147. polyaxon/_sdk/schemas/v1_events_response.py +4 -0
  148. polyaxon/_sdk/schemas/v1_organization.py +1 -0
  149. polyaxon/_sdk/schemas/v1_preset.py +8 -0
  150. polyaxon/_sdk/schemas/v1_project.py +1 -0
  151. polyaxon/_sdk/schemas/v1_project_settings.py +4 -2
  152. polyaxon/_sdk/schemas/v1_run.py +2 -2
  153. polyaxon/_sdk/schemas/v1_run_edge_lineage.py +14 -0
  154. polyaxon/_sdk/schemas/v1_run_edges_graph.py +9 -0
  155. polyaxon/_sdk/schemas/v1_section_spec.py +7 -2
  156. polyaxon/_sdk/schemas/v1_settings_catalog.py +1 -0
  157. polyaxon/_sdk/schemas/v1_team.py +3 -0
  158. polyaxon/_sdk/schemas/v1_user.py +1 -2
  159. polyaxon/_sdk/schemas/v1_user_access.py +17 -0
  160. polyaxon/_services/values.py +1 -0
  161. polyaxon/_sidecar/container/__init__.py +39 -18
  162. polyaxon/_sidecar/container/monitors/__init__.py +1 -0
  163. polyaxon/_sidecar/container/monitors/logs.py +10 -13
  164. polyaxon/_sidecar/container/monitors/spec.py +24 -0
  165. polyaxon/_sidecar/ignore.py +0 -1
  166. polyaxon/_utils/fqn_utils.py +25 -2
  167. polyaxon/client.py +1 -1
  168. polyaxon/pkg.py +1 -1
  169. polyaxon/schemas.py +8 -1
  170. polyaxon/settings.py +6 -0
  171. {polyaxon-2.0.0rc49.dist-info → polyaxon-2.4.0rc1.dist-info}/METADATA +43 -43
  172. {polyaxon-2.0.0rc49.dist-info → polyaxon-2.4.0rc1.dist-info}/RECORD +176 -155
  173. {polyaxon-2.0.0rc49.dist-info → polyaxon-2.4.0rc1.dist-info}/WHEEL +1 -1
  174. polyaxon/_sdk/schemas/v1_project_user_access.py +0 -10
  175. {polyaxon-2.0.0rc49.dist-info → polyaxon-2.4.0rc1.dist-info}/LICENSE +0 -0
  176. {polyaxon-2.0.0rc49.dist-info → polyaxon-2.4.0rc1.dist-info}/entry_points.txt +0 -0
  177. {polyaxon-2.0.0rc49.dist-info → polyaxon-2.4.0rc1.dist-info}/top_level.txt +0 -0
@@ -193,7 +193,7 @@ class ServiceAccountsV1Api(BaseApi):
193
193
  def create_service_account_token(
194
194
  self,
195
195
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
196
- entity: Annotated[StrictStr, Field(..., description="Rntity")],
196
+ entity: Annotated[StrictStr, Field(..., description="Entity")],
197
197
  body: Annotated[V1Token, Field(..., description="Token body")],
198
198
  **kwargs
199
199
  ) -> V1Token: # noqa: E501
@@ -207,7 +207,7 @@ class ServiceAccountsV1Api(BaseApi):
207
207
 
208
208
  :param owner: Owner of the namespace (required)
209
209
  :type owner: str
210
- :param entity: Rntity (required)
210
+ :param entity: Entity (required)
211
211
  :type entity: str
212
212
  :param body: Token body (required)
213
213
  :type body: V1Token
@@ -235,7 +235,7 @@ class ServiceAccountsV1Api(BaseApi):
235
235
  def create_service_account_token_with_http_info(
236
236
  self,
237
237
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
238
- entity: Annotated[StrictStr, Field(..., description="Rntity")],
238
+ entity: Annotated[StrictStr, Field(..., description="Entity")],
239
239
  body: Annotated[V1Token, Field(..., description="Token body")],
240
240
  **kwargs
241
241
  ): # noqa: E501
@@ -249,7 +249,7 @@ class ServiceAccountsV1Api(BaseApi):
249
249
 
250
250
  :param owner: Owner of the namespace (required)
251
251
  :type owner: str
252
- :param entity: Rntity (required)
252
+ :param entity: Entity (required)
253
253
  :type entity: str
254
254
  :param body: Token body (required)
255
255
  :type body: V1Token
@@ -1308,7 +1308,7 @@ class ServiceAccountsV1Api(BaseApi):
1308
1308
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
1309
1309
  uuid: Annotated[StrictStr, Field(..., description="SubEntity uuid")],
1310
1310
  entity: Annotated[
1311
- Optional[StrictStr], Field(description="Entity name under namesapce.")
1311
+ Optional[StrictStr], Field(description="Entity name under namespace.")
1312
1312
  ] = None,
1313
1313
  offset: Annotated[
1314
1314
  Optional[StrictInt], Field(description="Pagination offset.")
@@ -1335,7 +1335,7 @@ class ServiceAccountsV1Api(BaseApi):
1335
1335
  :type owner: str
1336
1336
  :param uuid: SubEntity uuid (required)
1337
1337
  :type uuid: str
1338
- :param entity: Entity name under namesapce.
1338
+ :param entity: Entity name under namespace.
1339
1339
  :type entity: str
1340
1340
  :param offset: Pagination offset.
1341
1341
  :type offset: int
@@ -1373,7 +1373,7 @@ class ServiceAccountsV1Api(BaseApi):
1373
1373
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
1374
1374
  uuid: Annotated[StrictStr, Field(..., description="SubEntity uuid")],
1375
1375
  entity: Annotated[
1376
- Optional[StrictStr], Field(description="Entity name under namesapce.")
1376
+ Optional[StrictStr], Field(description="Entity name under namespace.")
1377
1377
  ] = None,
1378
1378
  offset: Annotated[
1379
1379
  Optional[StrictInt], Field(description="Pagination offset.")
@@ -1400,7 +1400,7 @@ class ServiceAccountsV1Api(BaseApi):
1400
1400
  :type owner: str
1401
1401
  :param uuid: SubEntity uuid (required)
1402
1402
  :type uuid: str
1403
- :param entity: Entity name under namesapce.
1403
+ :param entity: Entity name under namespace.
1404
1404
  :type entity: str
1405
1405
  :param offset: Pagination offset.
1406
1406
  :type offset: int
@@ -1965,7 +1965,7 @@ class ServiceAccountsV1Api(BaseApi):
1965
1965
  def patch_service_account_token(
1966
1966
  self,
1967
1967
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
1968
- entity: Annotated[StrictStr, Field(..., description="Rntity")],
1968
+ entity: Annotated[StrictStr, Field(..., description="Entity")],
1969
1969
  token_uuid: Annotated[StrictStr, Field(..., description="UUID")],
1970
1970
  body: Annotated[V1Token, Field(..., description="Token body")],
1971
1971
  **kwargs
@@ -1980,7 +1980,7 @@ class ServiceAccountsV1Api(BaseApi):
1980
1980
 
1981
1981
  :param owner: Owner of the namespace (required)
1982
1982
  :type owner: str
1983
- :param entity: Rntity (required)
1983
+ :param entity: Entity (required)
1984
1984
  :type entity: str
1985
1985
  :param token_uuid: UUID (required)
1986
1986
  :type token_uuid: str
@@ -2010,7 +2010,7 @@ class ServiceAccountsV1Api(BaseApi):
2010
2010
  def patch_service_account_token_with_http_info(
2011
2011
  self,
2012
2012
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
2013
- entity: Annotated[StrictStr, Field(..., description="Rntity")],
2013
+ entity: Annotated[StrictStr, Field(..., description="Entity")],
2014
2014
  token_uuid: Annotated[StrictStr, Field(..., description="UUID")],
2015
2015
  body: Annotated[V1Token, Field(..., description="Token body")],
2016
2016
  **kwargs
@@ -2025,7 +2025,7 @@ class ServiceAccountsV1Api(BaseApi):
2025
2025
 
2026
2026
  :param owner: Owner of the namespace (required)
2027
2027
  :type owner: str
2028
- :param entity: Rntity (required)
2028
+ :param entity: Entity (required)
2029
2029
  :type entity: str
2030
2030
  :param token_uuid: UUID (required)
2031
2031
  :type token_uuid: str
@@ -2335,7 +2335,7 @@ class ServiceAccountsV1Api(BaseApi):
2335
2335
  def update_service_account_token(
2336
2336
  self,
2337
2337
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
2338
- entity: Annotated[StrictStr, Field(..., description="Rntity")],
2338
+ entity: Annotated[StrictStr, Field(..., description="Entity")],
2339
2339
  token_uuid: Annotated[StrictStr, Field(..., description="UUID")],
2340
2340
  body: Annotated[V1Token, Field(..., description="Token body")],
2341
2341
  **kwargs
@@ -2350,7 +2350,7 @@ class ServiceAccountsV1Api(BaseApi):
2350
2350
 
2351
2351
  :param owner: Owner of the namespace (required)
2352
2352
  :type owner: str
2353
- :param entity: Rntity (required)
2353
+ :param entity: Entity (required)
2354
2354
  :type entity: str
2355
2355
  :param token_uuid: UUID (required)
2356
2356
  :type token_uuid: str
@@ -2380,7 +2380,7 @@ class ServiceAccountsV1Api(BaseApi):
2380
2380
  def update_service_account_token_with_http_info(
2381
2381
  self,
2382
2382
  owner: Annotated[StrictStr, Field(..., description="Owner of the namespace")],
2383
- entity: Annotated[StrictStr, Field(..., description="Rntity")],
2383
+ entity: Annotated[StrictStr, Field(..., description="Entity")],
2384
2384
  token_uuid: Annotated[StrictStr, Field(..., description="UUID")],
2385
2385
  body: Annotated[V1Token, Field(..., description="Token body")],
2386
2386
  **kwargs
@@ -2395,7 +2395,7 @@ class ServiceAccountsV1Api(BaseApi):
2395
2395
 
2396
2396
  :param owner: Owner of the namespace (required)
2397
2397
  :type owner: str
2398
- :param entity: Rntity (required)
2398
+ :param entity: Entity (required)
2399
2399
  :type entity: str
2400
2400
  :param token_uuid: UUID (required)
2401
2401
  :type token_uuid: str