craft-ai-sdk 0.62.1rc1__tar.gz → 0.62.2rc1__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 (32) hide show
  1. {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/PKG-INFO +1 -1
  2. {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/__init__.py +1 -1
  3. {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/core/data_store.py +9 -6
  4. {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/sdk.py +1 -1
  5. {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/documentation.pdf +0 -0
  6. {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/pyproject.toml +1 -1
  7. {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/LICENSE +0 -0
  8. {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/README.md +0 -0
  9. {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/constants.py +0 -0
  10. {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/core/deployments.py +0 -0
  11. {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/core/endpoints.py +0 -0
  12. {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/core/environment_variables.py +0 -0
  13. {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/core/pipeline_executions.py +0 -0
  14. {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/core/pipeline_metrics.py +0 -0
  15. {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/core/pipelines.py +0 -0
  16. {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/core/resource_metrics.py +0 -0
  17. {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/core/steps.py +0 -0
  18. {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/core/users.py +0 -0
  19. {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/core/vector_database.py +0 -0
  20. {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/exceptions.py +0 -0
  21. {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/io.py +0 -0
  22. {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/shared/authentication.py +0 -0
  23. {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/shared/environments.py +0 -0
  24. {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/shared/execution_context.py +0 -0
  25. {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/shared/helpers.py +0 -0
  26. {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/shared/logger.py +0 -0
  27. {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/shared/request_response_handler.py +0 -0
  28. {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/shared/warnings.py +0 -0
  29. {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/utils/__init__.py +0 -0
  30. {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/utils/datetime_utils.py +0 -0
  31. {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/utils/dict_utils.py +0 -0
  32. {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/utils/file_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: craft-ai-sdk
3
- Version: 0.62.1rc1
3
+ Version: 0.62.2rc1
4
4
  Summary: Craft AI MLOps platform SDK
5
5
  License: Apache-2.0
6
6
  Author: Craft AI
@@ -13,4 +13,4 @@ from .io import ( # noqa: F401
13
13
  )
14
14
  from .sdk import CraftAiSdk # noqa: F401
15
15
 
16
- __version__ = "0.62.1rc1"
16
+ __version__ = "0.62.2rc1"
@@ -1,5 +1,4 @@
1
1
  import io
2
- import urllib.parse
3
2
 
4
3
  import requests
5
4
 
@@ -34,9 +33,13 @@ def get_data_store_object_information(sdk: BaseCraftAiSdk, object_path_in_datast
34
33
  return result
35
34
 
36
35
 
37
- def list_data_store_objects(sdk: BaseCraftAiSdk):
36
+ def list_data_store_objects(sdk: BaseCraftAiSdk, folder_path=None):
38
37
  """Get the list of the objects stored in the data store.
39
38
 
39
+ Args:
40
+ folder_path (:obj:`str`, optional): Location of the requested folder in the data
41
+ store.
42
+
40
43
  Returns:
41
44
  :obj:`list` of :obj:`dict`: List of objects in the data store represented
42
45
  as :obj:`dict` with the following keys:
@@ -47,12 +50,12 @@ def list_data_store_objects(sdk: BaseCraftAiSdk):
47
50
  * ``"size"`` (:obj:`int`): The size of the object in bytes.
48
51
  """
49
52
  url = f"{sdk.base_environment_api_url}/data-store/list"
50
-
51
- result = sdk._get(url)
53
+ params = {"folder_path": folder_path} if folder_path else {}
54
+ result = sdk._get(url, params=params)
52
55
  all_items = result["items"]
53
56
  while result.get("continuation_token", None):
54
- query = {"continuation_token": result["continuation_token"]}
55
- result = sdk._get(f"{url}?{urllib.parse.urlencode(query)}")
57
+ params = {"continuation_token": result["continuation_token"], **params}
58
+ result = sdk._get(url, params=params)
56
59
  all_items.extend(result["items"])
57
60
 
58
61
  for object in all_items:
@@ -136,7 +136,7 @@ class CraftAiSdk(BaseCraftAiSdk):
136
136
  os.environ.get("CRAFT_AI__MULTIPART_PART_SIZE__B", str(38 * 256 * 1024))
137
137
  )
138
138
  _access_token_margin = timedelta(seconds=30)
139
- _version = "0.62.1rc1" # Would be better to share it somewhere
139
+ _version = "0.62.2rc1" # Would be better to share it somewhere
140
140
 
141
141
  def __init__(
142
142
  self,
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "craft-ai-sdk"
3
- version = "0.62.1rc1"
3
+ version = "0.62.2rc1"
4
4
  description = "Craft AI MLOps platform SDK"
5
5
  license = "Apache-2.0"
6
6
  authors = ["Craft AI <contact@craft.ai>"]