instance-repo 1.3.5.dev5__tar.gz → 1.3.5.dev6__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.3.5.dev5 → instance_repo-1.3.5.dev6}/PKG-INFO +1 -1
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/__init__.py +1 -1
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/clients/instances.py +7 -7
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo.egg-info/PKG-INFO +1 -1
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/pyproject.toml +1 -1
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/README.md +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/_routing.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/_site_defaults.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/artifacts.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/bootstrap.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/cache.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/cli.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/clients/__init__.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/clients/benchmarks.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/clients/config.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/clients/datasets.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/clients/images.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/clients/reports.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/clients/scaffold.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/clients/splits.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/clients/versions.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/clients/workflows.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/concurrency.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/content.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/endpoints.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/errors.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/image.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/layout.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/loader.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/models.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/paths.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/release.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/repo.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/retry.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/store/__init__.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/store/acr.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/store/base.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/store/oss.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/store/oss_discovery.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/store/registry.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/tasktoml.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/transport.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo/validate.py +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo.egg-info/SOURCES.txt +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo.egg-info/dependency_links.txt +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo.egg-info/entry_points.txt +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo.egg-info/requires.txt +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo.egg-info/top_level.txt +0 -0
- {instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/setup.cfg +0 -0
|
@@ -166,7 +166,8 @@ class InstancesClient:
|
|
|
166
166
|
|
|
167
167
|
**OSS 双触发回退**(设计文档 §4.4.4):
|
|
168
168
|
a. ``TransportError(biz_code=92001)``(dataset 不存在)→ OSS 回退。
|
|
169
|
-
b. ``
|
|
169
|
+
b. ``TransportError(biz_code=92023)``(split 不存在)→ OSS 回退。
|
|
170
|
+
c. ``result is None``(registry 吞了 92003 instance 不存在)→ OSS 回退。
|
|
170
171
|
"""
|
|
171
172
|
# 只在调用方显式指定时才下发覆盖参数:注册表是可注入实现,
|
|
172
173
|
# 保持缺省调用形态与历史一致,避免破坏既有实现。
|
|
@@ -196,7 +197,8 @@ class InstancesClient:
|
|
|
196
197
|
fallback_to_oss: bool = True) -> list[DatasetInstance]:
|
|
197
198
|
"""自动翻页取全量;``environment`` / ``metadata_model`` 语义同 :meth:`get`。
|
|
198
199
|
|
|
199
|
-
**OSS 回退**:当 ``TransportError(biz_code=92001)``(dataset
|
|
200
|
+
**OSS 回退**:当 ``TransportError(biz_code=92001)``(dataset 不存在)
|
|
201
|
+
或 ``biz_code=92023``(split 不存在)时,
|
|
200
202
|
若 ``fallback_to_oss=True`` 且 ``content_store`` 已注入,自动回退到 OSS
|
|
201
203
|
存储层列举实例。
|
|
202
204
|
"""
|
|
@@ -228,7 +230,7 @@ class InstancesClient:
|
|
|
228
230
|
给出修复提示);``difficulty`` easy/medium/hard。**服务端无排序参数**
|
|
229
231
|
(固定 instance_id asc),SDK 不暴露。
|
|
230
232
|
|
|
231
|
-
**OSS 回退**:当 ``TransportError(biz_code=92001)`` 时回退到 OSS 存储层,
|
|
233
|
+
**OSS 回退**:当 ``TransportError(biz_code=92001)`` 或 ``92023`` 时回退到 OSS 存储层,
|
|
232
234
|
在客户端做过滤(q/tags/difficulty/instance_id)+ 内存分页。
|
|
233
235
|
"""
|
|
234
236
|
from urllib.parse import quote
|
|
@@ -471,10 +473,8 @@ class InstancesClient:
|
|
|
471
473
|
params.append(("token", tk))
|
|
472
474
|
if env:
|
|
473
475
|
params.append(("environment", env))
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
# 会对 split_first 数据集错误要求 version 非空(92005)。
|
|
477
|
-
params.append(("metadata_model", mm or "split_first"))
|
|
476
|
+
if mm:
|
|
477
|
+
params.append(("metadata_model", mm))
|
|
478
478
|
qs = "&".join(f"{k}={quote(v, safe='')}" for k, v in params)
|
|
479
479
|
data = self._t.get(f"/apis/v1/datasets/objects?{qs}")
|
|
480
480
|
if not isinstance(data, dict):
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{instance_repo-1.3.5.dev5 → instance_repo-1.3.5.dev6}/instance_repo.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|