digitalhub-runtime-python 0.8.0b0__tar.gz → 0.8.0b2__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.
- {digitalhub_runtime_python-0.8.0b0 → digitalhub_runtime_python-0.8.0b2}/PKG-INFO +2 -2
- {digitalhub_runtime_python-0.8.0b0 → digitalhub_runtime_python-0.8.0b2}/digitalhub_runtime_python/__init__.py +4 -3
- {digitalhub_runtime_python-0.8.0b0 → digitalhub_runtime_python-0.8.0b2}/digitalhub_runtime_python/entities/function/models.py +4 -4
- {digitalhub_runtime_python-0.8.0b0 → digitalhub_runtime_python-0.8.0b2}/digitalhub_runtime_python/entities/function/spec.py +2 -1
- {digitalhub_runtime_python-0.8.0b0 → digitalhub_runtime_python-0.8.0b2}/digitalhub_runtime_python/entities/function/status.py +1 -1
- {digitalhub_runtime_python-0.8.0b0 → digitalhub_runtime_python-0.8.0b2}/digitalhub_runtime_python/entities/run/spec.py +3 -3
- {digitalhub_runtime_python-0.8.0b0 → digitalhub_runtime_python-0.8.0b2}/digitalhub_runtime_python/entities/run/status.py +4 -3
- {digitalhub_runtime_python-0.8.0b0 → digitalhub_runtime_python-0.8.0b2}/digitalhub_runtime_python/entities/task/spec.py +1 -1
- {digitalhub_runtime_python-0.8.0b0 → digitalhub_runtime_python-0.8.0b2}/digitalhub_runtime_python/entities/task/status.py +1 -1
- {digitalhub_runtime_python-0.8.0b0 → digitalhub_runtime_python-0.8.0b2}/digitalhub_runtime_python/runtimes/kind_registry.py +1 -1
- {digitalhub_runtime_python-0.8.0b0 → digitalhub_runtime_python-0.8.0b2}/digitalhub_runtime_python/runtimes/runtime.py +5 -4
- {digitalhub_runtime_python-0.8.0b0 → digitalhub_runtime_python-0.8.0b2}/digitalhub_runtime_python/utils/configuration.py +4 -4
- {digitalhub_runtime_python-0.8.0b0 → digitalhub_runtime_python-0.8.0b2}/digitalhub_runtime_python/utils/inputs.py +10 -10
- {digitalhub_runtime_python-0.8.0b0 → digitalhub_runtime_python-0.8.0b2}/digitalhub_runtime_python/utils/nuclio_configuration.py +2 -1
- {digitalhub_runtime_python-0.8.0b0 → digitalhub_runtime_python-0.8.0b2}/digitalhub_runtime_python/utils/outputs.py +7 -7
- {digitalhub_runtime_python-0.8.0b0 → digitalhub_runtime_python-0.8.0b2}/digitalhub_runtime_python.egg-info/PKG-INFO +2 -2
- digitalhub_runtime_python-0.8.0b2/digitalhub_runtime_python.egg-info/requires.txt +1 -0
- {digitalhub_runtime_python-0.8.0b0 → digitalhub_runtime_python-0.8.0b2}/pyproject.toml +3 -3
- digitalhub_runtime_python-0.8.0b0/digitalhub_runtime_python.egg-info/requires.txt +0 -1
- {digitalhub_runtime_python-0.8.0b0 → digitalhub_runtime_python-0.8.0b2}/LICENSE.txt +0 -0
- {digitalhub_runtime_python-0.8.0b0 → digitalhub_runtime_python-0.8.0b2}/README.md +0 -0
- {digitalhub_runtime_python-0.8.0b0 → digitalhub_runtime_python-0.8.0b2}/digitalhub_runtime_python/entities/__init__.py +0 -0
- {digitalhub_runtime_python-0.8.0b0 → digitalhub_runtime_python-0.8.0b2}/digitalhub_runtime_python/entities/function/__init__.py +0 -0
- {digitalhub_runtime_python-0.8.0b0 → digitalhub_runtime_python-0.8.0b2}/digitalhub_runtime_python/entities/run/__init__.py +0 -0
- {digitalhub_runtime_python-0.8.0b0 → digitalhub_runtime_python-0.8.0b2}/digitalhub_runtime_python/entities/task/__init__.py +0 -0
- {digitalhub_runtime_python-0.8.0b0 → digitalhub_runtime_python-0.8.0b2}/digitalhub_runtime_python/entities/task/models.py +0 -0
- {digitalhub_runtime_python-0.8.0b0 → digitalhub_runtime_python-0.8.0b2}/digitalhub_runtime_python/runtimes/__init__.py +0 -0
- {digitalhub_runtime_python-0.8.0b0 → digitalhub_runtime_python-0.8.0b2}/digitalhub_runtime_python/utils/env.py +0 -0
- {digitalhub_runtime_python-0.8.0b0 → digitalhub_runtime_python-0.8.0b2}/digitalhub_runtime_python/utils/utils.py +0 -0
- {digitalhub_runtime_python-0.8.0b0 → digitalhub_runtime_python-0.8.0b2}/digitalhub_runtime_python.egg-info/SOURCES.txt +0 -0
- {digitalhub_runtime_python-0.8.0b0 → digitalhub_runtime_python-0.8.0b2}/digitalhub_runtime_python.egg-info/dependency_links.txt +0 -0
- {digitalhub_runtime_python-0.8.0b0 → digitalhub_runtime_python-0.8.0b2}/digitalhub_runtime_python.egg-info/top_level.txt +0 -0
- {digitalhub_runtime_python-0.8.0b0 → digitalhub_runtime_python-0.8.0b2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: digitalhub-runtime-python
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.0b2
|
|
4
4
|
Summary: Python runtime for DHCore
|
|
5
5
|
Author-email: Fondazione Bruno Kessler <dslab@fbk.eu>, Matteo Martini <mmartini@fbk.eu>
|
|
6
6
|
License: Apache License
|
|
@@ -229,6 +229,6 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
229
229
|
Requires-Python: >=3.9
|
|
230
230
|
Description-Content-Type: text/markdown
|
|
231
231
|
License-File: LICENSE.txt
|
|
232
|
-
Requires-Dist: digitalhub[
|
|
232
|
+
Requires-Dist: digitalhub[full]<0.9,>=0.8.0b
|
|
233
233
|
|
|
234
234
|
# SDK for DHCore
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
from digitalhub_core.entities.entity_types import EntityTypes
|
|
4
|
-
from digitalhub_core.registry.registry import registry
|
|
5
|
-
from digitalhub_core.registry.utils import create_info
|
|
6
3
|
from digitalhub_runtime_python.utils.utils import handler
|
|
7
4
|
|
|
5
|
+
from digitalhub.entities.entity_types import EntityTypes
|
|
6
|
+
from digitalhub.registry.registry import registry
|
|
7
|
+
from digitalhub.registry.utils import create_info
|
|
8
|
+
|
|
8
9
|
root = "digitalhub_runtime_python"
|
|
9
10
|
runtime_info = {
|
|
10
11
|
"module": f"{root}.runtimes.runtime",
|
|
@@ -2,10 +2,10 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
from pathlib import Path
|
|
4
4
|
|
|
5
|
-
from
|
|
6
|
-
from
|
|
7
|
-
from
|
|
8
|
-
from
|
|
5
|
+
from digitalhub.entities.function.models import SourceCodeParams, SourceCodeStruct
|
|
6
|
+
from digitalhub.utils.exceptions import EntityError
|
|
7
|
+
from digitalhub.utils.generic_utils import encode_source, encode_string
|
|
8
|
+
from digitalhub.utils.uri_utils import map_uri_scheme
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class SourceCodeStructPython(SourceCodeStruct):
|
|
@@ -2,9 +2,10 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
from typing import Literal
|
|
4
4
|
|
|
5
|
-
from digitalhub_core.entities.function.spec import FunctionParams, FunctionSpec
|
|
6
5
|
from digitalhub_runtime_python.entities.function.models import SourceCodeParamsPython, SourceCodeStructPython
|
|
7
6
|
|
|
7
|
+
from digitalhub.entities.function.spec import FunctionParams, FunctionSpec
|
|
8
|
+
|
|
8
9
|
|
|
9
10
|
class FunctionSpecPython(FunctionSpec):
|
|
10
11
|
"""
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
from
|
|
3
|
+
from digitalhub.entities.run.spec import RunParams, RunSpec
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
class RunSpecPython(
|
|
6
|
+
class RunSpecPython(RunSpec):
|
|
7
7
|
"""Run Python specification."""
|
|
8
8
|
|
|
9
9
|
def __init__(
|
|
@@ -55,7 +55,7 @@ class RunSpecPython(RunSpecMl):
|
|
|
55
55
|
self.parameters = parameters
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
class RunParamsPython(
|
|
58
|
+
class RunParamsPython(RunParams):
|
|
59
59
|
"""Run Python parameters."""
|
|
60
60
|
|
|
61
61
|
# Function parameters
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
3
|
import requests
|
|
4
|
-
from digitalhub_core.utils.exceptions import EntityError
|
|
5
|
-
from digitalhub_ml.entities.run.status import RunStatusMl
|
|
6
4
|
|
|
5
|
+
from digitalhub.entities.run.status import RunStatus
|
|
6
|
+
from digitalhub.utils.exceptions import EntityError
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
class RunStatusPython(RunStatus):
|
|
9
10
|
"""
|
|
10
11
|
Run Python status.
|
|
11
12
|
"""
|
|
@@ -3,15 +3,16 @@ from __future__ import annotations
|
|
|
3
3
|
import typing
|
|
4
4
|
from typing import Callable
|
|
5
5
|
|
|
6
|
-
from digitalhub_core.context.builder import get_context
|
|
7
|
-
from digitalhub_core.runtimes.base import Runtime
|
|
8
|
-
from digitalhub_core.utils.logger import LOGGER
|
|
9
6
|
from digitalhub_runtime_python.utils.configuration import get_function_from_source
|
|
10
7
|
from digitalhub_runtime_python.utils.inputs import compose_inputs
|
|
11
8
|
from digitalhub_runtime_python.utils.outputs import build_status, parse_outputs
|
|
12
9
|
|
|
10
|
+
from digitalhub.context.builder import get_context
|
|
11
|
+
from digitalhub.runtimes.base import Runtime
|
|
12
|
+
from digitalhub.utils.logger import LOGGER
|
|
13
|
+
|
|
13
14
|
if typing.TYPE_CHECKING:
|
|
14
|
-
from
|
|
15
|
+
from digitalhub.runtimes.kind_registry import KindRegistry
|
|
15
16
|
|
|
16
17
|
|
|
17
18
|
class RuntimePython(Runtime):
|
|
@@ -4,16 +4,16 @@ import importlib.util as imputil
|
|
|
4
4
|
from pathlib import Path
|
|
5
5
|
from typing import Callable
|
|
6
6
|
|
|
7
|
-
from
|
|
7
|
+
from digitalhub.utils.generic_utils import (
|
|
8
8
|
decode_string,
|
|
9
9
|
extract_archive,
|
|
10
10
|
get_bucket_and_key,
|
|
11
11
|
get_s3_source,
|
|
12
12
|
requests_chunk_download,
|
|
13
13
|
)
|
|
14
|
-
from
|
|
15
|
-
from
|
|
16
|
-
from
|
|
14
|
+
from digitalhub.utils.git_utils import clone_repository
|
|
15
|
+
from digitalhub.utils.logger import LOGGER
|
|
16
|
+
from digitalhub.utils.uri_utils import map_uri_scheme
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
def get_function_from_source(path: Path, source_spec: dict) -> Callable:
|
|
@@ -4,18 +4,18 @@ import inspect
|
|
|
4
4
|
import typing
|
|
5
5
|
from typing import Any, Callable
|
|
6
6
|
|
|
7
|
-
from
|
|
8
|
-
from
|
|
9
|
-
from
|
|
10
|
-
from
|
|
11
|
-
from
|
|
12
|
-
from
|
|
13
|
-
from
|
|
14
|
-
from
|
|
7
|
+
from digitalhub.context.builder import get_context
|
|
8
|
+
from digitalhub.entities.artifact.crud import artifact_from_dict
|
|
9
|
+
from digitalhub.entities.dataitem.crud import dataitem_from_dict
|
|
10
|
+
from digitalhub.entities.entity_types import EntityTypes
|
|
11
|
+
from digitalhub.entities.model.crud import model_from_dict
|
|
12
|
+
from digitalhub.entities.project.crud import get_project
|
|
13
|
+
from digitalhub.entities.utils import parse_entity_key
|
|
14
|
+
from digitalhub.utils.logger import LOGGER
|
|
15
15
|
|
|
16
16
|
if typing.TYPE_CHECKING:
|
|
17
|
-
from
|
|
18
|
-
from
|
|
17
|
+
from digitalhub.entities._base.entity.base import Entity
|
|
18
|
+
from digitalhub.entities.project.entity._base import Project
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
def get_project_(project_name: str) -> Project:
|
|
@@ -3,9 +3,10 @@ from __future__ import annotations
|
|
|
3
3
|
from pathlib import Path
|
|
4
4
|
from typing import Callable, Union
|
|
5
5
|
|
|
6
|
-
from digitalhub_core.utils.uri_utils import map_uri_scheme
|
|
7
6
|
from digitalhub_runtime_python.utils.configuration import import_function
|
|
8
7
|
|
|
8
|
+
from digitalhub.utils.uri_utils import map_uri_scheme
|
|
9
|
+
|
|
9
10
|
|
|
10
11
|
def parse_handler(handler: str) -> tuple[Path, str]:
|
|
11
12
|
"""
|
|
@@ -3,13 +3,13 @@ from __future__ import annotations
|
|
|
3
3
|
import pickle
|
|
4
4
|
from typing import Any
|
|
5
5
|
|
|
6
|
-
from
|
|
7
|
-
from
|
|
8
|
-
from
|
|
9
|
-
from
|
|
10
|
-
from
|
|
11
|
-
from
|
|
12
|
-
from
|
|
6
|
+
from digitalhub.entities._base.state import State
|
|
7
|
+
from digitalhub.entities.artifact.crud import log_artifact
|
|
8
|
+
from digitalhub.entities.artifact.entity._base import Artifact
|
|
9
|
+
from digitalhub.entities.dataitem.crud import log_dataitem
|
|
10
|
+
from digitalhub.entities.dataitem.entity.table import DataitemTable
|
|
11
|
+
from digitalhub.readers.registry import DATAFRAME_TYPES
|
|
12
|
+
from digitalhub.utils.logger import LOGGER
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
def collect_outputs(results: Any, outputs: list[str], project_name: str) -> dict:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: digitalhub-runtime-python
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.0b2
|
|
4
4
|
Summary: Python runtime for DHCore
|
|
5
5
|
Author-email: Fondazione Bruno Kessler <dslab@fbk.eu>, Matteo Martini <mmartini@fbk.eu>
|
|
6
6
|
License: Apache License
|
|
@@ -229,6 +229,6 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
229
229
|
Requires-Python: >=3.9
|
|
230
230
|
Description-Content-Type: text/markdown
|
|
231
231
|
License-File: LICENSE.txt
|
|
232
|
-
Requires-Dist: digitalhub[
|
|
232
|
+
Requires-Dist: digitalhub[full]<0.9,>=0.8.0b
|
|
233
233
|
|
|
234
234
|
# SDK for DHCore
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
digitalhub[full]<0.9,>=0.8.0b
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "digitalhub-runtime-python"
|
|
7
|
-
version = "0.8.
|
|
7
|
+
version = "0.8.0b2"
|
|
8
8
|
description = "Python runtime for DHCore"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [
|
|
@@ -21,7 +21,7 @@ classifiers = [
|
|
|
21
21
|
keywords = ["data", "dataops", "kubernetes"]
|
|
22
22
|
requires-python = ">=3.9"
|
|
23
23
|
dependencies = [
|
|
24
|
-
"digitalhub[
|
|
24
|
+
"digitalhub[full]>=0.8.0b, <0.9",
|
|
25
25
|
]
|
|
26
26
|
|
|
27
27
|
[project.urls]
|
|
@@ -40,7 +40,7 @@ line-length = 120
|
|
|
40
40
|
convention = "numpy"
|
|
41
41
|
|
|
42
42
|
[tool.bumpver]
|
|
43
|
-
current_version = "0.8.
|
|
43
|
+
current_version = "0.8.0b2"
|
|
44
44
|
version_pattern = "MAJOR.MINOR.PATCH[PYTAGNUM]"
|
|
45
45
|
commit_message = "Bump version {old_version} -> {new_version}"
|
|
46
46
|
commit = false
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
digitalhub[ml]<0.9,>=0.8.0b
|
|
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
|
|
File without changes
|