ap-client 0.8.0.dev3__py3-none-any.whl → 0.8.0.dev4__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.
@@ -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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: ap-client
3
- Version: 0.8.0.dev3
3
+ Version: 0.8.0.dev4
4
4
  Summary: Agent Platform API Client & CLI
5
5
  Requires-Python: >=3.10
6
6
  Requires-Dist: irepo-artifact==0.2.6
@@ -26,13 +26,13 @@ ap_client/profile_commands.py,sha256=DxQO9sqxJ2-9Dkw8Opzn2nGYDf1Tell9Rrp1iAsNIBw
26
26
  ap_client/profile_diagnostics.py,sha256=cz1KedYXHspZQBK9iomAZKy9d-RaKPckUTpp8z-6Hlc,4689
27
27
  ap_client/profile_display.py,sha256=pROXsfjzviv65J8cjxLcaMUbUrUwcOCv9m8ybM_Ojwo,7683
28
28
  ap_client/profile_references.py,sha256=szpIgNTfsbl9t0j9vo7UpdECgMJzfMNIgis7xm3x8Es,1648
29
- ap_client/repo_read_guard.py,sha256=BLo5hSkNXIokYMsPaIabmspLG5HDT-LMpQk6w3PudFM,2766
29
+ ap_client/repo_read_guard.py,sha256=WqP3x61RGZNa2xgVnRiMF897dnAIro8i2Qmqk7dOFZc,3319
30
30
  ap_client/share_api.py,sha256=m9cDePltmE4VFPC3Oku-TSjiwOpUqqMvq4Zmc_6Ueeo,8839
31
31
  ap_client/split_publish.py,sha256=fcG5V_Xc5sa5IG5GY8K7lp4Y5q5UVoUHIQgJOOo-1RA,6596
32
32
  ap_client/submission_metadata.py,sha256=DI02H-B5ODR4M03cAQ6VDGcQwIrnZD03WF2HpE_KfHQ,8152
33
33
  ap_client/tbb.py,sha256=WJstsdqxCXvuNuSdIOc0Y6Q4GgUWE0cAj0dP4iMKHVM,7149
34
34
  ap_client/waiter.py,sha256=l-9F4j7z3-VpeMKEKAdNg_4ahReu0fEFsoby1bMiQd0,7794
35
- ap_client-0.8.0.dev3.dist-info/METADATA,sha256=g9TpdcHs6tZKaWDx4wcnTvnFGTDsous7ubtvEcYFUoo,694
36
- ap_client-0.8.0.dev3.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
37
- ap_client-0.8.0.dev3.dist-info/entry_points.txt,sha256=lxFlc62mI5NftTCQ5W1fTPQLnItvI8AYQ3aIlOLVLn0,42
38
- ap_client-0.8.0.dev3.dist-info/RECORD,,
35
+ ap_client-0.8.0.dev4.dist-info/METADATA,sha256=ZrXEqSuqhznmYvWru-9kerwGyRvIQfQus3qQKr8fjXc,694
36
+ ap_client-0.8.0.dev4.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
37
+ ap_client-0.8.0.dev4.dist-info/entry_points.txt,sha256=lxFlc62mI5NftTCQ5W1fTPQLnItvI8AYQ3aIlOLVLn0,42
38
+ ap_client-0.8.0.dev4.dist-info/RECORD,,