torchx-nightly 2025.5.1__py3-none-any.whl → 2025.5.3__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.

Potentially problematic release.


This version of torchx-nightly might be problematic. Click here for more details.

torchx/specs/api.py CHANGED
@@ -1115,14 +1115,31 @@ class UnknownAppException(Exception):
1115
1115
 
1116
1116
  def parse_app_handle(app_handle: AppHandle) -> ParsedAppHandle:
1117
1117
  """
1118
- parses the app handle into ```(scheduler_backend, session_name, and app_id)```
1118
+ Parses the app handle into ```(scheduler_backend, session_name, and app_id)```.
1119
+
1120
+ Example:
1121
+
1122
+ .. doctest::
1123
+
1124
+ assert parse_app_handle("k8s://default/foo_bar") == ("k8s", "default", "foo_bar")
1125
+ assert parse_app_handle("k8s:///foo_bar") == ("k8s", "", "foo_bar")
1126
+
1127
+ Args:
1128
+ app_handle: a URI of the form ``{scheduler}://{session_name}/{app_id}``,
1129
+ where the ``session_name`` is optional. In this case the app handle is
1130
+ of the form ``{scheduler}:///{app_id}`` (notice the triple slashes).
1131
+
1132
+ Returns: A ``Tuple`` of three elements, ``(scheduler, session_name, app_id)``
1133
+ parsed from the app_handle URI str. If the session name is not present then
1134
+ an empty string is returned in its place in the tuple.
1135
+
1119
1136
  """
1120
1137
 
1121
1138
  # parse it manually b/c currently torchx does not
1122
1139
  # define allowed characters nor length for session name and app_id
1123
1140
  import re
1124
1141
 
1125
- pattern = r"(?P<scheduler_backend>.+)://(?P<session_name>.+)/(?P<app_id>.+)"
1142
+ pattern = r"(?P<scheduler_backend>.+)://(?P<session_name>.*)/(?P<app_id>.+)"
1126
1143
  match = re.match(pattern, app_handle)
1127
1144
  if not match:
1128
1145
  raise MalformedAppHandleException(app_handle)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: torchx-nightly
3
- Version: 2025.5.1
3
+ Version: 2025.5.3
4
4
  Summary: TorchX SDK and Components
5
5
  Home-page: https://github.com/pytorch/torchx
6
6
  Author: TorchX Devs
@@ -38,7 +38,6 @@ Requires-Dist: kubernetes==25.3.0; extra == "dev"
38
38
  Requires-Dist: flake8==3.9.0; extra == "dev"
39
39
  Requires-Dist: fsspec==2024.3.1; extra == "dev"
40
40
  Requires-Dist: s3fs==2024.3.1; extra == "dev"
41
- Requires-Dist: google-api-core; extra == "dev"
42
41
  Requires-Dist: google-cloud-batch==0.17.14; extra == "dev"
43
42
  Requires-Dist: google-cloud-logging==3.10.0; extra == "dev"
44
43
  Requires-Dist: google-cloud-runtimeconfig==0.34.0; extra == "dev"
@@ -83,7 +83,7 @@ torchx/schedulers/ray/__init__.py,sha256=fE0IHi1JJpxsNVBNzWNee2thrNXFFRhY94c80Rx
83
83
  torchx/schedulers/ray/ray_common.py,sha256=pyNYFvTKVwdjDAeCBNbPwAWwVNmlLOJWExfn90XY8u8,610
84
84
  torchx/schedulers/ray/ray_driver.py,sha256=RdaCLfth16ky-5PDVOWRe_RuheWJu9xufWux2F9T7iw,12302
85
85
  torchx/specs/__init__.py,sha256=c2ALDbqHIhNBhrYxwXXURRwu1Rg5jcwukWF8emEO1Bk,6347
86
- torchx/specs/api.py,sha256=jtasrQUy_6-AmZxsfZ_6J-kfUGKYsO5cVsrCP3imZ-I,38844
86
+ torchx/specs/api.py,sha256=Mz6BjeMRe8KihNb2Oqb2SAH44SUVsEDkk9W9wgTEqcE,39525
87
87
  torchx/specs/builders.py,sha256=f5Yy8KoL2OgPUiqJRkZ4E6lboq5Srkh5mD17F0EBdeg,10506
88
88
  torchx/specs/file_linter.py,sha256=QCwob5STTBuy8RsxaevTI-Dk6R8siDJn81LyaOwazes,12333
89
89
  torchx/specs/finder.py,sha256=GseAruZBuTdQHWhnxqjE0SsyfCDxzg00qK73k-b47NA,17447
@@ -115,9 +115,9 @@ torchx/workspace/__init__.py,sha256=FqN8AN4VhR1C_SBY10MggQvNZmyanbbuPuE-JCjkyUY,
115
115
  torchx/workspace/api.py,sha256=PtDkGTC5lX03pRoYpuMz2KCmM1ZOycRP1UknqvNb97Y,6341
116
116
  torchx/workspace/dir_workspace.py,sha256=npNW_IjUZm_yS5r-8hrRkH46ndDd9a_eApT64m1S1T4,2268
117
117
  torchx/workspace/docker_workspace.py,sha256=PFu2KQNVC-0p2aKJ-W_BKA9ZOmXdCY2ABEkCExp3udQ,10269
118
- torchx_nightly-2025.5.1.dist-info/LICENSE,sha256=WVHfXhFC0Ia8LTKt_nJVYobdqTJVg_4J3Crrfm2A8KQ,1721
119
- torchx_nightly-2025.5.1.dist-info/METADATA,sha256=WiS59n2Mm_YFbAEEWQ30PEiGEieyKsq0NuvwJZ5ghl8,6166
120
- torchx_nightly-2025.5.1.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
121
- torchx_nightly-2025.5.1.dist-info/entry_points.txt,sha256=T328AMXeKI3JZnnxfkEew2ZcMN1oQDtkXjMz7lkV-P4,169
122
- torchx_nightly-2025.5.1.dist-info/top_level.txt,sha256=pxew3bc2gsiViS0zADs0jb6kC5v8o_Yy_85fhHj_J1A,7
123
- torchx_nightly-2025.5.1.dist-info/RECORD,,
118
+ torchx_nightly-2025.5.3.dist-info/LICENSE,sha256=WVHfXhFC0Ia8LTKt_nJVYobdqTJVg_4J3Crrfm2A8KQ,1721
119
+ torchx_nightly-2025.5.3.dist-info/METADATA,sha256=DIqFb2RWuSbe1Xbo_ehlG24rWyay0r2F0SKRejUiGoY,6119
120
+ torchx_nightly-2025.5.3.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
121
+ torchx_nightly-2025.5.3.dist-info/entry_points.txt,sha256=T328AMXeKI3JZnnxfkEew2ZcMN1oQDtkXjMz7lkV-P4,169
122
+ torchx_nightly-2025.5.3.dist-info/top_level.txt,sha256=pxew3bc2gsiViS0zADs0jb6kC5v8o_Yy_85fhHj_J1A,7
123
+ torchx_nightly-2025.5.3.dist-info/RECORD,,