craft-ai-sdk 0.69.0__py3-none-any.whl → 0.70.0rc1__py3-none-any.whl

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/__init__.py CHANGED
@@ -13,4 +13,4 @@ from .io import ( # noqa: F401
13
13
  )
14
14
  from .sdk import CraftAiSdk # noqa: F401
15
15
 
16
- __version__ = "0.69.0"
16
+ __version__ = "0.70.0rc1"
@@ -474,6 +474,7 @@ def get_pipeline(
474
474
  the pipeline.
475
475
  """
476
476
  base_url = f"{sdk.base_environment_api_url}/pipelines/{pipeline_name}"
477
+ log_action(sdk, f'Get pipeline: "{pipeline_name}", "{wait_for_completion}".')
477
478
  if wait_for_completion:
478
479
  pipeline = wait_create_until_ready(
479
480
  sdk,
@@ -487,6 +488,7 @@ def get_pipeline(
487
488
  )
488
489
  else:
489
490
  pipeline = sdk._get(base_url)
491
+ log_action(sdk, "Get pipeline done.")
490
492
 
491
493
  latest_execution = sdk._get(
492
494
  f"{sdk.base_environment_api_url}/pipelines/{pipeline_name}/executions/latest"
craft_ai_sdk/sdk.py CHANGED
@@ -143,7 +143,7 @@ class CraftAiSdk(BaseCraftAiSdk):
143
143
  )
144
144
  # Default timeout of proxy network components
145
145
  _access_token_margin = timedelta(seconds=120)
146
- _version = "0.69.0" # Would be better to share it somewhere
146
+ _version = "0.70.0rc1" # Would be better to share it somewhere
147
147
 
148
148
  def __init__(
149
149
  self,
@@ -1,15 +1,23 @@
1
1
  from craft_ai_sdk.exceptions import SdkException
2
+ from craft_ai_sdk.shared.logger import log_action
2
3
 
3
4
 
4
5
  def wait_create_until_ready(sdk, name, get_func, timeout_s, start_time, get_log_func):
5
6
  elapsed_time = sdk._get_time() - start_time
6
7
  status = "creation_pending"
8
+ log_action(sdk, f'Start waiting for "{name}" to be created.')
7
9
  while status == "creation_pending" and (
8
10
  timeout_s is None or elapsed_time < timeout_s
9
11
  ):
10
12
  created_obj = get_func(sdk, name)
11
13
  status = created_obj.get("creation_info", {}).get("status", None)
12
14
  elapsed_time = sdk._get_time() - start_time
15
+ log_action(
16
+ sdk,
17
+ f'Still waiting for "{name}" to be created, \
18
+ status="{status}", elapsed time={elapsed_time}s.',
19
+ )
20
+ log_action(sdk, f'End waiting for "{name}" to be created, status="{status}".')
13
21
 
14
22
  if status == "creation_failed":
15
23
  raise SdkException(
@@ -1,22 +1,22 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: craft-ai-sdk
3
- Version: 0.69.0
3
+ Version: 0.70.0rc1
4
4
  Summary: Craft AI MLOps platform SDK
5
- License: Apache-2.0
5
+ License-Expression: Apache-2.0
6
+ License-File: LICENSE
6
7
  Author: Craft AI
7
8
  Author-email: contact@craft.ai
8
- Requires-Python: >=3.10,<4.0
9
- Classifier: License :: OSI Approved :: Apache Software License
9
+ Requires-Python: >=3.10
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: 3.10
12
12
  Classifier: Programming Language :: Python :: 3.11
13
13
  Classifier: Programming Language :: Python :: 3.12
14
14
  Classifier: Programming Language :: Python :: 3.13
15
- Requires-Dist: PyJWT (>=2.3.0,<3.0.0)
16
- Requires-Dist: StrEnum (>=0.4.9,<0.5.0)
17
- Requires-Dist: requests (>=2.27.1,<3.0.0)
18
- Requires-Dist: weaviate-client (>=4.10.4,<5.0.0)
19
- Project-URL: Homepage, https://www.craft.ai/
15
+ Classifier: Programming Language :: Python :: 3.14
16
+ Requires-Dist: StrEnum (>=0.4.9)
17
+ Requires-Dist: pyjwt (>=2.4.0)
18
+ Requires-Dist: requests (>=2.32.4)
19
+ Requires-Dist: weaviate-client (>=4.15.3)
20
20
  Description-Content-Type: text/markdown
21
21
 
22
22
  # Craft AI Python SDK
@@ -1,4 +1,4 @@
1
- craft_ai_sdk/__init__.py,sha256=lCg_D7DIM0YxsWliWSk8h1yuHEt8hleU802uDwPvn1o,363
1
+ craft_ai_sdk/__init__.py,sha256=-VRj8BecNaJ3rN-aSOKH66BKMtQBEY0JtrmFpgY_MI8,366
2
2
  craft_ai_sdk/constants.py,sha256=rH4JrGlTpbjjjNRrKhk5oScbj5G5INrcVza6Bb6kIzY,980
3
3
  craft_ai_sdk/core/data_store.py,sha256=BPQalGcm6bujgkgu-MtNWWhKiJEg4MiVuCtByNbTbK8,9956
4
4
  craft_ai_sdk/core/deployments.py,sha256=Hig0Z6tZXbaLxms9ENtKI4OG3ki7G4Iz3wGk2V2Gmfg,37731
@@ -7,18 +7,18 @@ craft_ai_sdk/core/environment_variables.py,sha256=CpkyneLf8UF-1QXe36Ay_RZJ8grSfb
7
7
  craft_ai_sdk/core/pipeline_executions.py,sha256=EfhNDzWiKro9-gDUPHJFMFcdPXtznlJo2leFKLloDmA,18709
8
8
  craft_ai_sdk/core/pipeline_metrics.py,sha256=AYxF5HpLCfTYK-TydEHswaAHat3N9NiOTHpPd_R9-rY,7190
9
9
  craft_ai_sdk/core/pipeline_templates.py,sha256=3WjM4vsURpTNF3dt42h_xk68ysxFkz4kiOxqAb4VyRE,5623
10
- craft_ai_sdk/core/pipelines.py,sha256=FD6ai2_YhE1tz6QO57bj_lA-i93TXZzm0Y9PA0mpocg,26587
10
+ craft_ai_sdk/core/pipelines.py,sha256=GHFKEEJErKEC0RKWzLtTIze5Mu4HN5dwjfsNmOE4x6o,26711
11
11
  craft_ai_sdk/core/resource_metrics.py,sha256=ubCe6QOhud3f-EQr_TXKBsrFFaxZubqTS3fZqfV7kgg,3457
12
12
  craft_ai_sdk/core/steps.py,sha256=TwOWXAAVpLPuSZ_gvf-3E5uKEvfGIzR52Y58bqKn_Ds,23487
13
13
  craft_ai_sdk/core/users.py,sha256=q5et87q0SOMpRTBOiLX026oaEOTaY1aGqKdbUC51zbA,618
14
14
  craft_ai_sdk/core/vector_database.py,sha256=NzlYeEvq4eH75Y47Z0Gam7BWJIJ0E2IPXajmPipHUAU,4553
15
15
  craft_ai_sdk/exceptions.py,sha256=IC-JfZmmmaTsbMCgirOEByRmWnatQLjKe8BErRkuwM0,1075
16
16
  craft_ai_sdk/io.py,sha256=x1G7ga10W_SeTDLHe-FrhU26_WNwWW32-yprMmCZ5Ck,11836
17
- craft_ai_sdk/sdk.py,sha256=k7ssT2xngEcKRv-61Jd789fOp1J2neoHHIc7bPsArdw,11749
17
+ craft_ai_sdk/sdk.py,sha256=-eu9PBRIr2PDoVJA33idncDawJ7ynU3S3y_tq_J-CIY,11752
18
18
  craft_ai_sdk/shared/authentication.py,sha256=mnsEhG0mWwG9ZY-GToHDNnYERoou_cjt4k8l_87QW6s,1024
19
19
  craft_ai_sdk/shared/environments.py,sha256=JOV3s0KIFVl_zskJb--bybzIXEGQJjrf_T4dL-szSlQ,500
20
20
  craft_ai_sdk/shared/execution_context.py,sha256=B2Ghq-wiUvq81q5mhsm79Oc59c8c00uQxMIpApFD03o,585
21
- craft_ai_sdk/shared/helpers.py,sha256=5ZBiHlS-k1OgKejZgMlDJiYwIPYk7yg-lzeJI67poCc,1070
21
+ craft_ai_sdk/shared/helpers.py,sha256=BRBkOZat9HFnibZZmj2gZWNeE0aZlP0PNSaHat-C57o,1425
22
22
  craft_ai_sdk/shared/logger.py,sha256=pGZ_Zb4yH_KyaTdEYx1c4wd1OCa9I8xjKeLiktStwtk,1336
23
23
  craft_ai_sdk/shared/request_response_handler.py,sha256=ZDivkVWRXBt241mO6o6BQhgsFBLjQv9OsjKjFgSqCOM,4014
24
24
  craft_ai_sdk/shared/types.py,sha256=ByoR5ePdoFK4idC9bJLBvZH1kTcGg74cfxumi3o9Oks,89
@@ -27,8 +27,8 @@ craft_ai_sdk/utils/__init__.py,sha256=A0sLCXSPD1Z3q2GP1uLDjvif4ivOr__Hzg9RQysEuq
27
27
  craft_ai_sdk/utils/datetime_utils.py,sha256=yYP5HVdI879WXxQCajPTnas1pWrwInOxMux-mxqQNQM,734
28
28
  craft_ai_sdk/utils/dict_utils.py,sha256=1HQ3A14SN48XPFDmQleujGAgksmkjIs3hyPLpwhwh24,748
29
29
  craft_ai_sdk/utils/file_utils.py,sha256=o10-CDt4qzgCJNPykvlNrL6WTouhVLY8C8BVpHJYt18,2795
30
- craft_ai_sdk-0.69.0.dist-info/LICENSE,sha256=_2oYRJic9lZK05LceuJ9aZZw5mPHYc1WQhJiVS-oGFU,10754
31
- craft_ai_sdk-0.69.0.dist-info/METADATA,sha256=OSNcoGgKnMpDY48iPhCLKWAWZEsxC1qv2a_c1uHMNoU,1628
32
- craft_ai_sdk-0.69.0.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
33
- craft_ai_sdk-0.69.0.dist-info/entry_points.txt,sha256=QC96WcXvvUfLMRgFD-l_y7_TgC9SqZybLs9EQ8dsGiQ,417
34
- craft_ai_sdk-0.69.0.dist-info/RECORD,,
30
+ craft_ai_sdk-0.70.0rc1.dist-info/METADATA,sha256=lPX2drYEean_mJX8NKbqxPM6wzhdky6Bo6YshkGkTnc,1574
31
+ craft_ai_sdk-0.70.0rc1.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
32
+ craft_ai_sdk-0.70.0rc1.dist-info/entry_points.txt,sha256=QC96WcXvvUfLMRgFD-l_y7_TgC9SqZybLs9EQ8dsGiQ,417
33
+ craft_ai_sdk-0.70.0rc1.dist-info/licenses/LICENSE,sha256=_2oYRJic9lZK05LceuJ9aZZw5mPHYc1WQhJiVS-oGFU,10754
34
+ craft_ai_sdk-0.70.0rc1.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.1.1
2
+ Generator: poetry-core 2.2.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any