digitalhub 0.5.0b11__tar.gz → 0.6.0__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 digitalhub might be problematic. Click here for more details.
- {digitalhub-0.5.0b11 → digitalhub-0.6.0}/PKG-INFO +6 -6
- {digitalhub-0.5.0b11 → digitalhub-0.6.0}/digitalhub/__init__.py +11 -0
- {digitalhub-0.5.0b11 → digitalhub-0.6.0}/digitalhub.egg-info/PKG-INFO +6 -6
- digitalhub-0.6.0/digitalhub.egg-info/requires.txt +11 -0
- {digitalhub-0.5.0b11 → digitalhub-0.6.0}/pyproject.toml +7 -7
- {digitalhub-0.5.0b11 → digitalhub-0.6.0}/test/testkfp.py +2 -2
- digitalhub-0.5.0b11/digitalhub.egg-info/requires.txt +0 -11
- {digitalhub-0.5.0b11 → digitalhub-0.6.0}/LICENSE.txt +0 -0
- {digitalhub-0.5.0b11 → digitalhub-0.6.0}/README.md +0 -0
- {digitalhub-0.5.0b11 → digitalhub-0.6.0}/digitalhub.egg-info/SOURCES.txt +0 -0
- {digitalhub-0.5.0b11 → digitalhub-0.6.0}/digitalhub.egg-info/dependency_links.txt +0 -0
- {digitalhub-0.5.0b11 → digitalhub-0.6.0}/digitalhub.egg-info/top_level.txt +0 -0
- {digitalhub-0.5.0b11 → digitalhub-0.6.0}/setup.cfg +0 -0
- {digitalhub-0.5.0b11 → digitalhub-0.6.0}/test/test_crud_artifacts.py +0 -0
- {digitalhub-0.5.0b11 → digitalhub-0.6.0}/test/test_crud_dataitems.py +0 -0
- {digitalhub-0.5.0b11 → digitalhub-0.6.0}/test/test_crud_functions.py +0 -0
- {digitalhub-0.5.0b11 → digitalhub-0.6.0}/test/test_crud_runs.py +0 -0
- {digitalhub-0.5.0b11 → digitalhub-0.6.0}/test/test_crud_tasks.py +0 -0
- {digitalhub-0.5.0b11 → digitalhub-0.6.0}/test/test_imports.py +0 -0
- {digitalhub-0.5.0b11 → digitalhub-0.6.0}/test/testkfp_pipeline.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: digitalhub
|
|
3
|
-
Version: 0.
|
|
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
|
|
231
|
+
Requires-Dist: digitalhub-core>=0.6.0b
|
|
232
232
|
Provides-Extra: all
|
|
233
|
-
Requires-Dist: digitalhub-data
|
|
234
|
-
Requires-Dist: digitalhub-ml
|
|
233
|
+
Requires-Dist: digitalhub-data>=0.6.0b; extra == "all"
|
|
234
|
+
Requires-Dist: digitalhub-ml>=0.6.0b; extra == "all"
|
|
235
235
|
Provides-Extra: ml
|
|
236
|
-
Requires-Dist: digitalhub-ml
|
|
236
|
+
Requires-Dist: digitalhub-ml>=0.6.0b; extra == "ml"
|
|
237
237
|
Provides-Extra: data
|
|
238
|
-
Requires-Dist: digitalhub-data
|
|
238
|
+
Requires-Dist: digitalhub-data>=0.6.0b; extra == "data"
|
|
239
239
|
|
|
240
240
|
# Digitalhub Library
|
|
241
241
|
|
|
@@ -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.
|
|
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
|
|
231
|
+
Requires-Dist: digitalhub-core>=0.6.0b
|
|
232
232
|
Provides-Extra: all
|
|
233
|
-
Requires-Dist: digitalhub-data
|
|
234
|
-
Requires-Dist: digitalhub-ml
|
|
233
|
+
Requires-Dist: digitalhub-data>=0.6.0b; extra == "all"
|
|
234
|
+
Requires-Dist: digitalhub-ml>=0.6.0b; extra == "all"
|
|
235
235
|
Provides-Extra: ml
|
|
236
|
-
Requires-Dist: digitalhub-ml
|
|
236
|
+
Requires-Dist: digitalhub-ml>=0.6.0b; extra == "ml"
|
|
237
237
|
Provides-Extra: data
|
|
238
|
-
Requires-Dist: digitalhub-data
|
|
238
|
+
Requires-Dist: digitalhub-data>=0.6.0b; extra == "data"
|
|
239
239
|
|
|
240
240
|
# Digitalhub Library
|
|
241
241
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "digitalhub"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.6.0"
|
|
8
8
|
description = "Python SDK for DigitalHub"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [
|
|
@@ -20,16 +20,16 @@ classifiers = [
|
|
|
20
20
|
keywords = ["data", "dataops", "kubernetes"]
|
|
21
21
|
requires-python = ">=3.9"
|
|
22
22
|
dependencies = [
|
|
23
|
-
"digitalhub-core
|
|
23
|
+
"digitalhub-core>=0.6.0b",
|
|
24
24
|
]
|
|
25
25
|
|
|
26
26
|
[project.optional-dependencies]
|
|
27
27
|
all = [
|
|
28
|
-
"digitalhub-data
|
|
29
|
-
"digitalhub-ml
|
|
28
|
+
"digitalhub-data>=0.6.0b",
|
|
29
|
+
"digitalhub-ml>=0.6.0b",
|
|
30
30
|
]
|
|
31
|
-
ml = ["digitalhub-ml
|
|
32
|
-
data = ["digitalhub-data
|
|
31
|
+
ml = ["digitalhub-ml>=0.6.0b"]
|
|
32
|
+
data = ["digitalhub-data>=0.6.0b"]
|
|
33
33
|
|
|
34
34
|
[project.urls]
|
|
35
35
|
Homepage = "https://github.com/scc-digitalhub/digitalhub-sdk"
|
|
@@ -50,7 +50,7 @@ line-length = 120
|
|
|
50
50
|
convention = "numpy"
|
|
51
51
|
|
|
52
52
|
[tool.bumpver]
|
|
53
|
-
current_version = "0.
|
|
53
|
+
current_version = "0.6.0"
|
|
54
54
|
version_pattern = "MAJOR.MINOR.PATCH[PYTAGNUM]"
|
|
55
55
|
commit_message = "Bump version {old_version} -> {new_version}"
|
|
56
56
|
commit = false
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import os
|
|
2
2
|
import time
|
|
3
3
|
|
|
4
|
-
import digitalhub as
|
|
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 =
|
|
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
|
|
|
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
|