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.
- {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/PKG-INFO +1 -1
- {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/__init__.py +1 -1
- {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/core/data_store.py +9 -6
- {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/sdk.py +1 -1
- {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/documentation.pdf +0 -0
- {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/pyproject.toml +1 -1
- {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/LICENSE +0 -0
- {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/README.md +0 -0
- {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/constants.py +0 -0
- {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/core/deployments.py +0 -0
- {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/core/endpoints.py +0 -0
- {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/core/environment_variables.py +0 -0
- {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/core/pipeline_executions.py +0 -0
- {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/core/pipeline_metrics.py +0 -0
- {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/core/pipelines.py +0 -0
- {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/core/resource_metrics.py +0 -0
- {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/core/steps.py +0 -0
- {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/core/users.py +0 -0
- {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/core/vector_database.py +0 -0
- {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/exceptions.py +0 -0
- {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/io.py +0 -0
- {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/shared/authentication.py +0 -0
- {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/shared/environments.py +0 -0
- {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/shared/execution_context.py +0 -0
- {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/shared/helpers.py +0 -0
- {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/shared/logger.py +0 -0
- {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/shared/request_response_handler.py +0 -0
- {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/shared/warnings.py +0 -0
- {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/utils/__init__.py +0 -0
- {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/utils/datetime_utils.py +0 -0
- {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/utils/dict_utils.py +0 -0
- {craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/utils/file_utils.py +0 -0
|
@@ -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
|
-
|
|
55
|
-
result = sdk._get(
|
|
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.
|
|
139
|
+
_version = "0.62.2rc1" # Would be better to share it somewhere
|
|
140
140
|
|
|
141
141
|
def __init__(
|
|
142
142
|
self,
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/core/environment_variables.py
RENAMED
|
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
|
{craft_ai_sdk-0.62.1rc1 → craft_ai_sdk-0.62.2rc1}/craft_ai_sdk/shared/request_response_handler.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|