craft-ai-sdk 0.62.0rc1__tar.gz → 0.62.0rc2__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.

Files changed (32) hide show
  1. {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.0rc2}/PKG-INFO +2 -2
  2. {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.0rc2}/craft_ai_sdk/__init__.py +1 -1
  3. {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.0rc2}/craft_ai_sdk/core/vector_database.py +7 -2
  4. {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.0rc2}/craft_ai_sdk/sdk.py +1 -1
  5. {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.0rc2}/documentation.pdf +0 -0
  6. {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.0rc2}/pyproject.toml +2 -7
  7. {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.0rc2}/LICENSE +0 -0
  8. {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.0rc2}/README.md +0 -0
  9. {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.0rc2}/craft_ai_sdk/constants.py +0 -0
  10. {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.0rc2}/craft_ai_sdk/core/data_store.py +0 -0
  11. {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.0rc2}/craft_ai_sdk/core/deployments.py +0 -0
  12. {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.0rc2}/craft_ai_sdk/core/endpoints.py +0 -0
  13. {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.0rc2}/craft_ai_sdk/core/environment_variables.py +0 -0
  14. {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.0rc2}/craft_ai_sdk/core/pipeline_executions.py +0 -0
  15. {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.0rc2}/craft_ai_sdk/core/pipeline_metrics.py +0 -0
  16. {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.0rc2}/craft_ai_sdk/core/pipelines.py +0 -0
  17. {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.0rc2}/craft_ai_sdk/core/resource_metrics.py +0 -0
  18. {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.0rc2}/craft_ai_sdk/core/steps.py +0 -0
  19. {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.0rc2}/craft_ai_sdk/core/users.py +0 -0
  20. {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.0rc2}/craft_ai_sdk/exceptions.py +0 -0
  21. {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.0rc2}/craft_ai_sdk/io.py +0 -0
  22. {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.0rc2}/craft_ai_sdk/shared/authentication.py +0 -0
  23. {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.0rc2}/craft_ai_sdk/shared/environments.py +0 -0
  24. {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.0rc2}/craft_ai_sdk/shared/execution_context.py +0 -0
  25. {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.0rc2}/craft_ai_sdk/shared/helpers.py +0 -0
  26. {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.0rc2}/craft_ai_sdk/shared/logger.py +0 -0
  27. {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.0rc2}/craft_ai_sdk/shared/request_response_handler.py +0 -0
  28. {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.0rc2}/craft_ai_sdk/shared/warnings.py +0 -0
  29. {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.0rc2}/craft_ai_sdk/utils/__init__.py +0 -0
  30. {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.0rc2}/craft_ai_sdk/utils/datetime_utils.py +0 -0
  31. {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.0rc2}/craft_ai_sdk/utils/dict_utils.py +0 -0
  32. {craft_ai_sdk-0.62.0rc1 → craft_ai_sdk-0.62.0rc2}/craft_ai_sdk/utils/file_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: craft-ai-sdk
3
- Version: 0.62.0rc1
3
+ Version: 0.62.0rc2
4
4
  Summary: Craft AI MLOps platform SDK
5
5
  Home-page: https://www.craft.ai/
6
6
  License: Apache-2.0
@@ -13,10 +13,10 @@ Classifier: Programming Language :: Python :: 3.9
13
13
  Classifier: Programming Language :: Python :: 3.10
14
14
  Classifier: Programming Language :: Python :: 3.11
15
15
  Classifier: Programming Language :: Python :: 3.12
16
- Provides-Extra: full
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
20
  Description-Content-Type: text/markdown
21
21
 
22
22
  # Craft AI Python SDK
@@ -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.0rc1"
16
+ __version__ = "0.62.0rc2"
@@ -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.0rc1" # Would be better to share it somewhere
139
+ _version = "0.62.0rc2" # 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.0rc1"
3
+ version = "0.62.0rc2"
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"