instance-repo 1.0.9.dev2__tar.gz → 1.0.9.dev3__tar.gz
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.
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/PKG-INFO +1 -1
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/__init__.py +1 -1
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/cli.py +10 -12
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/clients/splits.py +6 -1
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo.egg-info/PKG-INFO +1 -1
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/pyproject.toml +1 -1
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/README.md +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/_routing.py +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/_site_defaults.py +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/bootstrap.py +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/cache.py +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/clients/__init__.py +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/clients/benchmarks.py +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/clients/config.py +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/clients/datasets.py +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/clients/images.py +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/clients/instances.py +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/clients/reports.py +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/clients/scaffold.py +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/clients/versions.py +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/clients/workflows.py +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/concurrency.py +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/content.py +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/endpoints.py +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/errors.py +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/image.py +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/layout.py +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/loader.py +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/models.py +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/paths.py +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/release.py +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/repo.py +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/retry.py +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/store/__init__.py +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/store/acr.py +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/store/base.py +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/store/oss.py +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/store/registry.py +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/tasktoml.py +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/transport.py +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo/validate.py +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo.egg-info/SOURCES.txt +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo.egg-info/dependency_links.txt +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo.egg-info/entry_points.txt +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo.egg-info/requires.txt +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo.egg-info/top_level.txt +0 -0
- {instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/setup.cfg +0 -0
|
@@ -870,19 +870,17 @@ def main(argv=None, *, repo: Repo | None = None, out=None) -> int:
|
|
|
870
870
|
# 1.0.10:取版本完整详情(splits 明细 + manifest + 时间戳)。
|
|
871
871
|
# split_first 分支时服务端聚合 legacy 投影。
|
|
872
872
|
dv = r.versions.get(dataset, version, environment=args.environment)
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
file=out)
|
|
878
|
-
print(f"dataset_version_id={dv.
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
print(f" split\t{s.get('name','')}\tstatus={s.get('status','')}"
|
|
883
|
-
f"\toss_prefix={s.get('oss_prefix','')}"
|
|
873
|
+
# versions.get 返回 DatasetVersion dataclass(字段访问,非 dict 取值)。
|
|
874
|
+
print(f"version\t{dv.version}\tstatus={dv.status}"
|
|
875
|
+
f"\tstorage_path={dv.storage_path or ''}", file=out)
|
|
876
|
+
print(f"published_at={dv.published_at or ''}"
|
|
877
|
+
f"\tlast_ingested_at={dv.last_ingested_at or ''}", file=out)
|
|
878
|
+
print(f"dataset_version_id={dv.dataset_version_id or ''}", file=out)
|
|
879
|
+
for s in dv.splits:
|
|
880
|
+
print(f" split\t{s.get('name', '')}\tstatus={s.get('status', '')}"
|
|
881
|
+
f"\toss_prefix={s.get('oss_prefix', '')}"
|
|
884
882
|
f"\tinstance_count={s.get('instance_count') or 0}", file=out)
|
|
885
|
-
manifest = dv.
|
|
883
|
+
manifest = dv.manifest or {}
|
|
886
884
|
print(f"manifest\tinstance_count={manifest.get('instance_count') or 0}"
|
|
887
885
|
f"\tfile_count={manifest.get('file_count') or 0}"
|
|
888
886
|
f"\tsize_bytes={manifest.get('size_bytes') or 0}", file=out)
|
|
@@ -224,11 +224,14 @@ class SplitsClient:
|
|
|
224
224
|
|
|
225
225
|
def update(self, dataset: str, split: str | None = None, *,
|
|
226
226
|
version: str | None = None, run_type: str = "",
|
|
227
|
-
dataset_split_id: str | None = None
|
|
227
|
+
dataset_split_id: str | None = None,
|
|
228
|
+
environment: str | None = None) -> DatasetSplit:
|
|
228
229
|
"""更新 split 记录(``PATCH /datasets/splits/detail``)。
|
|
229
230
|
|
|
230
231
|
服务端 body 仅接受 ``run_type``(**必填**:"train"/"eval",空串=清除);
|
|
231
232
|
仅 online 环境(split 记录 pre 环境的写经 versions.update 走集合路由)。
|
|
233
|
+
``environment`` 缺省由 profile 派生(同 get/list);profile 派生为 pre
|
|
234
|
+
而目标 split 记录在 online 集合时,须显式传 ``environment="online"``。
|
|
232
235
|
|
|
233
236
|
寻址二选一:``dataset_split_id``(优先,split-first 精确记录 id)或
|
|
234
237
|
``dataset``+``split``(+可选 ``version``)name 三元组。
|
|
@@ -248,6 +251,8 @@ class SplitsClient:
|
|
|
248
251
|
raise SchemaError(
|
|
249
252
|
f"invalid run_type {rt!r}; must be one of "
|
|
250
253
|
f"{', '.join(RUN_TYPE_VALUES)} (empty string to clear)")
|
|
254
|
+
if (env := self._env(environment)):
|
|
255
|
+
q += f"&environment={quote(env, safe='')}"
|
|
251
256
|
data = self._t.patch(f"{self._BASE}/detail?{q}", {"run_type": rt})
|
|
252
257
|
return DatasetSplit.from_dict(data) if isinstance(data, dict) else DatasetSplit()
|
|
253
258
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{instance_repo-1.0.9.dev2 → instance_repo-1.0.9.dev3}/instance_repo.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|