ap-client 0.8.0.dev3__tar.gz → 0.8.0.dev4__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.
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/PKG-INFO +1 -1
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/ap_client/repo_read_guard.py +14 -0
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/pyproject.toml +1 -1
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/ap_client/__init__.py +0 -0
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/ap_client/akpool_commands.py +0 -0
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/ap_client/api.py +0 -0
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/ap_client/cli.py +0 -0
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/ap_client/config.py +0 -0
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/ap_client/dataset_commands.py +0 -0
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/ap_client/dataset_name.py +0 -0
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/ap_client/dataset_register.py +0 -0
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/ap_client/dfs_commands.py +0 -0
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/ap_client/exporter.py +0 -0
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/ap_client/fs_commands.py +0 -0
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/ap_client/fs_storage.py +0 -0
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/ap_client/fs_transfer.py +0 -0
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/ap_client/instance_commands.py +0 -0
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/ap_client/instance_options.py +0 -0
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/ap_client/irepo_sdk.py +0 -0
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/ap_client/managed_ak.py +0 -0
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/ap_client/manifest_view.py +0 -0
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/ap_client/ossutil_hash.py +0 -0
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/ap_client/ossutil_io.py +0 -0
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/ap_client/profile_cascade_all.py +0 -0
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/ap_client/profile_cascade_cli.py +0 -0
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/ap_client/profile_cascade_display.py +0 -0
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/ap_client/profile_cascade_state.py +0 -0
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/ap_client/profile_commands.py +0 -0
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/ap_client/profile_diagnostics.py +0 -0
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/ap_client/profile_display.py +0 -0
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/ap_client/profile_references.py +0 -0
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/ap_client/share_api.py +0 -0
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/ap_client/split_publish.py +0 -0
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/ap_client/submission_metadata.py +0 -0
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/ap_client/tbb.py +0 -0
- {ap_client-0.8.0.dev3 → ap_client-0.8.0.dev4}/ap_client/waiter.py +0 -0
|
@@ -15,6 +15,15 @@ STORAGE_SIDES = {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
|
|
18
|
+
class _PullMetadataProfile:
|
|
19
|
+
def __init__(self, profile: Any, environment: str) -> None:
|
|
20
|
+
self._profile = profile
|
|
21
|
+
self.dataset_environment = environment
|
|
22
|
+
|
|
23
|
+
def __getattr__(self, name: str) -> Any:
|
|
24
|
+
return getattr(self._profile, name)
|
|
25
|
+
|
|
26
|
+
|
|
18
27
|
def pull_client(client: Any, environment: str) -> Any:
|
|
19
28
|
"""Scope SDK 1.4.x pull metadata reads without changing its storage binding.
|
|
20
29
|
|
|
@@ -33,6 +42,11 @@ def pull_client(client: Any, environment: str) -> Any:
|
|
|
33
42
|
scoped = copy(client)
|
|
34
43
|
scoped._reg = copy(registry)
|
|
35
44
|
scoped._reg.get = partial(get, environment=environment)
|
|
45
|
+
profile = getattr(client, "_p", None)
|
|
46
|
+
if profile is not None:
|
|
47
|
+
# Directory manifests also use list_objects, which reads its environment
|
|
48
|
+
# from the profile. Delegate all storage/layout settings unchanged.
|
|
49
|
+
scoped._p = _PullMetadataProfile(profile, environment)
|
|
36
50
|
return scoped
|
|
37
51
|
|
|
38
52
|
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "ap-client"
|
|
7
|
-
version = "0.8.0.
|
|
7
|
+
version = "0.8.0.dev4"
|
|
8
8
|
description = "Agent Platform API Client & CLI"
|
|
9
9
|
readme = { text = "A lightweight Python SDK and command line interface for Agent Platform. It provides helpers for configuring API access and managing templates, datasets, jobs, and groups.", content-type = "text/markdown" }
|
|
10
10
|
requires-python = ">=3.10"
|
|
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
|