digitalhub 0.11.0b7__py3-none-any.whl → 0.13.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 +4 -1
- digitalhub/context/api.py +9 -5
- digitalhub/context/builder.py +7 -5
- digitalhub/context/context.py +13 -1
- digitalhub/entities/__init__.py +3 -0
- digitalhub/entities/_base/__init__.py +3 -0
- digitalhub/entities/_base/_base/__init__.py +3 -0
- digitalhub/entities/_base/_base/entity.py +4 -0
- digitalhub/entities/_base/context/__init__.py +3 -0
- digitalhub/entities/_base/context/entity.py +4 -0
- digitalhub/entities/_base/entity/__init__.py +3 -0
- digitalhub/entities/_base/entity/_constructors/__init__.py +3 -0
- digitalhub/entities/_base/entity/_constructors/metadata.py +4 -0
- digitalhub/entities/_base/entity/_constructors/name.py +4 -0
- digitalhub/entities/_base/entity/_constructors/spec.py +4 -0
- digitalhub/entities/_base/entity/_constructors/status.py +4 -0
- digitalhub/entities/_base/entity/_constructors/uuid.py +4 -0
- digitalhub/entities/_base/entity/builder.py +4 -0
- digitalhub/entities/_base/entity/entity.py +4 -0
- digitalhub/entities/_base/entity/metadata.py +4 -0
- digitalhub/entities/_base/entity/spec.py +4 -0
- digitalhub/entities/_base/entity/status.py +4 -0
- digitalhub/entities/_base/executable/__init__.py +3 -0
- digitalhub/entities/_base/executable/entity.py +109 -57
- digitalhub/entities/_base/material/__init__.py +3 -0
- digitalhub/entities/_base/material/entity.py +15 -18
- digitalhub/entities/_base/material/spec.py +4 -0
- digitalhub/entities/_base/material/status.py +4 -0
- digitalhub/entities/_base/material/utils.py +5 -1
- digitalhub/entities/_base/runtime_entity/__init__.py +3 -0
- digitalhub/entities/_base/runtime_entity/builder.py +4 -0
- digitalhub/entities/_base/unversioned/__init__.py +3 -0
- digitalhub/entities/_base/unversioned/builder.py +4 -0
- digitalhub/entities/_base/unversioned/entity.py +4 -0
- digitalhub/entities/_base/versioned/__init__.py +3 -0
- digitalhub/entities/_base/versioned/builder.py +4 -0
- digitalhub/entities/_base/versioned/entity.py +4 -0
- digitalhub/entities/_commons/__init__.py +3 -0
- digitalhub/entities/_commons/enums.py +4 -0
- digitalhub/entities/_commons/metrics.py +68 -30
- digitalhub/entities/_commons/utils.py +40 -9
- digitalhub/entities/_processors/__init__.py +3 -0
- digitalhub/entities/_processors/base.py +154 -79
- digitalhub/entities/_processors/context.py +370 -215
- digitalhub/entities/_processors/utils.py +78 -30
- digitalhub/entities/artifact/__init__.py +3 -0
- digitalhub/entities/artifact/_base/__init__.py +3 -0
- digitalhub/entities/artifact/_base/builder.py +4 -0
- digitalhub/entities/artifact/_base/entity.py +4 -0
- digitalhub/entities/artifact/_base/spec.py +4 -0
- digitalhub/entities/artifact/_base/status.py +4 -0
- digitalhub/entities/artifact/artifact/__init__.py +3 -0
- digitalhub/entities/artifact/artifact/builder.py +4 -0
- digitalhub/entities/artifact/artifact/entity.py +4 -0
- digitalhub/entities/artifact/artifact/spec.py +4 -0
- digitalhub/entities/artifact/artifact/status.py +4 -0
- digitalhub/entities/artifact/crud.py +8 -0
- digitalhub/entities/artifact/utils.py +32 -13
- digitalhub/entities/builders.py +4 -0
- digitalhub/entities/dataitem/__init__.py +3 -0
- digitalhub/entities/dataitem/_base/__init__.py +3 -0
- digitalhub/entities/dataitem/_base/builder.py +4 -0
- digitalhub/entities/dataitem/_base/entity.py +4 -0
- digitalhub/entities/dataitem/_base/spec.py +4 -0
- digitalhub/entities/dataitem/_base/status.py +4 -0
- digitalhub/entities/dataitem/crud.py +18 -2
- digitalhub/entities/dataitem/dataitem/__init__.py +3 -0
- digitalhub/entities/dataitem/dataitem/builder.py +4 -0
- digitalhub/entities/dataitem/dataitem/entity.py +4 -0
- digitalhub/entities/dataitem/dataitem/spec.py +4 -0
- digitalhub/entities/dataitem/dataitem/status.py +4 -0
- digitalhub/entities/dataitem/iceberg/__init__.py +3 -0
- digitalhub/entities/dataitem/iceberg/builder.py +4 -0
- digitalhub/entities/dataitem/iceberg/entity.py +4 -0
- digitalhub/entities/dataitem/iceberg/spec.py +4 -0
- digitalhub/entities/dataitem/iceberg/status.py +4 -0
- digitalhub/entities/dataitem/table/__init__.py +3 -0
- digitalhub/entities/dataitem/table/builder.py +4 -0
- digitalhub/entities/dataitem/table/entity.py +7 -3
- digitalhub/entities/dataitem/table/models.py +4 -0
- digitalhub/entities/dataitem/table/spec.py +4 -0
- digitalhub/entities/dataitem/table/status.py +4 -0
- digitalhub/entities/dataitem/table/utils.py +4 -0
- digitalhub/entities/dataitem/utils.py +88 -35
- digitalhub/entities/function/__init__.py +3 -0
- digitalhub/entities/function/_base/__init__.py +3 -0
- digitalhub/entities/function/_base/builder.py +4 -0
- digitalhub/entities/function/_base/entity.py +4 -0
- digitalhub/entities/function/_base/spec.py +4 -0
- digitalhub/entities/function/_base/status.py +4 -0
- digitalhub/entities/function/crud.py +4 -0
- digitalhub/entities/model/__init__.py +3 -0
- digitalhub/entities/model/_base/__init__.py +3 -0
- digitalhub/entities/model/_base/builder.py +4 -0
- digitalhub/entities/model/_base/entity.py +4 -0
- digitalhub/entities/model/_base/spec.py +4 -0
- digitalhub/entities/model/_base/status.py +4 -0
- digitalhub/entities/model/crud.py +8 -0
- digitalhub/entities/model/huggingface/__init__.py +3 -0
- digitalhub/entities/model/huggingface/builder.py +4 -0
- digitalhub/entities/model/huggingface/entity.py +4 -0
- digitalhub/entities/model/huggingface/spec.py +4 -0
- digitalhub/entities/model/huggingface/status.py +4 -0
- digitalhub/entities/model/mlflow/__init__.py +3 -0
- digitalhub/entities/model/mlflow/builder.py +4 -0
- digitalhub/entities/model/mlflow/entity.py +4 -0
- digitalhub/entities/model/mlflow/models.py +4 -0
- digitalhub/entities/model/mlflow/spec.py +4 -0
- digitalhub/entities/model/mlflow/status.py +4 -0
- digitalhub/entities/model/mlflow/utils.py +4 -0
- digitalhub/entities/model/model/__init__.py +3 -0
- digitalhub/entities/model/model/builder.py +4 -0
- digitalhub/entities/model/model/entity.py +4 -0
- digitalhub/entities/model/model/spec.py +4 -0
- digitalhub/entities/model/model/status.py +4 -0
- digitalhub/entities/model/sklearn/__init__.py +3 -0
- digitalhub/entities/model/sklearn/builder.py +4 -0
- digitalhub/entities/model/sklearn/entity.py +4 -0
- digitalhub/entities/model/sklearn/spec.py +4 -0
- digitalhub/entities/model/sklearn/status.py +4 -0
- digitalhub/entities/model/utils.py +32 -13
- digitalhub/entities/project/__init__.py +3 -0
- digitalhub/entities/project/_base/__init__.py +3 -0
- digitalhub/entities/project/_base/builder.py +4 -0
- digitalhub/entities/project/_base/entity.py +4 -2
- digitalhub/entities/project/_base/models.py +4 -0
- digitalhub/entities/project/_base/spec.py +4 -0
- digitalhub/entities/project/_base/status.py +4 -0
- digitalhub/entities/project/crud.py +4 -0
- digitalhub/entities/project/utils.py +4 -0
- digitalhub/entities/run/__init__.py +3 -0
- digitalhub/entities/run/_base/__init__.py +3 -0
- digitalhub/entities/run/_base/builder.py +4 -0
- digitalhub/entities/run/_base/entity.py +6 -2
- digitalhub/entities/run/_base/spec.py +4 -0
- digitalhub/entities/run/_base/status.py +4 -0
- digitalhub/entities/run/crud.py +4 -0
- digitalhub/entities/secret/__init__.py +3 -0
- digitalhub/entities/secret/_base/__init__.py +3 -0
- digitalhub/entities/secret/_base/builder.py +4 -0
- digitalhub/entities/secret/_base/entity.py +4 -0
- digitalhub/entities/secret/_base/spec.py +4 -0
- digitalhub/entities/secret/_base/status.py +4 -0
- digitalhub/entities/secret/crud.py +4 -0
- digitalhub/entities/task/__init__.py +3 -0
- digitalhub/entities/task/_base/__init__.py +3 -0
- digitalhub/entities/task/_base/builder.py +4 -0
- digitalhub/entities/task/_base/entity.py +4 -0
- digitalhub/entities/task/_base/models.py +16 -3
- digitalhub/entities/task/_base/spec.py +4 -0
- digitalhub/entities/task/_base/status.py +4 -0
- digitalhub/entities/task/_base/utils.py +4 -0
- digitalhub/entities/task/crud.py +4 -0
- digitalhub/entities/trigger/__init__.py +3 -0
- digitalhub/entities/trigger/_base/__init__.py +3 -0
- digitalhub/entities/trigger/_base/builder.py +4 -0
- digitalhub/entities/trigger/_base/entity.py +15 -0
- digitalhub/entities/trigger/_base/spec.py +4 -0
- digitalhub/entities/trigger/_base/status.py +4 -0
- digitalhub/entities/trigger/crud.py +4 -0
- digitalhub/entities/trigger/lifecycle/__init__.py +3 -0
- digitalhub/entities/trigger/lifecycle/builder.py +4 -0
- digitalhub/entities/trigger/lifecycle/entity.py +4 -0
- digitalhub/entities/trigger/lifecycle/spec.py +4 -0
- digitalhub/entities/trigger/lifecycle/status.py +4 -0
- digitalhub/entities/trigger/scheduler/__init__.py +3 -0
- digitalhub/entities/trigger/scheduler/builder.py +4 -0
- digitalhub/entities/trigger/scheduler/entity.py +4 -0
- digitalhub/entities/trigger/scheduler/spec.py +4 -0
- digitalhub/entities/trigger/scheduler/status.py +4 -0
- digitalhub/entities/workflow/__init__.py +3 -0
- digitalhub/entities/workflow/_base/__init__.py +3 -0
- digitalhub/entities/workflow/_base/builder.py +4 -0
- digitalhub/entities/workflow/_base/entity.py +4 -0
- digitalhub/entities/workflow/_base/spec.py +4 -0
- digitalhub/entities/workflow/_base/status.py +4 -0
- digitalhub/entities/workflow/crud.py +4 -0
- digitalhub/factory/__init__.py +3 -0
- digitalhub/factory/factory.py +29 -3
- digitalhub/factory/utils.py +15 -3
- digitalhub/runtimes/__init__.py +3 -0
- digitalhub/runtimes/_base.py +5 -1
- digitalhub/runtimes/builder.py +22 -1
- digitalhub/runtimes/enums.py +4 -0
- digitalhub/stores/__init__.py +3 -0
- digitalhub/stores/client/__init__.py +15 -0
- digitalhub/stores/client/_base/__init__.py +3 -0
- digitalhub/stores/client/_base/api_builder.py +18 -0
- digitalhub/stores/client/_base/client.py +97 -0
- digitalhub/stores/client/_base/key_builder.py +32 -0
- digitalhub/stores/client/_base/params_builder.py +18 -0
- digitalhub/stores/client/api.py +14 -5
- digitalhub/stores/client/builder.py +7 -1
- digitalhub/stores/client/dhcore/__init__.py +3 -0
- digitalhub/stores/client/dhcore/api_builder.py +21 -0
- digitalhub/stores/client/dhcore/client.py +329 -70
- digitalhub/stores/client/dhcore/configurator.py +489 -193
- digitalhub/stores/client/dhcore/enums.py +7 -0
- digitalhub/stores/client/dhcore/error_parser.py +39 -1
- digitalhub/stores/client/dhcore/key_builder.py +4 -0
- digitalhub/stores/client/dhcore/models.py +4 -0
- digitalhub/stores/client/dhcore/params_builder.py +117 -17
- digitalhub/stores/client/dhcore/utils.py +44 -22
- digitalhub/stores/client/local/__init__.py +3 -0
- digitalhub/stores/client/local/api_builder.py +21 -0
- digitalhub/stores/client/local/client.py +10 -8
- digitalhub/stores/client/local/enums.py +4 -0
- digitalhub/stores/client/local/key_builder.py +4 -0
- digitalhub/stores/client/local/params_builder.py +4 -0
- digitalhub/stores/credentials/__init__.py +3 -0
- digitalhub/stores/credentials/api.py +35 -0
- digitalhub/stores/credentials/configurator.py +210 -0
- digitalhub/stores/credentials/enums.py +68 -0
- digitalhub/stores/credentials/handler.py +176 -0
- digitalhub/stores/credentials/ini_module.py +164 -0
- digitalhub/stores/credentials/store.py +81 -0
- digitalhub/stores/data/__init__.py +3 -0
- digitalhub/stores/data/_base/__init__.py +3 -0
- digitalhub/stores/data/_base/store.py +31 -9
- digitalhub/stores/data/api.py +53 -9
- digitalhub/stores/data/builder.py +94 -41
- digitalhub/stores/data/enums.py +4 -0
- digitalhub/stores/data/local/__init__.py +3 -0
- digitalhub/stores/data/local/store.py +8 -7
- digitalhub/stores/data/remote/__init__.py +3 -0
- digitalhub/stores/data/remote/store.py +8 -7
- digitalhub/stores/data/s3/__init__.py +3 -0
- digitalhub/stores/data/s3/configurator.py +69 -80
- digitalhub/stores/data/s3/store.py +73 -81
- digitalhub/stores/data/s3/utils.py +14 -10
- digitalhub/stores/data/sql/__init__.py +3 -0
- digitalhub/stores/data/sql/configurator.py +80 -73
- digitalhub/stores/data/sql/store.py +195 -102
- digitalhub/stores/readers/__init__.py +3 -0
- digitalhub/stores/readers/data/__init__.py +3 -0
- digitalhub/stores/readers/data/_base/__init__.py +3 -0
- digitalhub/stores/readers/data/_base/builder.py +4 -0
- digitalhub/stores/readers/data/_base/reader.py +4 -0
- digitalhub/stores/readers/data/api.py +4 -0
- digitalhub/stores/readers/data/factory.py +4 -0
- digitalhub/stores/readers/data/pandas/__init__.py +3 -0
- digitalhub/stores/readers/data/pandas/builder.py +4 -0
- digitalhub/stores/readers/data/pandas/reader.py +4 -0
- digitalhub/stores/readers/query/__init__.py +3 -0
- digitalhub/utils/__init__.py +3 -0
- digitalhub/utils/enums.py +4 -0
- digitalhub/utils/exceptions.py +10 -0
- digitalhub/utils/file_utils.py +57 -30
- digitalhub/utils/generic_utils.py +45 -33
- digitalhub/utils/git_utils.py +28 -14
- digitalhub/utils/io_utils.py +23 -18
- digitalhub/utils/logger.py +4 -0
- digitalhub/utils/types.py +4 -0
- digitalhub/utils/uri_utils.py +35 -31
- digitalhub-0.13.0.dist-info/METADATA +301 -0
- digitalhub-0.13.0.dist-info/RECORD +259 -0
- digitalhub-0.13.0.dist-info/licenses/AUTHORS +5 -0
- digitalhub-0.13.0.dist-info/licenses/LICENSE +201 -0
- digitalhub/entities/_commons/types.py +0 -5
- digitalhub/stores/configurator/__init__.py +0 -0
- digitalhub/stores/configurator/api.py +0 -31
- digitalhub/stores/configurator/configurator.py +0 -198
- digitalhub/stores/configurator/credentials_store.py +0 -65
- digitalhub/stores/configurator/enums.py +0 -21
- digitalhub/stores/configurator/ini_module.py +0 -128
- digitalhub/stores/data/s3/enums.py +0 -16
- digitalhub/stores/data/sql/enums.py +0 -16
- digitalhub/stores/data/utils.py +0 -34
- digitalhub-0.11.0b7.dist-info/METADATA +0 -259
- digitalhub-0.11.0b7.dist-info/RECORD +0 -261
- digitalhub-0.11.0b7.dist-info/licenses/LICENSE.txt +0 -216
- {digitalhub-0.11.0b7.dist-info → digitalhub-0.13.0.dist-info}/WHEEL +0 -0
digitalhub/utils/io_utils.py
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: © 2025 DSLab - Fondazione Bruno Kessler
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
|
|
1
5
|
from __future__ import annotations
|
|
2
6
|
|
|
3
7
|
from pathlib import Path
|
|
@@ -11,14 +15,14 @@ import yaml
|
|
|
11
15
|
|
|
12
16
|
def write_yaml(filepath: str | Path, obj: dict | list[dict]) -> None:
|
|
13
17
|
"""
|
|
14
|
-
Write a dict or a list of
|
|
18
|
+
Write a dict or a list of dicts to a YAML file.
|
|
15
19
|
|
|
16
20
|
Parameters
|
|
17
21
|
----------
|
|
18
|
-
filepath : str
|
|
19
|
-
The
|
|
20
|
-
obj : dict
|
|
21
|
-
The dict to write.
|
|
22
|
+
filepath : str or Path
|
|
23
|
+
The YAML file path to write.
|
|
24
|
+
obj : dict or list of dict
|
|
25
|
+
The dict or list of dicts to write.
|
|
22
26
|
|
|
23
27
|
Returns
|
|
24
28
|
-------
|
|
@@ -57,7 +61,7 @@ def write_text(filepath: Path, text: str) -> None:
|
|
|
57
61
|
|
|
58
62
|
class NoDatesSafeLoader(yaml.SafeLoader):
|
|
59
63
|
"""
|
|
60
|
-
Loader implementation to exclude implicit resolvers.
|
|
64
|
+
Loader implementation to exclude implicit resolvers for YAML timestamps.
|
|
61
65
|
|
|
62
66
|
Taken from https://stackoverflow.com/a/37958106
|
|
63
67
|
"""
|
|
@@ -65,16 +69,17 @@ class NoDatesSafeLoader(yaml.SafeLoader):
|
|
|
65
69
|
@classmethod
|
|
66
70
|
def remove_implicit_resolver(cls, tag_to_remove: str) -> None:
|
|
67
71
|
"""
|
|
68
|
-
Remove implicit resolvers for a particular tag
|
|
72
|
+
Remove implicit resolvers for a particular tag.
|
|
73
|
+
|
|
69
74
|
Takes care not to modify resolvers in super classes.
|
|
70
75
|
We want to load datetimes as strings, not dates, because we
|
|
71
|
-
go on to
|
|
72
|
-
of
|
|
76
|
+
go on to serialize as JSON which doesn't have the advanced types
|
|
77
|
+
of YAML, and leads to incompatibilities down the track.
|
|
73
78
|
|
|
74
79
|
Parameters
|
|
75
80
|
----------
|
|
76
81
|
tag_to_remove : str
|
|
77
|
-
The tag to remove
|
|
82
|
+
The tag to remove.
|
|
78
83
|
|
|
79
84
|
Returns
|
|
80
85
|
-------
|
|
@@ -94,17 +99,17 @@ NoDatesSafeLoader.remove_implicit_resolver("tag:yaml.org,2002:timestamp")
|
|
|
94
99
|
|
|
95
100
|
def read_yaml(filepath: str | Path) -> dict | list[dict]:
|
|
96
101
|
"""
|
|
97
|
-
Read a
|
|
102
|
+
Read a YAML file and return its content as a dict or a list of dicts.
|
|
98
103
|
|
|
99
104
|
Parameters
|
|
100
105
|
----------
|
|
101
|
-
filepath : str
|
|
102
|
-
The
|
|
106
|
+
filepath : str or Path
|
|
107
|
+
The YAML file path to read.
|
|
103
108
|
|
|
104
109
|
Returns
|
|
105
110
|
-------
|
|
106
|
-
dict
|
|
107
|
-
The
|
|
111
|
+
dict or list of dict
|
|
112
|
+
The YAML file content.
|
|
108
113
|
"""
|
|
109
114
|
try:
|
|
110
115
|
with open(filepath, "r", encoding="utf-8") as in_file:
|
|
@@ -119,16 +124,16 @@ def read_yaml(filepath: str | Path) -> dict | list[dict]:
|
|
|
119
124
|
|
|
120
125
|
def read_text(filepath: str | Path) -> str:
|
|
121
126
|
"""
|
|
122
|
-
Read a file and return
|
|
127
|
+
Read a file and return its text content.
|
|
123
128
|
|
|
124
129
|
Parameters
|
|
125
130
|
----------
|
|
126
|
-
filepath : str
|
|
131
|
+
filepath : str or Path
|
|
127
132
|
The file path to read.
|
|
128
133
|
|
|
129
134
|
Returns
|
|
130
135
|
-------
|
|
131
136
|
str
|
|
132
|
-
The file content.
|
|
137
|
+
The file content as a string.
|
|
133
138
|
"""
|
|
134
139
|
return Path(filepath).read_text(encoding="utf-8")
|
digitalhub/utils/logger.py
CHANGED
digitalhub/utils/types.py
CHANGED
digitalhub/utils/uri_utils.py
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: © 2025 DSLab - Fondazione Bruno Kessler
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
|
|
1
5
|
from __future__ import annotations
|
|
2
6
|
|
|
3
7
|
import re
|
|
@@ -9,7 +13,7 @@ from digitalhub.utils.generic_utils import list_enum
|
|
|
9
13
|
|
|
10
14
|
class S3Schemes(Enum):
|
|
11
15
|
"""
|
|
12
|
-
S3 schemes.
|
|
16
|
+
S3 URI schemes.
|
|
13
17
|
"""
|
|
14
18
|
|
|
15
19
|
S3 = "s3"
|
|
@@ -20,7 +24,7 @@ class S3Schemes(Enum):
|
|
|
20
24
|
|
|
21
25
|
class LocalSchemes(Enum):
|
|
22
26
|
"""
|
|
23
|
-
Local schemes.
|
|
27
|
+
Local URI schemes.
|
|
24
28
|
"""
|
|
25
29
|
|
|
26
30
|
LOCAL = ""
|
|
@@ -28,7 +32,7 @@ class LocalSchemes(Enum):
|
|
|
28
32
|
|
|
29
33
|
class InvalidLocalSchemes(Enum):
|
|
30
34
|
"""
|
|
31
|
-
|
|
35
|
+
Invalid local URI schemes.
|
|
32
36
|
"""
|
|
33
37
|
|
|
34
38
|
FILE = "file"
|
|
@@ -37,7 +41,7 @@ class InvalidLocalSchemes(Enum):
|
|
|
37
41
|
|
|
38
42
|
class RemoteSchemes(Enum):
|
|
39
43
|
"""
|
|
40
|
-
Remote schemes.
|
|
44
|
+
Remote URI schemes.
|
|
41
45
|
"""
|
|
42
46
|
|
|
43
47
|
HTTP = "http"
|
|
@@ -48,7 +52,7 @@ class RemoteSchemes(Enum):
|
|
|
48
52
|
|
|
49
53
|
class SqlSchemes(Enum):
|
|
50
54
|
"""
|
|
51
|
-
|
|
55
|
+
SQL URI schemes.
|
|
52
56
|
"""
|
|
53
57
|
|
|
54
58
|
SQL = "sql"
|
|
@@ -57,7 +61,7 @@ class SqlSchemes(Enum):
|
|
|
57
61
|
|
|
58
62
|
class GitSchemes(Enum):
|
|
59
63
|
"""
|
|
60
|
-
Git schemes.
|
|
64
|
+
Git URI schemes.
|
|
61
65
|
"""
|
|
62
66
|
|
|
63
67
|
GIT = "git"
|
|
@@ -67,7 +71,7 @@ class GitSchemes(Enum):
|
|
|
67
71
|
|
|
68
72
|
class SchemeCategory(Enum):
|
|
69
73
|
"""
|
|
70
|
-
|
|
74
|
+
URI scheme categories.
|
|
71
75
|
"""
|
|
72
76
|
|
|
73
77
|
S3 = "s3"
|
|
@@ -79,17 +83,17 @@ class SchemeCategory(Enum):
|
|
|
79
83
|
|
|
80
84
|
def map_uri_scheme(uri: str) -> str:
|
|
81
85
|
"""
|
|
82
|
-
Map
|
|
86
|
+
Map a URI scheme to a common scheme category.
|
|
83
87
|
|
|
84
88
|
Parameters
|
|
85
89
|
----------
|
|
86
90
|
uri : str
|
|
87
|
-
URI.
|
|
91
|
+
URI string.
|
|
88
92
|
|
|
89
93
|
Returns
|
|
90
94
|
-------
|
|
91
95
|
str
|
|
92
|
-
Mapped scheme
|
|
96
|
+
Mapped scheme category (e.g., 'local', 'remote', 's3', 'sql', 'git').
|
|
93
97
|
|
|
94
98
|
Raises
|
|
95
99
|
------
|
|
@@ -118,118 +122,118 @@ def map_uri_scheme(uri: str) -> str:
|
|
|
118
122
|
|
|
119
123
|
def has_local_scheme(uri: str) -> bool:
|
|
120
124
|
"""
|
|
121
|
-
Check if
|
|
125
|
+
Check if a URI has a local scheme.
|
|
122
126
|
|
|
123
127
|
Parameters
|
|
124
128
|
----------
|
|
125
129
|
uri : str
|
|
126
|
-
|
|
130
|
+
URI string.
|
|
127
131
|
|
|
128
132
|
Returns
|
|
129
133
|
-------
|
|
130
134
|
bool
|
|
131
|
-
True if
|
|
135
|
+
True if the URI is local, False otherwise.
|
|
132
136
|
"""
|
|
133
137
|
return map_uri_scheme(uri) == SchemeCategory.LOCAL.value
|
|
134
138
|
|
|
135
139
|
|
|
136
140
|
def has_remote_scheme(uri: str) -> bool:
|
|
137
141
|
"""
|
|
138
|
-
Check if
|
|
142
|
+
Check if a URI has a remote scheme.
|
|
139
143
|
|
|
140
144
|
Parameters
|
|
141
145
|
----------
|
|
142
146
|
uri : str
|
|
143
|
-
|
|
147
|
+
URI string.
|
|
144
148
|
|
|
145
149
|
Returns
|
|
146
150
|
-------
|
|
147
151
|
bool
|
|
148
|
-
True if
|
|
152
|
+
True if the URI is remote, False otherwise.
|
|
149
153
|
"""
|
|
150
154
|
return map_uri_scheme(uri) == SchemeCategory.REMOTE.value
|
|
151
155
|
|
|
152
156
|
|
|
153
157
|
def has_s3_scheme(uri: str) -> bool:
|
|
154
158
|
"""
|
|
155
|
-
Check if
|
|
159
|
+
Check if a URI has an S3 scheme.
|
|
156
160
|
|
|
157
161
|
Parameters
|
|
158
162
|
----------
|
|
159
163
|
uri : str
|
|
160
|
-
|
|
164
|
+
URI string.
|
|
161
165
|
|
|
162
166
|
Returns
|
|
163
167
|
-------
|
|
164
168
|
bool
|
|
165
|
-
True if
|
|
169
|
+
True if the URI is S3, False otherwise.
|
|
166
170
|
"""
|
|
167
171
|
return map_uri_scheme(uri) == SchemeCategory.S3.value
|
|
168
172
|
|
|
169
173
|
|
|
170
174
|
def has_sql_scheme(uri: str) -> bool:
|
|
171
175
|
"""
|
|
172
|
-
Check if
|
|
176
|
+
Check if a URI has an SQL scheme.
|
|
173
177
|
|
|
174
178
|
Parameters
|
|
175
179
|
----------
|
|
176
180
|
uri : str
|
|
177
|
-
|
|
181
|
+
URI string.
|
|
178
182
|
|
|
179
183
|
Returns
|
|
180
184
|
-------
|
|
181
185
|
bool
|
|
182
|
-
True if
|
|
186
|
+
True if the URI is SQL, False otherwise.
|
|
183
187
|
"""
|
|
184
188
|
return map_uri_scheme(uri) == SchemeCategory.SQL.value
|
|
185
189
|
|
|
186
190
|
|
|
187
191
|
def has_git_scheme(uri: str) -> bool:
|
|
188
192
|
"""
|
|
189
|
-
Check if
|
|
193
|
+
Check if a URI has a git scheme.
|
|
190
194
|
|
|
191
195
|
Parameters
|
|
192
196
|
----------
|
|
193
197
|
uri : str
|
|
194
|
-
|
|
198
|
+
URI string.
|
|
195
199
|
|
|
196
200
|
Returns
|
|
197
201
|
-------
|
|
198
202
|
bool
|
|
199
|
-
True if
|
|
203
|
+
True if the URI is git, False otherwise.
|
|
200
204
|
"""
|
|
201
205
|
return map_uri_scheme(uri) == SchemeCategory.GIT.value
|
|
202
206
|
|
|
203
207
|
|
|
204
208
|
def has_zip_scheme(uri: str) -> bool:
|
|
205
209
|
"""
|
|
206
|
-
Check if
|
|
210
|
+
Check if a URI has a zip scheme.
|
|
207
211
|
|
|
208
212
|
Parameters
|
|
209
213
|
----------
|
|
210
214
|
uri : str
|
|
211
|
-
|
|
215
|
+
URI string.
|
|
212
216
|
|
|
213
217
|
Returns
|
|
214
218
|
-------
|
|
215
219
|
bool
|
|
216
|
-
True if
|
|
220
|
+
True if the URI is zip, False otherwise.
|
|
217
221
|
"""
|
|
218
222
|
return uri.startswith("zip+")
|
|
219
223
|
|
|
220
224
|
|
|
221
225
|
def get_filename_from_uri(uri: str) -> str:
|
|
222
226
|
"""
|
|
223
|
-
Get filename from
|
|
227
|
+
Get the filename from a URI.
|
|
224
228
|
|
|
225
229
|
Parameters
|
|
226
230
|
----------
|
|
227
231
|
uri : str
|
|
228
|
-
|
|
232
|
+
URI string.
|
|
229
233
|
|
|
230
234
|
Returns
|
|
231
235
|
-------
|
|
232
236
|
str
|
|
233
|
-
Filename.
|
|
237
|
+
Filename extracted from the URI.
|
|
234
238
|
"""
|
|
235
239
|
return unquote(urlparse(uri).path).split("/")[-1]
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: digitalhub
|
|
3
|
+
Version: 0.13.0
|
|
4
|
+
Summary: Python SDK for Digitalhub
|
|
5
|
+
Project-URL: Homepage, https://github.com/scc-digitalhub/digitalhub-sdk
|
|
6
|
+
Author-email: Fondazione Bruno Kessler <digitalhub@fbk.eu>, Matteo Martini <mmartini@fbk.eu>
|
|
7
|
+
License: Apache License
|
|
8
|
+
Version 2.0, January 2004
|
|
9
|
+
http://www.apache.org/licenses/
|
|
10
|
+
|
|
11
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
12
|
+
|
|
13
|
+
1. Definitions.
|
|
14
|
+
|
|
15
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
16
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
17
|
+
|
|
18
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
19
|
+
the copyright owner that is granting the License.
|
|
20
|
+
|
|
21
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
22
|
+
other entities that control, are controlled by, or are under common
|
|
23
|
+
control with that entity. For the purposes of this definition,
|
|
24
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
25
|
+
direction or management of such entity, whether by contract or
|
|
26
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
27
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
28
|
+
|
|
29
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
30
|
+
exercising permissions granted by this License.
|
|
31
|
+
|
|
32
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
33
|
+
including but not limited to software source code, documentation
|
|
34
|
+
source, and configuration files.
|
|
35
|
+
|
|
36
|
+
"Object" form shall mean any form resulting from mechanical
|
|
37
|
+
transformation or translation of a Source form, including but
|
|
38
|
+
not limited to compiled object code, generated documentation,
|
|
39
|
+
and conversions to other media types.
|
|
40
|
+
|
|
41
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
42
|
+
Object form, made available under the License, as indicated by a
|
|
43
|
+
copyright notice that is included in or attached to the work
|
|
44
|
+
(an example is provided in the Appendix below).
|
|
45
|
+
|
|
46
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
47
|
+
form, that is based on (or derived from) the Work and for which the
|
|
48
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
49
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
50
|
+
of this License, Derivative Works shall not include works that remain
|
|
51
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
52
|
+
the Work and Derivative Works thereof.
|
|
53
|
+
|
|
54
|
+
"Contribution" shall mean any work of authorship, including
|
|
55
|
+
the original version of the Work and any modifications or additions
|
|
56
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
57
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
58
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
59
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
60
|
+
means any form of electronic, verbal, or written communication sent
|
|
61
|
+
to the Licensor or its representatives, including but not limited to
|
|
62
|
+
communication on electronic mailing lists, source code control systems,
|
|
63
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
64
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
65
|
+
excluding communication that is conspicuously marked or otherwise
|
|
66
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
67
|
+
|
|
68
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
69
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
70
|
+
subsequently incorporated within the Work.
|
|
71
|
+
|
|
72
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
73
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
74
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
75
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
76
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
77
|
+
Work and such Derivative Works in Source or Object form.
|
|
78
|
+
|
|
79
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
80
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
81
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
82
|
+
(except as stated in this section) patent license to make, have made,
|
|
83
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
84
|
+
where such license applies only to those patent claims licensable
|
|
85
|
+
by such Contributor that are necessarily infringed by their
|
|
86
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
87
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
88
|
+
institute patent litigation against any entity (including a
|
|
89
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
90
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
91
|
+
or contributory patent infringement, then any patent licenses
|
|
92
|
+
granted to You under this License for that Work shall terminate
|
|
93
|
+
as of the date such litigation is filed.
|
|
94
|
+
|
|
95
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
96
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
97
|
+
modifications, and in Source or Object form, provided that You
|
|
98
|
+
meet the following conditions:
|
|
99
|
+
|
|
100
|
+
(a) You must give any other recipients of the Work or
|
|
101
|
+
Derivative Works a copy of this License; and
|
|
102
|
+
|
|
103
|
+
(b) You must cause any modified files to carry prominent notices
|
|
104
|
+
stating that You changed the files; and
|
|
105
|
+
|
|
106
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
107
|
+
that You distribute, all copyright, patent, trademark, and
|
|
108
|
+
attribution notices from the Source form of the Work,
|
|
109
|
+
excluding those notices that do not pertain to any part of
|
|
110
|
+
the Derivative Works; and
|
|
111
|
+
|
|
112
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
113
|
+
distribution, then any Derivative Works that You distribute must
|
|
114
|
+
include a readable copy of the attribution notices contained
|
|
115
|
+
within such NOTICE file, excluding those notices that do not
|
|
116
|
+
pertain to any part of the Derivative Works, in at least one
|
|
117
|
+
of the following places: within a NOTICE text file distributed
|
|
118
|
+
as part of the Derivative Works; within the Source form or
|
|
119
|
+
documentation, if provided along with the Derivative Works; or,
|
|
120
|
+
within a display generated by the Derivative Works, if and
|
|
121
|
+
wherever such third-party notices normally appear. The contents
|
|
122
|
+
of the NOTICE file are for informational purposes only and
|
|
123
|
+
do not modify the License. You may add Your own attribution
|
|
124
|
+
notices within Derivative Works that You distribute, alongside
|
|
125
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
126
|
+
that such additional attribution notices cannot be construed
|
|
127
|
+
as modifying the License.
|
|
128
|
+
|
|
129
|
+
You may add Your own copyright statement to Your modifications and
|
|
130
|
+
may provide additional or different license terms and conditions
|
|
131
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
132
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
133
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
134
|
+
the conditions stated in this License.
|
|
135
|
+
|
|
136
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
137
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
138
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
139
|
+
this License, without any additional terms or conditions.
|
|
140
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
141
|
+
the terms of any separate license agreement you may have executed
|
|
142
|
+
with Licensor regarding such Contributions.
|
|
143
|
+
|
|
144
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
145
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
146
|
+
except as required for reasonable and customary use in describing the
|
|
147
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
148
|
+
|
|
149
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
150
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
151
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
152
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
153
|
+
implied, including, without limitation, any warranties or conditions
|
|
154
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
155
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
156
|
+
appropriateness of using or redistributing the Work and assume any
|
|
157
|
+
risks associated with Your exercise of permissions under this License.
|
|
158
|
+
|
|
159
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
160
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
161
|
+
unless required by applicable law (such as deliberate and grossly
|
|
162
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
163
|
+
liable to You for damages, including any direct, indirect, special,
|
|
164
|
+
incidental, or consequential damages of any character arising as a
|
|
165
|
+
result of this License or out of the use or inability to use the
|
|
166
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
167
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
168
|
+
other commercial damages or losses), even if such Contributor
|
|
169
|
+
has been advised of the possibility of such damages.
|
|
170
|
+
|
|
171
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
172
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
173
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
174
|
+
or other liability obligations and/or rights consistent with this
|
|
175
|
+
License. However, in accepting such obligations, You may act only
|
|
176
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
177
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
178
|
+
defend, and hold each Contributor harmless for any liability
|
|
179
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
180
|
+
of your accepting any such warranty or additional liability.
|
|
181
|
+
|
|
182
|
+
END OF TERMS AND CONDITIONS
|
|
183
|
+
|
|
184
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
185
|
+
|
|
186
|
+
To apply the Apache License to your work, attach the following
|
|
187
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
188
|
+
replaced with your own identifying information. (Don't include
|
|
189
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
190
|
+
comment syntax for the file format. We also recommend that a
|
|
191
|
+
file or class name and description of purpose be included on the
|
|
192
|
+
same "printed page" as the copyright notice for easier
|
|
193
|
+
identification within third-party archives.
|
|
194
|
+
|
|
195
|
+
Copyright 2025 DSLab, Fondazione Bruno Kessler
|
|
196
|
+
|
|
197
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
198
|
+
you may not use this file except in compliance with the License.
|
|
199
|
+
You may obtain a copy of the License at
|
|
200
|
+
|
|
201
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
202
|
+
|
|
203
|
+
Unless required by applicable law or agreed to in writing, software
|
|
204
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
205
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
206
|
+
See the License for the specific language governing permissions and
|
|
207
|
+
limitations under the License.
|
|
208
|
+
License-File: AUTHORS
|
|
209
|
+
License-File: LICENSE
|
|
210
|
+
Keywords: data,dataops,kubernetes
|
|
211
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
212
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
213
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
214
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
215
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
216
|
+
Requires-Python: <3.13,>=3.9
|
|
217
|
+
Requires-Dist: boto3
|
|
218
|
+
Requires-Dist: gitpython>=3
|
|
219
|
+
Requires-Dist: numpy
|
|
220
|
+
Requires-Dist: psycopg2-binary
|
|
221
|
+
Requires-Dist: pyarrow
|
|
222
|
+
Requires-Dist: pydantic
|
|
223
|
+
Requires-Dist: python-slugify
|
|
224
|
+
Requires-Dist: pyyaml
|
|
225
|
+
Requires-Dist: requests
|
|
226
|
+
Requires-Dist: sqlalchemy
|
|
227
|
+
Provides-Extra: dev
|
|
228
|
+
Requires-Dist: bumpver; extra == 'dev'
|
|
229
|
+
Requires-Dist: jsonschema; extra == 'dev'
|
|
230
|
+
Requires-Dist: pytest; extra == 'dev'
|
|
231
|
+
Requires-Dist: pytest-cov; extra == 'dev'
|
|
232
|
+
Provides-Extra: full
|
|
233
|
+
Requires-Dist: mlflow; extra == 'full'
|
|
234
|
+
Requires-Dist: pandas; extra == 'full'
|
|
235
|
+
Provides-Extra: mlflow
|
|
236
|
+
Requires-Dist: mlflow; extra == 'mlflow'
|
|
237
|
+
Provides-Extra: pandas
|
|
238
|
+
Requires-Dist: pandas; extra == 'pandas'
|
|
239
|
+
Description-Content-Type: text/markdown
|
|
240
|
+
|
|
241
|
+
# DigitalHub SDK
|
|
242
|
+
|
|
243
|
+
[](https://github.com/scc-digitalhub/digitalhub-sdk/LICENSE) 
|
|
244
|
+

|
|
245
|
+
|
|
246
|
+
The Digitalhub library is a python tool for managing projects, entities and executions in Digitalhub. It exposes CRUD methods to create, read, update and delete entities, tools to execute functions or workflows, collect or store execution results and data.
|
|
247
|
+
|
|
248
|
+
Explore the full documentation at the [link](https://scc-digitalhub.github.io/sdk-docs/).
|
|
249
|
+
|
|
250
|
+
## Quick start
|
|
251
|
+
|
|
252
|
+
To install the Digitalhub, you can use pip:
|
|
253
|
+
|
|
254
|
+
```bash
|
|
255
|
+
pip install digitalhub
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
To be able to create and execute functions or workflows, you need to install the runtime you want to use. The Digitalhub SDK supports multiple runtimes, each with its own installation instructions:
|
|
259
|
+
|
|
260
|
+
- [Digitalhub SDK Runtime Python](https://github.com/scc-digitalhub/digitalhub-sdk-runtime-python)
|
|
261
|
+
- [Digitalhub SDK Runtime Dbt](https://github.com/scc-digitalhub/digitalhub-sdk-runtime-dbt)
|
|
262
|
+
- [Digitalhub SDK Runtime Container](https://github.com/scc-digitalhub/digitalhub-sdk-runtime-container)
|
|
263
|
+
- [Digitalhub SDK Runtime Kfp](https://github.com/scc-digitalhub/digitalhub-sdk-runtime-kfp)
|
|
264
|
+
- [Digitalhub SDK Runtime Modelserve](https://github.com/scc-digitalhub/digitalhub-sdk-runtime-modelserve)
|
|
265
|
+
|
|
266
|
+
## Development
|
|
267
|
+
|
|
268
|
+
See CONTRIBUTING for contribution instructions.
|
|
269
|
+
|
|
270
|
+
## Security Policy
|
|
271
|
+
|
|
272
|
+
The current release is the supported version. Security fixes are released together with all other fixes in each new release.
|
|
273
|
+
|
|
274
|
+
If you discover a security vulnerability in this project, please do not open a public issue.
|
|
275
|
+
|
|
276
|
+
Instead, report it privately by emailing us at digitalhub@fbk.eu. Include as much detail as possible to help us understand and address the issue quickly and responsibly.
|
|
277
|
+
|
|
278
|
+
## Contributing
|
|
279
|
+
|
|
280
|
+
To report a bug or request a feature, please first check the existing issues to avoid duplicates. If none exist, open a new issue with a clear title and a detailed description, including any steps to reproduce if it's a bug.
|
|
281
|
+
|
|
282
|
+
To contribute code, start by forking the repository. Clone your fork locally and create a new branch for your changes. Make sure your commits follow the [Conventional Commits v1.0](https://www.conventionalcommits.org/en/v1.0.0/) specification to keep history readable and consistent.
|
|
283
|
+
|
|
284
|
+
Once your changes are ready, push your branch to your fork and open a pull request against the main branch. Be sure to include a summary of what you changed and why. If your pull request addresses an issue, mention it in the description (e.g., “Closes #123”).
|
|
285
|
+
|
|
286
|
+
Please note that new contributors may be asked to sign a Contributor License Agreement (CLA) before their pull requests can be merged. This helps us ensure compliance with open source licensing standards.
|
|
287
|
+
|
|
288
|
+
We appreciate contributions and help in improving the project!
|
|
289
|
+
|
|
290
|
+
## Authors
|
|
291
|
+
|
|
292
|
+
This project is developed and maintained by **DSLab – Fondazione Bruno Kessler**, with contributions from the open source community. A complete list of contributors is available in the project’s commit history and pull requests.
|
|
293
|
+
|
|
294
|
+
For questions or inquiries, please contact: [digitalhub@fbk.eu](mailto:digitalhub@fbk.eu)
|
|
295
|
+
|
|
296
|
+
## Copyright and license
|
|
297
|
+
|
|
298
|
+
Copyright © 2025 DSLab – Fondazione Bruno Kessler and individual contributors.
|
|
299
|
+
|
|
300
|
+
This project is licensed under the Apache License, Version 2.0.
|
|
301
|
+
You may not use this file except in compliance with the License. Ownership of contributions remains with the original authors and is governed by the terms of the Apache 2.0 License, including the requirement to grant a license to the project.
|