craft-ai-sdk 0.62.0rc1__tar.gz → 0.62.1rc1__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.
Potentially problematic release.
This version of craft-ai-sdk might be problematic. Click here for more details.
- {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.1rc1}/PKG-INFO +5 -4
- {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.1rc1}/craft_ai_sdk/__init__.py +1 -1
- {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.1rc1}/craft_ai_sdk/core/data_store.py +2 -3
- {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.1rc1}/craft_ai_sdk/core/vector_database.py +7 -2
- {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.1rc1}/craft_ai_sdk/sdk.py +1 -1
- {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.1rc1}/documentation.pdf +0 -0
- {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.1rc1}/pyproject.toml +2 -7
- {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.1rc1}/LICENSE +0 -0
- {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.1rc1}/README.md +0 -0
- {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.1rc1}/craft_ai_sdk/constants.py +0 -0
- {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.1rc1}/craft_ai_sdk/core/deployments.py +0 -0
- {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.1rc1}/craft_ai_sdk/core/endpoints.py +0 -0
- {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.1rc1}/craft_ai_sdk/core/environment_variables.py +0 -0
- {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.1rc1}/craft_ai_sdk/core/pipeline_executions.py +0 -0
- {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.1rc1}/craft_ai_sdk/core/pipeline_metrics.py +0 -0
- {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.1rc1}/craft_ai_sdk/core/pipelines.py +0 -0
- {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.1rc1}/craft_ai_sdk/core/resource_metrics.py +0 -0
- {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.1rc1}/craft_ai_sdk/core/steps.py +0 -0
- {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.1rc1}/craft_ai_sdk/core/users.py +0 -0
- {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.1rc1}/craft_ai_sdk/exceptions.py +0 -0
- {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.1rc1}/craft_ai_sdk/io.py +0 -0
- {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.1rc1}/craft_ai_sdk/shared/authentication.py +0 -0
- {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.1rc1}/craft_ai_sdk/shared/environments.py +0 -0
- {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.1rc1}/craft_ai_sdk/shared/execution_context.py +0 -0
- {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.1rc1}/craft_ai_sdk/shared/helpers.py +0 -0
- {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.1rc1}/craft_ai_sdk/shared/logger.py +0 -0
- {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.1rc1}/craft_ai_sdk/shared/request_response_handler.py +0 -0
- {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.1rc1}/craft_ai_sdk/shared/warnings.py +0 -0
- {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.1rc1}/craft_ai_sdk/utils/__init__.py +0 -0
- {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.1rc1}/craft_ai_sdk/utils/datetime_utils.py +0 -0
- {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.1rc1}/craft_ai_sdk/utils/dict_utils.py +0 -0
- {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.1rc1}/craft_ai_sdk/utils/file_utils.py +0 -0
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: craft-ai-sdk
|
|
3
|
-
Version: 0.62.
|
|
3
|
+
Version: 0.62.1rc1
|
|
4
4
|
Summary: Craft AI MLOps platform SDK
|
|
5
|
-
Home-page: https://www.craft.ai/
|
|
6
5
|
License: Apache-2.0
|
|
7
6
|
Author: Craft AI
|
|
8
7
|
Author-email: contact@craft.ai
|
|
@@ -13,10 +12,12 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
13
12
|
Classifier: Programming Language :: Python :: 3.10
|
|
14
13
|
Classifier: Programming Language :: Python :: 3.11
|
|
15
14
|
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
-
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
17
16
|
Requires-Dist: PyJWT (>=2.3.0,<3.0.0)
|
|
18
17
|
Requires-Dist: StrEnum (>=0.4.9,<0.5.0)
|
|
19
18
|
Requires-Dist: requests (>=2.27.1,<3.0.0)
|
|
19
|
+
Requires-Dist: weaviate-client (>=4.10.4,<5.0.0)
|
|
20
|
+
Project-URL: Homepage, https://www.craft.ai/
|
|
20
21
|
Description-Content-Type: text/markdown
|
|
21
22
|
|
|
22
23
|
# Craft AI Python SDK
|
|
@@ -47,12 +47,11 @@ def list_data_store_objects(sdk: BaseCraftAiSdk):
|
|
|
47
47
|
* ``"size"`` (:obj:`int`): The size of the object in bytes.
|
|
48
48
|
"""
|
|
49
49
|
url = f"{sdk.base_environment_api_url}/data-store/list"
|
|
50
|
-
query = {"include_continuation_token": "t"}
|
|
51
50
|
|
|
52
|
-
result = sdk._get(
|
|
51
|
+
result = sdk._get(url)
|
|
53
52
|
all_items = result["items"]
|
|
54
53
|
while result.get("continuation_token", None):
|
|
55
|
-
query
|
|
54
|
+
query = {"continuation_token": result["continuation_token"]}
|
|
56
55
|
result = sdk._get(f"{url}?{urllib.parse.urlencode(query)}")
|
|
57
56
|
all_items.extend(result["items"])
|
|
58
57
|
|
|
@@ -3,8 +3,6 @@ from craft_ai_sdk.shared.environments import get_environment_id
|
|
|
3
3
|
from ..sdk import BaseCraftAiSdk
|
|
4
4
|
from ..shared.logger import log_action, log_func_result
|
|
5
5
|
|
|
6
|
-
import weaviate
|
|
7
|
-
|
|
8
6
|
|
|
9
7
|
def get_vector_database_credentials(sdk: BaseCraftAiSdk):
|
|
10
8
|
"""Get the credentials of the vector database.
|
|
@@ -31,6 +29,13 @@ def get_weaviate_client(sdk: BaseCraftAiSdk):
|
|
|
31
29
|
Returns:
|
|
32
30
|
:obj:`weaviate.WeaviateClient`: The Weaviate client.
|
|
33
31
|
"""
|
|
32
|
+
try:
|
|
33
|
+
import weaviate
|
|
34
|
+
except ModuleNotFoundError:
|
|
35
|
+
raise ModuleNotFoundError(
|
|
36
|
+
"The 'weaviate' package is required to use the vector database. "
|
|
37
|
+
"You can install it with 'pip install weaviate-client'."
|
|
38
|
+
)
|
|
34
39
|
credentials = get_vector_database_credentials(sdk)
|
|
35
40
|
|
|
36
41
|
is_secure = credentials["vector_database_url"].startswith("https://")
|
|
@@ -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.1rc1" # Would be better to share it somewhere
|
|
140
140
|
|
|
141
141
|
def __init__(
|
|
142
142
|
self,
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "craft-ai-sdk"
|
|
3
|
-
version = "0.62.
|
|
3
|
+
version = "0.62.1rc1"
|
|
4
4
|
description = "Craft AI MLOps platform SDK"
|
|
5
5
|
license = "Apache-2.0"
|
|
6
6
|
authors = ["Craft AI <contact@craft.ai>"]
|
|
@@ -29,9 +29,7 @@ python = "^3.9"
|
|
|
29
29
|
requests = "^2.27.1"
|
|
30
30
|
PyJWT = "^2.3.0"
|
|
31
31
|
StrEnum = "^0.4.9"
|
|
32
|
-
|
|
33
|
-
[tool.poetry.group.weaviate.dependencies]
|
|
34
|
-
weaviate-client = { version = "^4.10.4" }
|
|
32
|
+
weaviate-client = "^4.10.4"
|
|
35
33
|
|
|
36
34
|
[tool.poetry.group.dev.dependencies]
|
|
37
35
|
ipython = "^8.18.1"
|
|
@@ -51,9 +49,6 @@ doc8 = "^0.10.1"
|
|
|
51
49
|
Sphinx = "^5.0.1"
|
|
52
50
|
sphinxcontrib-restbuilder = "^0.3"
|
|
53
51
|
|
|
54
|
-
[tool.poetry.extras]
|
|
55
|
-
full = ["weaviate-client"]
|
|
56
|
-
|
|
57
52
|
[build-system]
|
|
58
53
|
requires = ["poetry-core>=1.0.0"]
|
|
59
54
|
build-backend = "poetry.core.masonry.api"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.1rc1}/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
|
{craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.1rc1}/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
|