ap-client 0.5.3.dev4__tar.gz → 0.5.3.dev5__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.
Files changed (23) hide show
  1. {ap_client-0.5.3.dev4 → ap_client-0.5.3.dev5}/PKG-INFO +3 -3
  2. {ap_client-0.5.3.dev4 → ap_client-0.5.3.dev5}/ap_client/ossutil_io.py +1 -7
  3. {ap_client-0.5.3.dev4 → ap_client-0.5.3.dev5}/ap_client/repo_read_guard.py +1 -1
  4. {ap_client-0.5.3.dev4 → ap_client-0.5.3.dev5}/pyproject.toml +3 -3
  5. {ap_client-0.5.3.dev4 → ap_client-0.5.3.dev5}/ap_client/__init__.py +0 -0
  6. {ap_client-0.5.3.dev4 → ap_client-0.5.3.dev5}/ap_client/akpool_commands.py +0 -0
  7. {ap_client-0.5.3.dev4 → ap_client-0.5.3.dev5}/ap_client/api.py +0 -0
  8. {ap_client-0.5.3.dev4 → ap_client-0.5.3.dev5}/ap_client/cli.py +0 -0
  9. {ap_client-0.5.3.dev4 → ap_client-0.5.3.dev5}/ap_client/config.py +0 -0
  10. {ap_client-0.5.3.dev4 → ap_client-0.5.3.dev5}/ap_client/dataset_commands.py +0 -0
  11. {ap_client-0.5.3.dev4 → ap_client-0.5.3.dev5}/ap_client/dataset_register.py +0 -0
  12. {ap_client-0.5.3.dev4 → ap_client-0.5.3.dev5}/ap_client/exporter.py +0 -0
  13. {ap_client-0.5.3.dev4 → ap_client-0.5.3.dev5}/ap_client/fs_commands.py +0 -0
  14. {ap_client-0.5.3.dev4 → ap_client-0.5.3.dev5}/ap_client/instance_commands.py +0 -0
  15. {ap_client-0.5.3.dev4 → ap_client-0.5.3.dev5}/ap_client/irepo_sdk.py +0 -0
  16. {ap_client-0.5.3.dev4 → ap_client-0.5.3.dev5}/ap_client/managed_ak.py +0 -0
  17. {ap_client-0.5.3.dev4 → ap_client-0.5.3.dev5}/ap_client/manifest_view.py +0 -0
  18. {ap_client-0.5.3.dev4 → ap_client-0.5.3.dev5}/ap_client/ossutil_commands.py +0 -0
  19. {ap_client-0.5.3.dev4 → ap_client-0.5.3.dev5}/ap_client/profile_commands.py +0 -0
  20. {ap_client-0.5.3.dev4 → ap_client-0.5.3.dev5}/ap_client/share_api.py +0 -0
  21. {ap_client-0.5.3.dev4 → ap_client-0.5.3.dev5}/ap_client/split_publish.py +0 -0
  22. {ap_client-0.5.3.dev4 → ap_client-0.5.3.dev5}/ap_client/tbb.py +0 -0
  23. {ap_client-0.5.3.dev4 → ap_client-0.5.3.dev5}/ap_client/waiter.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: ap-client
3
- Version: 0.5.3.dev4
3
+ Version: 0.5.3.dev5
4
4
  Summary: Agent Platform API Client & CLI
5
5
  Requires-Python: >=3.10
6
6
  Requires-Dist: irepo-artifact==0.2.1
@@ -10,9 +10,9 @@ Requires-Dist: rich>=13.0.0
10
10
  Requires-Dist: typer>=0.9.0
11
11
  Requires-Dist: websockets>=13.0
12
12
  Provides-Extra: all
13
- Requires-Dist: instance-repo[oss]<2.0.0,>=1.3.5.dev2; extra == 'all'
13
+ Requires-Dist: instance-repo[oss]<2.0.0,>=1.3.5.dev3; extra == 'all'
14
14
  Provides-Extra: dataset
15
- Requires-Dist: instance-repo[oss]<2.0.0,>=1.3.5.dev2; extra == 'dataset'
15
+ Requires-Dist: instance-repo[oss]<2.0.0,>=1.3.5.dev3; extra == 'dataset'
16
16
  Description-Content-Type: text/markdown
17
17
 
18
18
  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.
@@ -285,20 +285,14 @@ class OssFiles:
285
285
  def resolve(self, value: str, **kwargs) -> RemotePath:
286
286
  return self.binding.resolve(value, encoding_type=self.encoding_type, **kwargs)
287
287
 
288
- def _dataset_for(self, scope: str) -> str | None:
289
- if not scope.startswith(self.binding.prefix):
290
- raise OssUsageError("OSS path is outside repo-config prefix")
291
- relative = scope[len(self.binding.prefix) :].rstrip("/")
292
- return "/".join(relative.split("/")[:2]) if relative else None
293
-
294
288
  def _credentials(self, scope: str, permission: str, list_only: bool) -> dict:
295
289
  cred = dict(
296
290
  self.repo.transport.get_oss_credentials(
297
291
  self.binding.bucket,
298
292
  scope,
299
- dataset_name=self._dataset_for(scope),
300
293
  permission=permission,
301
294
  list_only=list_only,
295
+ dataset_source="oss",
302
296
  )
303
297
  )
304
298
  # The SDK treats OSS_REGION as optional; repo-config supplies the signing region.
@@ -20,7 +20,7 @@ def oss_fallback_kwargs(repo: Any, client: Any, method: str, environment: str) -
20
20
  discovery. auto follows the bound store. Bind missing SDK discovery provenance.
21
21
  """
22
22
  profile = getattr(repo, "profile", None)
23
- # instance-repo 1.3.5.dev2 reads _p in Dataset discovery without binding it
23
+ # instance-repo 1.3.5.dev2+ reads _p in Dataset discovery without binding it
24
24
  # during construction. Supply the actual Repo profile before that check.
25
25
  if callable(getattr(client, "_discovery_env_match", None)) and not hasattr(client, "_p"):
26
26
  client._p = profile
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "ap-client"
7
- version = "0.5.3.dev4"
7
+ version = "0.5.3.dev5"
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"
@@ -19,10 +19,10 @@ dependencies = [
19
19
 
20
20
  [project.optional-dependencies]
21
21
  dataset = [
22
- "instance-repo[oss]>=1.3.5.dev2,<2.0.0",
22
+ "instance-repo[oss]>=1.3.5.dev3,<2.0.0",
23
23
  ]
24
24
  all = [
25
- "instance-repo[oss]>=1.3.5.dev2,<2.0.0",
25
+ "instance-repo[oss]>=1.3.5.dev3,<2.0.0",
26
26
  ]
27
27
 
28
28
  [project.scripts]