datachain 0.20.0__py3-none-any.whl → 0.20.2__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 datachain might be problematic. Click here for more details.
- datachain/cli/parser/job.py +3 -3
- datachain/client/hf.py +10 -0
- datachain/remote/studio.py +2 -2
- datachain/studio.py +3 -3
- {datachain-0.20.0.dist-info → datachain-0.20.2.dist-info}/METADATA +1 -1
- {datachain-0.20.0.dist-info → datachain-0.20.2.dist-info}/RECORD +10 -10
- {datachain-0.20.0.dist-info → datachain-0.20.2.dist-info}/WHEEL +0 -0
- {datachain-0.20.0.dist-info → datachain-0.20.2.dist-info}/entry_points.txt +0 -0
- {datachain-0.20.0.dist-info → datachain-0.20.2.dist-info}/licenses/LICENSE +0 -0
- {datachain-0.20.0.dist-info → datachain-0.20.2.dist-info}/top_level.txt +0 -0
datachain/cli/parser/job.py
CHANGED
|
@@ -52,10 +52,10 @@ def add_jobs_parser(subparsers, parent_parser) -> None:
|
|
|
52
52
|
)
|
|
53
53
|
|
|
54
54
|
studio_run_parser.add_argument(
|
|
55
|
-
"--cluster
|
|
56
|
-
type=
|
|
55
|
+
"--cluster",
|
|
56
|
+
type=str,
|
|
57
57
|
action="store",
|
|
58
|
-
help="Compute cluster
|
|
58
|
+
help="Compute cluster to run the job on",
|
|
59
59
|
)
|
|
60
60
|
|
|
61
61
|
studio_run_parser.add_argument(
|
datachain/client/hf.py
CHANGED
|
@@ -21,6 +21,9 @@ def _wrap_class(sync_fs_class):
|
|
|
21
21
|
asynchronous to False by default. This is similar to other Async FS
|
|
22
22
|
we initialize. E.g. it means we don't break things in Jupyter where code
|
|
23
23
|
run in async.
|
|
24
|
+
|
|
25
|
+
This also fixes write operations by ensuring they are properly forwarded
|
|
26
|
+
to the underlying filesystem without async buffering issues.
|
|
24
27
|
"""
|
|
25
28
|
from fsspec.implementations.asyn_wrapper import AsyncFileSystemWrapper
|
|
26
29
|
|
|
@@ -29,6 +32,13 @@ def _wrap_class(sync_fs_class):
|
|
|
29
32
|
sync_fs = sync_fs_class(*args, **kwargs)
|
|
30
33
|
super().__init__(sync_fs, asynchronous=False)
|
|
31
34
|
|
|
35
|
+
def open(self, path, mode="rb", **kwargs):
|
|
36
|
+
# Override open to ensure write operations work correctly.
|
|
37
|
+
# It seems to be a bug in the fsspec wrapper. It avoids
|
|
38
|
+
# wrapping open() explicitly but also doesn't redirect it to
|
|
39
|
+
# sync filesystem.
|
|
40
|
+
return self.sync_fs.open(path, mode, **kwargs)
|
|
41
|
+
|
|
32
42
|
GeneratedAsyncFileSystemWrapper.__name__ = f"Async{sync_fs_class.__name__}Wrapper"
|
|
33
43
|
return GeneratedAsyncFileSystemWrapper
|
|
34
44
|
|
datachain/remote/studio.py
CHANGED
|
@@ -427,7 +427,7 @@ class StudioClient:
|
|
|
427
427
|
requirements: Optional[str] = None,
|
|
428
428
|
repository: Optional[str] = None,
|
|
429
429
|
priority: Optional[int] = None,
|
|
430
|
-
|
|
430
|
+
cluster: Optional[str] = None,
|
|
431
431
|
) -> Response[JobData]:
|
|
432
432
|
data = {
|
|
433
433
|
"query": query,
|
|
@@ -440,7 +440,7 @@ class StudioClient:
|
|
|
440
440
|
"requirements": requirements,
|
|
441
441
|
"repository": repository,
|
|
442
442
|
"priority": priority,
|
|
443
|
-
"
|
|
443
|
+
"compute_cluster_name": cluster,
|
|
444
444
|
}
|
|
445
445
|
return self._send_request("datachain/job", data)
|
|
446
446
|
|
datachain/studio.py
CHANGED
|
@@ -41,7 +41,7 @@ def process_jobs_args(args: "Namespace"):
|
|
|
41
41
|
args.req,
|
|
42
42
|
args.req_file,
|
|
43
43
|
args.priority,
|
|
44
|
-
args.
|
|
44
|
+
args.cluster,
|
|
45
45
|
)
|
|
46
46
|
|
|
47
47
|
if args.cmd == "cancel":
|
|
@@ -300,7 +300,7 @@ def create_job(
|
|
|
300
300
|
req: Optional[list[str]] = None,
|
|
301
301
|
req_file: Optional[str] = None,
|
|
302
302
|
priority: Optional[int] = None,
|
|
303
|
-
|
|
303
|
+
cluster: Optional[str] = None,
|
|
304
304
|
):
|
|
305
305
|
query_type = "PYTHON" if query_file.endswith(".py") else "SHELL"
|
|
306
306
|
with open(query_file) as f:
|
|
@@ -330,7 +330,7 @@ def create_job(
|
|
|
330
330
|
repository=repository,
|
|
331
331
|
requirements=requirements,
|
|
332
332
|
priority=priority,
|
|
333
|
-
|
|
333
|
+
cluster=cluster,
|
|
334
334
|
)
|
|
335
335
|
if not response.ok:
|
|
336
336
|
raise DataChainError(response.message)
|
|
@@ -17,7 +17,7 @@ datachain/project.py,sha256=FobJbBJIy1-e-yemlL7M5eOcy694eceO5CWuY5H7bbw,2305
|
|
|
17
17
|
datachain/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
18
18
|
datachain/script_meta.py,sha256=V-LaFOZG84pD0Zc0NvejYdzwDgzITv6yHvAHggDCnuY,4978
|
|
19
19
|
datachain/semver.py,sha256=UB8GHPBtAP3UJGeiuJoInD7SK-DnB93_Xd1qy_CQ9cU,2074
|
|
20
|
-
datachain/studio.py,sha256=
|
|
20
|
+
datachain/studio.py,sha256=NMJYuWyJNLm6HS4GjcBBj7_CKjymsSBrjrLeXuEiD1M,12997
|
|
21
21
|
datachain/telemetry.py,sha256=0A4IOPPp9VlP5pyW9eBfaTK3YhHGzHl7dQudQjUAx9A,994
|
|
22
22
|
datachain/utils.py,sha256=DNqOi-Ydb7InyWvD9m7_yailxz6-YGpZzh00biQaHNo,15305
|
|
23
23
|
datachain/catalog/__init__.py,sha256=cMZzSz3VoUi-6qXSVaHYN-agxQuAcz2XSqnEPZ55crE,353
|
|
@@ -35,7 +35,7 @@ datachain/cli/commands/misc.py,sha256=c0DmkOLwcDI2YhA8ArOuLJk6aGzSMZCiKL_E2JGibV
|
|
|
35
35
|
datachain/cli/commands/query.py,sha256=Xzfgh14nPVH-sclqX1tpZqgfdTugw5s_44v0D33z6FA,1505
|
|
36
36
|
datachain/cli/commands/show.py,sha256=Cf8wBs12h-xtdOzjU5GTDy2C8rF5HJSF0hDJYER1zH8,1606
|
|
37
37
|
datachain/cli/parser/__init__.py,sha256=NPB6ssP4CCt7G1SWZ_8oNQEH2C1lktWgkyHYXDQJZNc,15073
|
|
38
|
-
datachain/cli/parser/job.py,sha256=
|
|
38
|
+
datachain/cli/parser/job.py,sha256=_wqOOxGRXG_-xuQ35FaLUOwjw6w8HviWvoEpZZ7VBzI,5289
|
|
39
39
|
datachain/cli/parser/studio.py,sha256=Bo__LKM7qhJGgkyX8M_bCvgZ2Gvqq6r_X4t1NdtaBIY,3881
|
|
40
40
|
datachain/cli/parser/utils.py,sha256=rETdD-9Hq9A4OolgfT7jQw4aoawtbfmkdtH6E7nkhpI,2888
|
|
41
41
|
datachain/client/__init__.py,sha256=1kDpCPoibMXi1gExR4lTLc5pi-k6M5TANiwtXkPoLhU,49
|
|
@@ -43,7 +43,7 @@ datachain/client/azure.py,sha256=7yyAgANHfu9Kfh187MKNTT1guvu9Q-WYsi4vYoY3aew,327
|
|
|
43
43
|
datachain/client/fileslice.py,sha256=bT7TYco1Qe3bqoc8aUkUZcPdPofJDHlryL5BsTn9xsY,3021
|
|
44
44
|
datachain/client/fsspec.py,sha256=huPHNDZRGz_rSN7XnS9hKmRoS2fsSz_y2-cxUSlvsOA,13938
|
|
45
45
|
datachain/client/gcs.py,sha256=8hcFhEHp8qGRsJoyfCoawfuwb1Et-MSkyQoM9AnNuXI,5204
|
|
46
|
-
datachain/client/hf.py,sha256=
|
|
46
|
+
datachain/client/hf.py,sha256=n5xJZdvNLS-SqokxuBCIPfGbhIeC_XfLm_BNYtEVvg4,2677
|
|
47
47
|
datachain/client/local.py,sha256=cGoCYflribzexiOe-Y1qbaE2fJRh-_EgQrfCSa0yK_E,4568
|
|
48
48
|
datachain/client/s3.py,sha256=6DNVGLg-woPS1DVlYVX2rIlunNblsuxyOnI1rSzhW3k,7515
|
|
49
49
|
datachain/data_storage/__init__.py,sha256=9Wit-oe5P46V7CJQTD0BJ5MhOa2Y9h3ddJ4VWTe-Lec,273
|
|
@@ -135,7 +135,7 @@ datachain/query/session.py,sha256=gKblltJAVQAVSTswAgWGDgGbpmFlFzFVkIQojDCjgXM,68
|
|
|
135
135
|
datachain/query/udf.py,sha256=e753bDJzTNjGFQn1WGTvOAWSwjDbrFI1-_DDWkWN2ls,1343
|
|
136
136
|
datachain/query/utils.py,sha256=HaSDNH_XGvp_NIcXjcB7j4vJRPi4_tbztDWclYelHY4,1208
|
|
137
137
|
datachain/remote/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
138
|
-
datachain/remote/studio.py,sha256=
|
|
138
|
+
datachain/remote/studio.py,sha256=aSAh7CCHrTp7U-642jHFkwY0Fer4YRAHVVpWomab3zY,15110
|
|
139
139
|
datachain/sql/__init__.py,sha256=6SQRdbljO3d2hx3EAVXEZrHQKv5jth0Jh98PogT59No,262
|
|
140
140
|
datachain/sql/selectable.py,sha256=cTc60qVoAwqqss0Vop8Lt5Z-ROnM1XrQmL_GLjRxhXs,1765
|
|
141
141
|
datachain/sql/types.py,sha256=ASSPkmM5EzdRindqj2O7WHLXq8VHAgFYedG8lYfGvVI,14045
|
|
@@ -157,9 +157,9 @@ datachain/sql/sqlite/vector.py,sha256=ncW4eu2FlJhrP_CIpsvtkUabZlQdl2D5Lgwy_cbfqR
|
|
|
157
157
|
datachain/toolkit/__init__.py,sha256=eQ58Q5Yf_Fgv1ZG0IO5dpB4jmP90rk8YxUWmPc1M2Bo,68
|
|
158
158
|
datachain/toolkit/split.py,sha256=ktGWzY4kyzjWyR86dhvzw-Zhl0lVk_LOX3NciTac6qo,2914
|
|
159
159
|
datachain/torch/__init__.py,sha256=gIS74PoEPy4TB3X6vx9nLO0Y3sLJzsA8ckn8pRWihJM,579
|
|
160
|
-
datachain-0.20.
|
|
161
|
-
datachain-0.20.
|
|
162
|
-
datachain-0.20.
|
|
163
|
-
datachain-0.20.
|
|
164
|
-
datachain-0.20.
|
|
165
|
-
datachain-0.20.
|
|
160
|
+
datachain-0.20.2.dist-info/licenses/LICENSE,sha256=8DnqK5yoPI_E50bEg_zsHKZHY2HqPy4rYN338BHQaRA,11344
|
|
161
|
+
datachain-0.20.2.dist-info/METADATA,sha256=kHj22yPbf64WX5RAZ8tCVphhJehZsJ3cl613rtXZab0,13281
|
|
162
|
+
datachain-0.20.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
163
|
+
datachain-0.20.2.dist-info/entry_points.txt,sha256=0GMJS6B_KWq0m3VT98vQI2YZodAMkn4uReZ_okga9R4,49
|
|
164
|
+
datachain-0.20.2.dist-info/top_level.txt,sha256=lZPpdU_2jJABLNIg2kvEOBi8PtsYikbN1OdMLHk8bTg,10
|
|
165
|
+
datachain-0.20.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|