digitalhub 0.5.0b10__py3-none-any.whl → 0.6.0__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.

Potentially problematic release.


This version of digitalhub might be problematic. Click here for more details.

digitalhub/__init__.py CHANGED
@@ -7,11 +7,15 @@ from digitalhub_core import (
7
7
  delete_task,
8
8
  delete_workflow,
9
9
  get_artifact,
10
+ get_artifact_versions,
10
11
  get_function,
12
+ get_function_versions,
11
13
  get_run,
12
14
  get_secret,
15
+ get_secret_versions,
13
16
  get_task,
14
17
  get_workflow,
18
+ get_workflow_versions,
15
19
  import_artifact,
16
20
  import_function,
17
21
  import_run,
@@ -24,6 +28,7 @@ from digitalhub_core import (
24
28
  list_secrets,
25
29
  list_tasks,
26
30
  list_workflows,
31
+ log_artifact,
27
32
  new_artifact,
28
33
  new_function,
29
34
  new_run,
@@ -49,20 +54,24 @@ if not _PROJECT_IMPORTED:
49
54
  from digitalhub_data import (
50
55
  delete_dataitem,
51
56
  get_dataitem,
57
+ get_dataitem_versions,
52
58
  import_dataitem,
53
59
  list_dataitems,
60
+ log_dataitem,
54
61
  new_dataitem,
55
62
  update_dataitem,
56
63
  )
57
64
  from digitalhub_ml import (
58
65
  delete_model,
59
66
  get_model,
67
+ get_model_versions,
60
68
  get_or_create_project,
61
69
  get_project,
62
70
  import_model,
63
71
  import_project,
64
72
  list_models,
65
73
  load_project,
74
+ log_model,
66
75
  new_model,
67
76
  new_project,
68
77
  update_model,
@@ -77,12 +86,14 @@ if not _PROJECT_IMPORTED:
77
86
  from digitalhub_data import (
78
87
  delete_dataitem,
79
88
  get_dataitem,
89
+ get_dataitem_versions,
80
90
  get_or_create_project,
81
91
  get_project,
82
92
  import_dataitem,
83
93
  import_project,
84
94
  list_dataitems,
85
95
  load_project,
96
+ log_dataitem,
86
97
  new_dataitem,
87
98
  new_project,
88
99
  update_dataitem,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: digitalhub
3
- Version: 0.5.0b10
3
+ Version: 0.6.0
4
4
  Summary: Python SDK for DigitalHub
5
5
  Author-email: Fondazione Bruno Kessler <dslab@fbk.eu>, Matteo Martini <mmartini@fbk.eu>
6
6
  License: Apache License
@@ -228,14 +228,14 @@ Classifier: Programming Language :: Python :: 3.10
228
228
  Requires-Python: >=3.9
229
229
  Description-Content-Type: text/markdown
230
230
  License-File: LICENSE.txt
231
- Requires-Dist: digitalhub-core <0.6,~=0.5.0b
231
+ Requires-Dist: digitalhub-core >=0.6.0b
232
232
  Provides-Extra: all
233
- Requires-Dist: digitalhub-data <0.6,~=0.5.0b ; extra == 'all'
234
- Requires-Dist: digitalhub-ml <0.6,~=0.5.0b ; extra == 'all'
233
+ Requires-Dist: digitalhub-data >=0.6.0b ; extra == 'all'
234
+ Requires-Dist: digitalhub-ml >=0.6.0b ; extra == 'all'
235
235
  Provides-Extra: data
236
- Requires-Dist: digitalhub-data <0.6,~=0.5.0b ; extra == 'data'
236
+ Requires-Dist: digitalhub-data >=0.6.0b ; extra == 'data'
237
237
  Provides-Extra: ml
238
- Requires-Dist: digitalhub-ml <0.6,~=0.5.0b ; extra == 'ml'
238
+ Requires-Dist: digitalhub-ml >=0.6.0b ; extra == 'ml'
239
239
 
240
240
  # Digitalhub Library
241
241
 
@@ -0,0 +1,14 @@
1
+ digitalhub/__init__.py,sha256=-cfIAC3MzPffMfYGAe-hwsAmGNLacyzCbTg9-xNSDQI,2519
2
+ test/test_crud_artifacts.py,sha256=yjlY_Bx99LPtMh15ufqFVU3KdogkmMjbbIGFkyVg25I,2511
3
+ test/test_crud_dataitems.py,sha256=-xAQ4UxSBqWPwsSLDSqy0EXp8uElymh-MAak3NqnOcs,2504
4
+ test/test_crud_functions.py,sha256=gYIBpPTE0spTVoM8li2N64nCa4zSTgh2CRu0FReWsEg,2769
5
+ test/test_crud_runs.py,sha256=s8LG1SpsQe4pisFGmq-hlHiJr3RQcXsfjggRKtLGCCA,2220
6
+ test/test_crud_tasks.py,sha256=XhSTj0hQNwJ61MbdSczYKMXYUIf_e6alwls9TnIpEiY,2111
7
+ test/test_imports.py,sha256=2Uuo-pa0HgA-qASl1ZpUj6tVze8_2PlmBapuyvDgLDQ,1269
8
+ test/testkfp.py,sha256=JnJkFGRhFAP7DdBVGQEduisNGyR1Eek8SgbK_4wYdF4,1078
9
+ test/testkfp_pipeline.py,sha256=WceFrCp-avHI7PcwIvnv7Kgs2xK3oQqU6sjaonGamg8,622
10
+ digitalhub-0.6.0.dist-info/LICENSE.txt,sha256=_yVOtnbW7Ss28mp058UEEc1X4Rgj8-kQBP_kj8_Sc88,11585
11
+ digitalhub-0.6.0.dist-info/METADATA,sha256=zZ-Om56K5oDsSkJ9QnxP05adg6SyKMalwCEuPDepZS0,14664
12
+ digitalhub-0.6.0.dist-info/WHEEL,sha256=Wyh-_nZ0DJYolHNn1_hMa4lM7uDedD_RGVwbmTjyItk,91
13
+ digitalhub-0.6.0.dist-info/top_level.txt,sha256=ae9pDfCF27ZoaVAxuBKONMP0lm5P-N_I-e-no1WlvD8,16
14
+ digitalhub-0.6.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (70.1.0)
2
+ Generator: setuptools (71.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
test/testkfp.py CHANGED
@@ -1,7 +1,7 @@
1
1
  import os
2
2
  import time
3
3
 
4
- import digitalhub as dhcore
4
+ import digitalhub as dh
5
5
 
6
6
 
7
7
  def _is_finished(state: str):
@@ -13,7 +13,7 @@ os.environ["DIGITALHUB_CORE_WORKFLOW_IMAGE"] = "localhost:5000/dhcoreworkflow9:l
13
13
  os.environ["KFP_ENDPOINT"] = "http://localhost:8888/"
14
14
 
15
15
  # Get or create project
16
- project = dhcore.get_or_create_project("project-kfp2")
16
+ project = dh.get_or_create_project("project-kfp2")
17
17
 
18
18
  url = "https://gist.githubusercontent.com/kevin336/acbb2271e66c10a5b73aacf82ca82784/raw/e38afe62e088394d61ed30884dd50a6826eee0a8/employees.csv"
19
19
 
@@ -1,14 +0,0 @@
1
- digitalhub/__init__.py,sha256=k0vNUpj0UmEsH-esONd5c5_WzWaaxmMWguUXi9ExF7E,2218
2
- test/test_crud_artifacts.py,sha256=yjlY_Bx99LPtMh15ufqFVU3KdogkmMjbbIGFkyVg25I,2511
3
- test/test_crud_dataitems.py,sha256=-xAQ4UxSBqWPwsSLDSqy0EXp8uElymh-MAak3NqnOcs,2504
4
- test/test_crud_functions.py,sha256=gYIBpPTE0spTVoM8li2N64nCa4zSTgh2CRu0FReWsEg,2769
5
- test/test_crud_runs.py,sha256=s8LG1SpsQe4pisFGmq-hlHiJr3RQcXsfjggRKtLGCCA,2220
6
- test/test_crud_tasks.py,sha256=XhSTj0hQNwJ61MbdSczYKMXYUIf_e6alwls9TnIpEiY,2111
7
- test/test_imports.py,sha256=2Uuo-pa0HgA-qASl1ZpUj6tVze8_2PlmBapuyvDgLDQ,1269
8
- test/testkfp.py,sha256=awl2LD6TDXqrZ1R4yyFZkWjmdISL5TWrg3_mrqlvNXI,1086
9
- test/testkfp_pipeline.py,sha256=WceFrCp-avHI7PcwIvnv7Kgs2xK3oQqU6sjaonGamg8,622
10
- digitalhub-0.5.0b10.dist-info/LICENSE.txt,sha256=_yVOtnbW7Ss28mp058UEEc1X4Rgj8-kQBP_kj8_Sc88,11585
11
- digitalhub-0.5.0b10.dist-info/METADATA,sha256=x6PxXB4YxGztwPetkoCvtgrD52h4weIsvKJgNbu_GYE,14692
12
- digitalhub-0.5.0b10.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
13
- digitalhub-0.5.0b10.dist-info/top_level.txt,sha256=ae9pDfCF27ZoaVAxuBKONMP0lm5P-N_I-e-no1WlvD8,16
14
- digitalhub-0.5.0b10.dist-info/RECORD,,