digitalhub 0.14.1__py3-none-any.whl → 0.14.2__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/entities/builders.py +2 -0
- digitalhub/entities/project/crud.py +8 -8
- digitalhub/entities/secret/crud.py +2 -2
- digitalhub/entities/workflow/crud.py +0 -3
- {digitalhub-0.14.1.dist-info → digitalhub-0.14.2.dist-info}/METADATA +1 -1
- {digitalhub-0.14.1.dist-info → digitalhub-0.14.2.dist-info}/RECORD +9 -9
- {digitalhub-0.14.1.dist-info → digitalhub-0.14.2.dist-info}/WHEEL +0 -0
- {digitalhub-0.14.1.dist-info → digitalhub-0.14.2.dist-info}/licenses/AUTHORS +0 -0
- {digitalhub-0.14.1.dist-info → digitalhub-0.14.2.dist-info}/licenses/LICENSE +0 -0
digitalhub/entities/builders.py
CHANGED
|
@@ -10,6 +10,7 @@ from digitalhub.entities.dataitem.table.builder import DataitemTableBuilder
|
|
|
10
10
|
from digitalhub.entities.model.mlflow.builder import ModelModelBuilder
|
|
11
11
|
from digitalhub.entities.project._base.builder import ProjectProjectBuilder
|
|
12
12
|
from digitalhub.entities.secret._base.builder import SecretSecretBuilder
|
|
13
|
+
from digitalhub.entities.trigger.lifecycle.builder import TriggerLifecycleBuilder
|
|
13
14
|
from digitalhub.entities.trigger.scheduler.builder import TriggerSchedulerBuilder
|
|
14
15
|
|
|
15
16
|
entity_builders: tuple = (
|
|
@@ -20,6 +21,7 @@ entity_builders: tuple = (
|
|
|
20
21
|
(DataitemTableBuilder.ENTITY_KIND, DataitemTableBuilder),
|
|
21
22
|
(ModelModelBuilder.ENTITY_KIND, ModelModelBuilder),
|
|
22
23
|
(TriggerSchedulerBuilder.ENTITY_KIND, TriggerSchedulerBuilder),
|
|
24
|
+
(TriggerLifecycleBuilder.ENTITY_KIND, TriggerLifecycleBuilder),
|
|
23
25
|
)
|
|
24
26
|
|
|
25
27
|
##############################
|
|
@@ -6,7 +6,7 @@ from __future__ import annotations
|
|
|
6
6
|
|
|
7
7
|
import typing
|
|
8
8
|
|
|
9
|
-
from digitalhub.entities._commons.enums import EntityTypes
|
|
9
|
+
from digitalhub.entities._commons.enums import EntityKinds, EntityTypes
|
|
10
10
|
from digitalhub.entities._processors.processors import base_processor, context_processor
|
|
11
11
|
from digitalhub.entities.project.utils import setup_project
|
|
12
12
|
from digitalhub.utils.exceptions import BackendError
|
|
@@ -24,7 +24,7 @@ def new_project(
|
|
|
24
24
|
description: str | None = None,
|
|
25
25
|
labels: list[str] | None = None,
|
|
26
26
|
config: dict | None = None,
|
|
27
|
-
|
|
27
|
+
source: str | None = None,
|
|
28
28
|
setup_kwargs: dict | None = None,
|
|
29
29
|
) -> Project:
|
|
30
30
|
"""
|
|
@@ -40,7 +40,7 @@ def new_project(
|
|
|
40
40
|
List of labels.
|
|
41
41
|
config : dict
|
|
42
42
|
DHCore environment configuration.
|
|
43
|
-
|
|
43
|
+
source : str
|
|
44
44
|
The context local folder of the project.
|
|
45
45
|
setup_kwargs : dict
|
|
46
46
|
Setup keyword arguments passed to setup_project() function.
|
|
@@ -54,15 +54,15 @@ def new_project(
|
|
|
54
54
|
--------
|
|
55
55
|
>>> obj = new_project("my-project")
|
|
56
56
|
"""
|
|
57
|
-
if
|
|
58
|
-
|
|
57
|
+
if source is None:
|
|
58
|
+
source = "./"
|
|
59
59
|
obj = base_processor.create_project_entity(
|
|
60
60
|
name=name,
|
|
61
|
-
kind=
|
|
61
|
+
kind=EntityKinds.PROJECT_PROJECT.value,
|
|
62
62
|
description=description,
|
|
63
63
|
labels=labels,
|
|
64
64
|
config=config,
|
|
65
|
-
|
|
65
|
+
source=source,
|
|
66
66
|
)
|
|
67
67
|
return setup_project(obj, setup_kwargs)
|
|
68
68
|
|
|
@@ -211,7 +211,7 @@ def get_or_create_project(
|
|
|
211
211
|
labels=labels,
|
|
212
212
|
config=config,
|
|
213
213
|
setup_kwargs=setup_kwargs,
|
|
214
|
-
|
|
214
|
+
source=context,
|
|
215
215
|
)
|
|
216
216
|
|
|
217
217
|
|
|
@@ -6,7 +6,7 @@ from __future__ import annotations
|
|
|
6
6
|
|
|
7
7
|
import typing
|
|
8
8
|
|
|
9
|
-
from digitalhub.entities._commons.enums import EntityTypes
|
|
9
|
+
from digitalhub.entities._commons.enums import EntityKinds, EntityTypes
|
|
10
10
|
from digitalhub.entities._commons.utils import is_valid_key
|
|
11
11
|
from digitalhub.entities._processors.processors import context_processor
|
|
12
12
|
from digitalhub.utils.exceptions import EntityNotExistsError
|
|
@@ -66,7 +66,7 @@ def new_secret(
|
|
|
66
66
|
obj: Secret = context_processor.create_context_entity(
|
|
67
67
|
project=project,
|
|
68
68
|
name=name,
|
|
69
|
-
kind=
|
|
69
|
+
kind=EntityKinds.SECRET_SECRET.value,
|
|
70
70
|
uuid=uuid,
|
|
71
71
|
description=description,
|
|
72
72
|
labels=labels,
|
|
@@ -289,7 +289,6 @@ def delete_workflow(
|
|
|
289
289
|
entity_id: str | None = None,
|
|
290
290
|
delete_all_versions: bool = False,
|
|
291
291
|
cascade: bool = True,
|
|
292
|
-
**kwargs,
|
|
293
292
|
) -> dict:
|
|
294
293
|
"""
|
|
295
294
|
Delete object from backend.
|
|
@@ -307,8 +306,6 @@ def delete_workflow(
|
|
|
307
306
|
If True, use entity name instead of entity key as identifier.
|
|
308
307
|
cascade : bool
|
|
309
308
|
Cascade delete.
|
|
310
|
-
**kwargs : dict
|
|
311
|
-
Parameters to pass to the API call.
|
|
312
309
|
|
|
313
310
|
Returns
|
|
314
311
|
-------
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: digitalhub
|
|
3
|
-
Version: 0.14.
|
|
3
|
+
Version: 0.14.2
|
|
4
4
|
Summary: Python SDK for Digitalhub
|
|
5
5
|
Project-URL: Homepage, https://github.com/scc-digitalhub/digitalhub-sdk
|
|
6
6
|
Author-email: Fondazione Bruno Kessler <digitalhub@fbk.eu>, Matteo Martini <mmartini@fbk.eu>
|
|
@@ -3,7 +3,7 @@ digitalhub/context/api.py,sha256=Z4ffAl79YTx-Xq8y6RICptLqbdJoWFcZZsEBdsAIAVc,283
|
|
|
3
3
|
digitalhub/context/builder.py,sha256=pnOKvzRa6HIIYW86vhQ7W5aKcVb1yYERxwsA6TA8Wu0,2770
|
|
4
4
|
digitalhub/context/context.py,sha256=eDZgZAJBtd3v267Xxt2lwM3WgBm9jtzbR6RoKUhu9V4,2995
|
|
5
5
|
digitalhub/entities/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
6
|
-
digitalhub/entities/builders.py,sha256=
|
|
6
|
+
digitalhub/entities/builders.py,sha256=gnjE4qRUo-GiGEeA4HQ_YeRb_Wis65nDk_Vnyy5o3-I,2204
|
|
7
7
|
digitalhub/entities/_base/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
8
8
|
digitalhub/entities/_base/_base/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
9
9
|
digitalhub/entities/_base/_base/entity.py,sha256=1OiJWY79VnlmMU4q6uaQA0g63bnFpBMFALg8dJ4M08g,1910
|
|
@@ -131,7 +131,7 @@ digitalhub/entities/model/sklearn/entity.py,sha256=PvjW0xMyLEPH3bO8FAOEdu1H1hp1r
|
|
|
131
131
|
digitalhub/entities/model/sklearn/spec.py,sha256=AEoiRp2T46z8IrQ-BHx1rtd4b_yaEZJSQ_necKjkjjw,409
|
|
132
132
|
digitalhub/entities/model/sklearn/status.py,sha256=YBf5joe8hJH59U92m0JKFlmLCRpNj0EyR3mA7DKiVrQ,295
|
|
133
133
|
digitalhub/entities/project/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
134
|
-
digitalhub/entities/project/crud.py,sha256=
|
|
134
|
+
digitalhub/entities/project/crud.py,sha256=xWRBtCGb8_EIgl1UdMZljWnc5NJXHE2BPUN7-y56G5M,7250
|
|
135
135
|
digitalhub/entities/project/utils.py,sha256=NP3VomFV84BEdgcbjBp4K70oPrVeuhTIu8GL8H8NGmY,1210
|
|
136
136
|
digitalhub/entities/project/_base/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
137
137
|
digitalhub/entities/project/_base/builder.py,sha256=i5loUneU7VdL3oAJOyWP3wl8Z_OJRrYzXcsw3_BrftY,3654
|
|
@@ -147,7 +147,7 @@ digitalhub/entities/run/_base/entity.py,sha256=r2RMhG1HB_mkiWeZD5OZDFkfqSnWU6ia_
|
|
|
147
147
|
digitalhub/entities/run/_base/spec.py,sha256=n6S-hUBJDaHiqHqJCAdOzzAFpp0pvEa96PafND-HYdw,1830
|
|
148
148
|
digitalhub/entities/run/_base/status.py,sha256=BFHUlvFJHXWNsawThd2WpfwisFBnzyTy5KVPAIJGeNM,638
|
|
149
149
|
digitalhub/entities/secret/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
150
|
-
digitalhub/entities/secret/crud.py,sha256=
|
|
150
|
+
digitalhub/entities/secret/crud.py,sha256=YIMpQ2J2klc3JZShB-pJYkguH2AXqSD-QLSqgsCxi_I,7184
|
|
151
151
|
digitalhub/entities/secret/_base/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
152
152
|
digitalhub/entities/secret/_base/builder.py,sha256=_jx7lgvbnFNpqbwT8-HYb5GNiNSg_KWA3Ngzz6l9bc4,2303
|
|
153
153
|
digitalhub/entities/secret/_base/entity.py,sha256=1BLa2Ij03L5ilmS0FTwqrOhgi4ItiBnJoxzMmKHdIe0,1885
|
|
@@ -179,7 +179,7 @@ digitalhub/entities/trigger/scheduler/entity.py,sha256=05VLQK0np31QPu0Dwp8mpC2VR
|
|
|
179
179
|
digitalhub/entities/trigger/scheduler/spec.py,sha256=xU6Oh1okj_toJmMyaAy7QufPxIw_QIuwQG6OizVgdm0,784
|
|
180
180
|
digitalhub/entities/trigger/scheduler/status.py,sha256=uSyUnryssv70w-6k6F2qmrnd-OtuUwHarexjN7OconA,309
|
|
181
181
|
digitalhub/entities/workflow/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
182
|
-
digitalhub/entities/workflow/crud.py,sha256=
|
|
182
|
+
digitalhub/entities/workflow/crud.py,sha256=pZ5_2bwi_868ez7hrblTTRJ-7rC-8uHzGPwGvFuZ-oQ,7472
|
|
183
183
|
digitalhub/entities/workflow/_base/__init__.py,sha256=IRY2i9U97wptE3OcC_NO-EBmcAH6-Q36gMCspKetQ0k,107
|
|
184
184
|
digitalhub/entities/workflow/_base/builder.py,sha256=G0IyxVzHa_640vZiljTcCKF8hmfBQfrQsOj8QInU2Ok,2143
|
|
185
185
|
digitalhub/entities/workflow/_base/entity.py,sha256=WAurCCWNUehHtzmMb651sNSpooeTt8_53YjK9pYK9eI,2425
|
|
@@ -253,8 +253,8 @@ digitalhub/utils/logger.py,sha256=hH3gGE35L8jRxrg8EPXGZZAK1OA5-CvWnayuBZzteBM,54
|
|
|
253
253
|
digitalhub/utils/store_utils.py,sha256=Nuj5BzcAll-qIIgAgvp00S3yfV50NyWdTZEabJAqxDE,1013
|
|
254
254
|
digitalhub/utils/types.py,sha256=orCxY43zXMJfKZsOj6FUR85u9wRBPJ0wdkzrBHTnVW8,217
|
|
255
255
|
digitalhub/utils/uri_utils.py,sha256=Go787CxAOo2MMjFIEt8XssomtyV8vTdIrpyjSQK3gAM,4408
|
|
256
|
-
digitalhub-0.14.
|
|
257
|
-
digitalhub-0.14.
|
|
258
|
-
digitalhub-0.14.
|
|
259
|
-
digitalhub-0.14.
|
|
260
|
-
digitalhub-0.14.
|
|
256
|
+
digitalhub-0.14.2.dist-info/METADATA,sha256=QgydhVI9VRHdV-uuO9RQhtPoYBuf5jN-Z9EJXfdpQYA,18127
|
|
257
|
+
digitalhub-0.14.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
258
|
+
digitalhub-0.14.2.dist-info/licenses/AUTHORS,sha256=iDleK_2EAMmh0o8Te_E9mdXQCP4rBfFr9dW9d0-pCno,301
|
|
259
|
+
digitalhub-0.14.2.dist-info/licenses/LICENSE,sha256=z3xQCHfGmTnigfoUe3uidW_GUSVeFBdos30w9VNTRec,11361
|
|
260
|
+
digitalhub-0.14.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|