pinexq-client 0.10.6rc1__py3-none-any.whl → 1.0.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.
- {pinexq_client → pinexq/client}/core/api_event_manager.py +3 -4
- {pinexq_client → pinexq/client}/core/enterapi.py +6 -4
- {pinexq_client → pinexq/client}/core/exceptions.py +2 -2
- {pinexq_client → pinexq/client}/core/hco/action_hco.py +3 -3
- {pinexq_client → pinexq/client}/core/hco/action_with_parameters_hco.py +4 -4
- {pinexq_client → pinexq/client}/core/hco/download_link_hco.py +2 -2
- {pinexq_client → pinexq/client}/core/hco/hco_base.py +1 -1
- {pinexq_client → pinexq/client}/core/hco/link_hco.py +6 -8
- pinexq/client/core/hco/unavailable.py +36 -0
- {pinexq_client → pinexq/client}/core/hco/upload_action_hco.py +4 -5
- {pinexq_client → pinexq/client}/job_management/__init__.py +1 -1
- {pinexq_client → pinexq/client}/job_management/enterjma.py +11 -9
- {pinexq_client → pinexq/client}/job_management/hcos/entrypoint_hco.py +9 -9
- {pinexq_client → pinexq/client}/job_management/hcos/info_hco.py +5 -5
- pinexq/client/job_management/hcos/input_dataslot_hco.py +88 -0
- {pinexq_client → pinexq/client}/job_management/hcos/job_hco.py +22 -16
- pinexq/client/job_management/hcos/job_query_result_hco.py +89 -0
- {pinexq_client → pinexq/client}/job_management/hcos/job_used_tags_hco.py +5 -5
- {pinexq_client → pinexq/client}/job_management/hcos/jobsroot_hco.py +13 -16
- {pinexq_client → pinexq/client}/job_management/hcos/output_dataslot_hco.py +6 -9
- {pinexq_client → pinexq/client}/job_management/hcos/processing_step_hco.py +22 -14
- {pinexq_client → pinexq/client}/job_management/hcos/processing_step_used_tags_hco.py +5 -5
- pinexq/client/job_management/hcos/processingstep_query_result_hco.py +91 -0
- {pinexq_client → pinexq/client}/job_management/hcos/processingsteproot_hco.py +14 -15
- {pinexq_client → pinexq/client}/job_management/hcos/user_hco.py +4 -4
- {pinexq_client → pinexq/client}/job_management/hcos/workdata_hco.py +15 -15
- pinexq/client/job_management/hcos/workdata_query_result_hco.py +91 -0
- {pinexq_client → pinexq/client}/job_management/hcos/workdata_used_tags_query_result_hco.py +5 -5
- {pinexq_client → pinexq/client}/job_management/hcos/workdataroot_hco.py +16 -14
- {pinexq_client → pinexq/client}/job_management/model/open_api_generated.py +1 -1
- {pinexq_client → pinexq/client}/job_management/model/sirenentities.py +14 -12
- {pinexq_client → pinexq/client}/job_management/tool/job.py +20 -25
- {pinexq_client → pinexq/client}/job_management/tool/job_group.py +6 -7
- {pinexq_client → pinexq/client}/job_management/tool/processing_step.py +26 -15
- {pinexq_client → pinexq/client}/job_management/tool/workdata.py +7 -8
- {pinexq_client-0.10.6rc1.dist-info → pinexq_client-1.0.0.dist-info}/METADATA +10 -10
- pinexq_client-1.0.0.dist-info/RECORD +52 -0
- {pinexq_client-0.10.6rc1.dist-info → pinexq_client-1.0.0.dist-info}/WHEEL +2 -2
- pinexq_client/core/hco/unavailable.py +0 -36
- pinexq_client/job_management/hcos/input_dataslot_hco.py +0 -86
- pinexq_client/job_management/hcos/job_query_result_hco.py +0 -89
- pinexq_client/job_management/hcos/processingstep_query_result_hco.py +0 -94
- pinexq_client/job_management/hcos/workdata_query_result_hco.py +0 -91
- pinexq_client-0.10.6rc1.dist-info/RECORD +0 -52
- {pinexq_client → pinexq/client}/core/__init__.py +0 -0
- {pinexq_client → pinexq/client}/core/base_relations.py +0 -0
- {pinexq_client → pinexq/client}/core/hco/__init__.py +0 -0
- {pinexq_client → pinexq/client}/core/http_headers.py +0 -0
- {pinexq_client → pinexq/client}/core/media_types.py +0 -0
- {pinexq_client → pinexq/client}/core/model/__init__.py +0 -0
- {pinexq_client → pinexq/client}/core/model/error.py +0 -0
- {pinexq_client → pinexq/client}/core/model/sirenmodels.py +0 -0
- {pinexq_client → pinexq/client}/core/polling.py +0 -0
- {pinexq_client → pinexq/client}/core/sirenaccess.py +0 -0
- {pinexq_client → pinexq/client}/job_management/hcos/__init__.py +0 -0
- {pinexq_client → pinexq/client}/job_management/known_relations.py +0 -0
- {pinexq_client → pinexq/client}/job_management/model/__init__.py +0 -0
- {pinexq_client → pinexq/client}/job_management/tool/__init__.py +0 -0
|
@@ -2,11 +2,11 @@ from typing import List, Self
|
|
|
2
2
|
|
|
3
3
|
import httpx
|
|
4
4
|
|
|
5
|
-
from
|
|
6
|
-
from
|
|
7
|
-
from
|
|
8
|
-
from
|
|
9
|
-
from
|
|
5
|
+
from ...core.hco.hco_base import Hco, Property
|
|
6
|
+
from ...core.hco.link_hco import LinkHco
|
|
7
|
+
from ..known_relations import Relations
|
|
8
|
+
from ..model import ProcessingStepUsedTagsEntityAdmin
|
|
9
|
+
from ..model.sirenentities import ProcessingStepUsedTagsEntity
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class ProcessingStepUsedTagsHco(Hco[ProcessingStepUsedTagsEntity]):
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
from typing import Iterator, List, Self
|
|
2
|
+
|
|
3
|
+
import httpx
|
|
4
|
+
|
|
5
|
+
from ...core.hco.hco_base import Hco, Property
|
|
6
|
+
from ...core.hco.link_hco import LinkHco
|
|
7
|
+
from ...core.hco.unavailable import UnavailableLink
|
|
8
|
+
from ..hcos.processing_step_hco import ProcessingStepHco
|
|
9
|
+
from ..known_relations import Relations
|
|
10
|
+
from ..model.sirenentities import ProcessingStepEntity, ProcessingStepQueryResultEntity
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ProcessingStepQueryResultPaginationLink(LinkHco):
|
|
14
|
+
def navigate(self) -> 'ProcessingStepQueryResultHco':
|
|
15
|
+
return ProcessingStepQueryResultHco.from_entity(self._navigate_internal(ProcessingStepQueryResultEntity),
|
|
16
|
+
self._client)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class ProcessingStepQueryResultLink(LinkHco):
|
|
20
|
+
def navigate(self) -> 'ProcessingStepQueryResultHco':
|
|
21
|
+
return ProcessingStepQueryResultHco.from_entity(self._navigate_internal(ProcessingStepQueryResultEntity),
|
|
22
|
+
self._client)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class ProcessingStepQueryResultHco(Hco[ProcessingStepQueryResultEntity]):
|
|
26
|
+
total_entities: int = Property()
|
|
27
|
+
current_entities_count: int = Property()
|
|
28
|
+
processing_steps: list[ProcessingStepHco]
|
|
29
|
+
remaining_tags: List[str] | None = Property()
|
|
30
|
+
|
|
31
|
+
self_link: ProcessingStepQueryResultLink
|
|
32
|
+
all_link: ProcessingStepQueryResultPaginationLink | UnavailableLink
|
|
33
|
+
first_link: ProcessingStepQueryResultPaginationLink | UnavailableLink
|
|
34
|
+
last_link: ProcessingStepQueryResultPaginationLink | UnavailableLink
|
|
35
|
+
next_link: ProcessingStepQueryResultPaginationLink | UnavailableLink
|
|
36
|
+
previous_link: ProcessingStepQueryResultPaginationLink | UnavailableLink
|
|
37
|
+
|
|
38
|
+
@classmethod
|
|
39
|
+
def from_entity(cls, entity: ProcessingStepQueryResultEntity, client: httpx.Client) -> Self:
|
|
40
|
+
instance = cls(client, entity)
|
|
41
|
+
|
|
42
|
+
Hco.check_classes(instance._entity.class_, ["ProcessingStepQueryResult"])
|
|
43
|
+
|
|
44
|
+
# pagination links
|
|
45
|
+
instance.self_link = ProcessingStepQueryResultLink.from_entity(
|
|
46
|
+
instance._client, instance._entity, Relations.SELF)
|
|
47
|
+
instance.all_link = ProcessingStepQueryResultPaginationLink.from_entity_optional(
|
|
48
|
+
instance._client, instance._entity, Relations.ALL)
|
|
49
|
+
instance.first_link = ProcessingStepQueryResultPaginationLink.from_entity_optional(
|
|
50
|
+
instance._client, instance._entity, Relations.FIRST)
|
|
51
|
+
instance.last_link = ProcessingStepQueryResultPaginationLink.from_entity_optional(
|
|
52
|
+
instance._client, instance._entity, Relations.LAST)
|
|
53
|
+
instance.next_link = ProcessingStepQueryResultPaginationLink.from_entity_optional(
|
|
54
|
+
instance._client, instance._entity, Relations.NEXT)
|
|
55
|
+
instance.previous_link = ProcessingStepQueryResultPaginationLink.from_entity_optional(
|
|
56
|
+
instance._client, instance._entity, Relations.PREVIOUS)
|
|
57
|
+
|
|
58
|
+
instance._extract_processing_steps()
|
|
59
|
+
|
|
60
|
+
return instance
|
|
61
|
+
|
|
62
|
+
def _extract_processing_steps(self):
|
|
63
|
+
self.processing_steps = []
|
|
64
|
+
processing_steps = self._entity.find_all_entities_with_relation(Relations.ITEM, ProcessingStepEntity)
|
|
65
|
+
for processing_step in processing_steps:
|
|
66
|
+
processing_step_hco: ProcessingStepHco = ProcessingStepHco.from_entity(processing_step, self._client)
|
|
67
|
+
self.processing_steps.append(processing_step_hco)
|
|
68
|
+
|
|
69
|
+
def iter(self) -> Iterator[Self]:
|
|
70
|
+
"""
|
|
71
|
+
Returns an Iterator of `ProcessingStepQueryResultHco` objects so that all pages can be processed in a loop.
|
|
72
|
+
|
|
73
|
+
Returns:
|
|
74
|
+
An iterator of `ProcessingStepQueryResultHco` objects
|
|
75
|
+
"""
|
|
76
|
+
result = self
|
|
77
|
+
while result is not None:
|
|
78
|
+
yield result
|
|
79
|
+
if isinstance(result.next_link, UnavailableLink):
|
|
80
|
+
return
|
|
81
|
+
result = result.next_link.navigate()
|
|
82
|
+
|
|
83
|
+
def iter_flat(self) -> Iterator[ProcessingStepHco]:
|
|
84
|
+
"""
|
|
85
|
+
Returns an Iterator of `ProcessingStepHco` objects so that all processing steps can be processed in a loop.
|
|
86
|
+
|
|
87
|
+
Returns:
|
|
88
|
+
An iterator of `ProcessingStepHco` objects
|
|
89
|
+
"""
|
|
90
|
+
for page in self.iter():
|
|
91
|
+
yield from page.processing_steps
|
|
@@ -3,23 +3,22 @@ from typing import Self
|
|
|
3
3
|
import httpx
|
|
4
4
|
from httpx import URL
|
|
5
5
|
|
|
6
|
-
from
|
|
7
|
-
from
|
|
8
|
-
from
|
|
9
|
-
from
|
|
10
|
-
from
|
|
11
|
-
from
|
|
12
|
-
from
|
|
13
|
-
from
|
|
14
|
-
ProcessingStepUsedTagsAdminLink
|
|
15
|
-
from pinexq_client.job_management.hcos.processingstep_query_result_hco import (
|
|
6
|
+
from ...core import Link, MediaTypes, upload_json, raise_exception_on_error, ClientException
|
|
7
|
+
from ...core.hco.action_with_parameters_hco import ActionWithParametersHco
|
|
8
|
+
from ...core.hco.hco_base import Hco
|
|
9
|
+
from ...core.hco.link_hco import LinkHco
|
|
10
|
+
from ...core.hco.unavailable import UnavailableAction, UnavailableLink
|
|
11
|
+
from ..hcos.processing_step_hco import ProcessingStepHco, ProcessingStepLink
|
|
12
|
+
from ..hcos.processing_step_used_tags_hco import ProcessingStepUsedTagsAdminLink, ProcessingStepUsedTagsLink
|
|
13
|
+
from ..hcos.processingstep_query_result_hco import (
|
|
16
14
|
ProcessingStepQueryResultHco,
|
|
17
15
|
ProcessingStepQueryResultLink,
|
|
18
|
-
ProcessingStepQueryResultPaginationLink
|
|
16
|
+
ProcessingStepQueryResultPaginationLink,
|
|
19
17
|
)
|
|
20
|
-
from
|
|
21
|
-
from
|
|
22
|
-
from
|
|
18
|
+
from ..known_relations import Relations
|
|
19
|
+
from ..model import ProcessingStepQueryParameters
|
|
20
|
+
from ..model.sirenentities import ProcessingStepsRootEntity
|
|
21
|
+
from ...core.hco.upload_action_hco import UploadAction, UploadParameters
|
|
23
22
|
|
|
24
23
|
|
|
25
24
|
class ProcessingStepQueryAction(ActionWithParametersHco[ProcessingStepQueryParameters]):
|
|
@@ -35,7 +34,7 @@ class ProcessingStepQueryAction(ActionWithParametersHco[ProcessingStepQueryParam
|
|
|
35
34
|
|
|
36
35
|
class ProcessingStepRegisterNewAction(UploadAction):
|
|
37
36
|
def execute(self, parameters: UploadParameters) -> ProcessingStepLink:
|
|
38
|
-
url = upload_json(self._client, self._action, parameters.json_, parameters.filename)
|
|
37
|
+
url = upload_json(self._client, self._action, parameters.json_, parameters.filename)
|
|
39
38
|
raise_exception_on_error(f"Error while uploading", url)
|
|
40
39
|
|
|
41
40
|
if not isinstance(url, URL):
|
|
@@ -3,10 +3,10 @@ from uuid import UUID
|
|
|
3
3
|
|
|
4
4
|
import httpx
|
|
5
5
|
|
|
6
|
-
from
|
|
7
|
-
from
|
|
8
|
-
from
|
|
9
|
-
from
|
|
6
|
+
from ...core.hco.hco_base import Hco, Property
|
|
7
|
+
from ...core.hco.link_hco import LinkHco
|
|
8
|
+
from ..known_relations import Relations
|
|
9
|
+
from ..model.sirenentities import UserEntity
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class UserLink(LinkHco):
|
|
@@ -3,24 +3,24 @@ from typing import Self
|
|
|
3
3
|
|
|
4
4
|
import httpx
|
|
5
5
|
|
|
6
|
-
from
|
|
7
|
-
from
|
|
8
|
-
from
|
|
9
|
-
from
|
|
10
|
-
from
|
|
11
|
-
from
|
|
12
|
-
from
|
|
13
|
-
from
|
|
14
|
-
from
|
|
15
|
-
from
|
|
16
|
-
from
|
|
17
|
-
from
|
|
18
|
-
SetNameWorkDataParameters,
|
|
6
|
+
from ...core import Link, MediaTypes
|
|
7
|
+
from ...core.hco.action_hco import ActionHco
|
|
8
|
+
from ...core.hco.action_with_parameters_hco import ActionWithParametersHco
|
|
9
|
+
from ...core.hco.download_link_hco import DownloadLinkHco
|
|
10
|
+
from ...core.hco.hco_base import Hco, Property
|
|
11
|
+
from ...core.hco.link_hco import LinkHco
|
|
12
|
+
from ...core.hco.unavailable import UnavailableAction, UnavailableLink
|
|
13
|
+
from ..hcos.job_hco import JobLink
|
|
14
|
+
from ..hcos.processing_step_hco import ProcessingStepLink
|
|
15
|
+
from ..known_relations import Relations
|
|
16
|
+
from ..model import CopyWorkDataFromUserToOrgActionParameters
|
|
17
|
+
from ..model.open_api_generated import (
|
|
19
18
|
SetCommentWorkDataParameters,
|
|
19
|
+
SetNameWorkDataParameters,
|
|
20
20
|
SetTagsWorkDataParameters,
|
|
21
|
-
WorkDataKind
|
|
21
|
+
WorkDataKind,
|
|
22
22
|
)
|
|
23
|
-
from
|
|
23
|
+
from ..model.sirenentities import WorkDataEntity
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
class WorkDataLink(LinkHco):
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
from typing import Iterator, List, Self
|
|
2
|
+
|
|
3
|
+
import httpx
|
|
4
|
+
|
|
5
|
+
from ...core.hco.hco_base import Hco, Property
|
|
6
|
+
from ...core.hco.link_hco import LinkHco
|
|
7
|
+
from ...core.hco.unavailable import UnavailableLink
|
|
8
|
+
from ..hcos.workdata_hco import WorkDataHco
|
|
9
|
+
from ..known_relations import Relations
|
|
10
|
+
from ..model.sirenentities import WorkDataEntity, WorkDataQueryResultEntity
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class WorkDataQueryResultPaginationLink(LinkHco):
|
|
14
|
+
def navigate(self) -> 'WorkDataQueryResultHco':
|
|
15
|
+
return WorkDataQueryResultHco.from_entity(self._navigate_internal(WorkDataQueryResultEntity), self._client)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class WorkDataQueryResultLink(LinkHco):
|
|
19
|
+
def navigate(self) -> 'WorkDataQueryResultHco':
|
|
20
|
+
return WorkDataQueryResultHco.from_entity(self._navigate_internal(WorkDataQueryResultEntity), self._client)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class WorkDataQueryResultHco(Hco[WorkDataQueryResultEntity]):
|
|
24
|
+
workdata_query_action: WorkDataQueryResultEntity
|
|
25
|
+
|
|
26
|
+
total_entities: int = Property()
|
|
27
|
+
current_entities_count: int = Property()
|
|
28
|
+
workdatas: list[WorkDataHco]
|
|
29
|
+
remaining_tags: List[str] | None = Property()
|
|
30
|
+
|
|
31
|
+
self_link: WorkDataQueryResultLink
|
|
32
|
+
all_link: WorkDataQueryResultPaginationLink | UnavailableLink
|
|
33
|
+
first_link: WorkDataQueryResultPaginationLink | UnavailableLink
|
|
34
|
+
last_link: WorkDataQueryResultPaginationLink | UnavailableLink
|
|
35
|
+
next_link: WorkDataQueryResultPaginationLink | UnavailableLink
|
|
36
|
+
previous_link: WorkDataQueryResultPaginationLink | UnavailableLink
|
|
37
|
+
|
|
38
|
+
@classmethod
|
|
39
|
+
def from_entity(cls, entity: WorkDataQueryResultEntity, client: httpx.Client) -> Self:
|
|
40
|
+
instance = cls(client, entity)
|
|
41
|
+
|
|
42
|
+
Hco.check_classes(instance._entity.class_, ["WorkDataQueryResult"])
|
|
43
|
+
|
|
44
|
+
# pagination links
|
|
45
|
+
instance.self_link = WorkDataQueryResultLink.from_entity(
|
|
46
|
+
instance._client, instance._entity, Relations.SELF)
|
|
47
|
+
instance.all_link = WorkDataQueryResultPaginationLink.from_entity_optional(
|
|
48
|
+
instance._client, instance._entity, Relations.ALL)
|
|
49
|
+
instance.first_link = WorkDataQueryResultPaginationLink.from_entity_optional(
|
|
50
|
+
instance._client, instance._entity, Relations.FIRST)
|
|
51
|
+
instance.last_link = WorkDataQueryResultPaginationLink.from_entity_optional(
|
|
52
|
+
instance._client, instance._entity, Relations.LAST)
|
|
53
|
+
instance.next_link = WorkDataQueryResultPaginationLink.from_entity_optional(
|
|
54
|
+
instance._client, instance._entity, Relations.NEXT)
|
|
55
|
+
instance.previous_link = WorkDataQueryResultPaginationLink.from_entity_optional(
|
|
56
|
+
instance._client, instance._entity, Relations.PREVIOUS)
|
|
57
|
+
|
|
58
|
+
# entities
|
|
59
|
+
|
|
60
|
+
instance._extract_workdatas()
|
|
61
|
+
|
|
62
|
+
return instance
|
|
63
|
+
|
|
64
|
+
def _extract_workdatas(self):
|
|
65
|
+
self.workdatas = []
|
|
66
|
+
workdatas = self._entity.find_all_entities_with_relation(Relations.ITEM, WorkDataEntity)
|
|
67
|
+
for workdata in workdatas:
|
|
68
|
+
workdata_hco: WorkDataHco = WorkDataHco.from_entity(workdata, self._client)
|
|
69
|
+
self.workdatas.append(workdata_hco)
|
|
70
|
+
|
|
71
|
+
def iter(self) -> Iterator[Self]:
|
|
72
|
+
"""
|
|
73
|
+
Returns an Iterator of `WorkDataQueryResultHco` so that all pages can be processed in a loop.
|
|
74
|
+
Returns:
|
|
75
|
+
An iterator of `WorkDataQueryResultHco` objects
|
|
76
|
+
"""
|
|
77
|
+
result = self
|
|
78
|
+
while result is not None:
|
|
79
|
+
yield result
|
|
80
|
+
if isinstance(result.next_link, UnavailableLink):
|
|
81
|
+
return
|
|
82
|
+
result = result.next_link.navigate()
|
|
83
|
+
|
|
84
|
+
def iter_flat(self) -> Iterator[WorkDataHco]:
|
|
85
|
+
"""
|
|
86
|
+
Returns an Iterator of the `WorkDataHco` so that all WorkDatas can be processed in a loop.
|
|
87
|
+
Returns:
|
|
88
|
+
An iterator of `WorkDataHco` objects
|
|
89
|
+
"""
|
|
90
|
+
for page in self.iter():
|
|
91
|
+
yield from page.workdatas
|
|
@@ -2,11 +2,11 @@ from typing import List, Self
|
|
|
2
2
|
|
|
3
3
|
import httpx
|
|
4
4
|
|
|
5
|
-
from
|
|
6
|
-
from
|
|
7
|
-
from
|
|
8
|
-
from
|
|
9
|
-
from
|
|
5
|
+
from ...core.hco.hco_base import Hco, Property
|
|
6
|
+
from ...core.hco.link_hco import LinkHco
|
|
7
|
+
from ..known_relations import Relations
|
|
8
|
+
from ..model import WorkDataUsedTagsQueryResultEntityAdmin
|
|
9
|
+
from ..model.sirenentities import WorkDataUsedTagsQueryResultEntity
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class WorkDataUsedTagsQueryResultHto(Hco[WorkDataUsedTagsQueryResultEntity]):
|
|
@@ -2,23 +2,25 @@ from typing import Self
|
|
|
2
2
|
|
|
3
3
|
import httpx
|
|
4
4
|
|
|
5
|
-
from
|
|
6
|
-
from
|
|
7
|
-
from
|
|
8
|
-
from
|
|
9
|
-
from
|
|
10
|
-
from
|
|
11
|
-
from
|
|
12
|
-
from
|
|
5
|
+
from ...core import Link, MediaTypes
|
|
6
|
+
from ...core.hco.action_with_parameters_hco import ActionWithParametersHco
|
|
7
|
+
from ...core.hco.hco_base import Hco
|
|
8
|
+
from ...core.hco.link_hco import LinkHco
|
|
9
|
+
from ...core.hco.unavailable import UnavailableAction, UnavailableLink
|
|
10
|
+
from ...core.hco.upload_action_hco import UploadAction, UploadParameters
|
|
11
|
+
from ..hcos.workdata_hco import WorkDataLink
|
|
12
|
+
from ..hcos.workdata_query_result_hco import (
|
|
13
13
|
WorkDataQueryResultHco,
|
|
14
14
|
WorkDataQueryResultLink,
|
|
15
|
-
WorkDataQueryResultPaginationLink
|
|
15
|
+
WorkDataQueryResultPaginationLink,
|
|
16
16
|
)
|
|
17
|
-
from
|
|
18
|
-
WorkDataUsedTagsAdminLink
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
from
|
|
17
|
+
from ..hcos.workdata_used_tags_query_result_hco import (
|
|
18
|
+
WorkDataUsedTagsAdminLink,
|
|
19
|
+
WorkDataUsedTagsLink,
|
|
20
|
+
)
|
|
21
|
+
from ..known_relations import Relations
|
|
22
|
+
from ..model import WorkDataQueryParameters, WorkDataUsedTagsFilterParameter
|
|
23
|
+
from ..model.sirenentities import WorkDataRootEntity
|
|
22
24
|
|
|
23
25
|
|
|
24
26
|
class WorkDataQueryAction(ActionWithParametersHco[WorkDataQueryParameters]):
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
from pydantic import BaseModel, ConfigDict, Field
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from
|
|
5
|
-
InfoHtoOpenApiProperties,
|
|
3
|
+
from pinexq.client.core import Entity
|
|
4
|
+
from pinexq.client.job_management.model.open_api_generated import (
|
|
6
5
|
EntryPointHtoOpenApiProperties,
|
|
7
|
-
|
|
8
|
-
JobQueryResultHtoOpenApiProperties,
|
|
6
|
+
InfoHtoOpenApiProperties,
|
|
9
7
|
JobHtoOpenApiProperties,
|
|
10
|
-
|
|
8
|
+
JobQueryResultHtoOpenApiProperties,
|
|
9
|
+
JobsRootHtoOpenApiProperties,
|
|
10
|
+
JobUsedTagsAdminHtoOpenApiProperties,
|
|
11
|
+
JobUsedTagsHtoOpenApiProperties,
|
|
11
12
|
ProcessingStepHtoOpenApiProperties,
|
|
12
|
-
WorkDataQueryResultHtoOpenApiProperties,
|
|
13
|
-
WorkDataRootHtoOpenApiProperties,
|
|
14
|
-
ProcessingStepRootHtoOpenApiProperties,
|
|
15
13
|
ProcessingStepQueryResultHtoOpenApiProperties,
|
|
16
|
-
|
|
14
|
+
ProcessingStepRootHtoOpenApiProperties,
|
|
15
|
+
ProcessingStepUsedTagsAdminHtoOpenApiProperties,
|
|
17
16
|
ProcessingStepUsedTagsHtoOpenApiProperties,
|
|
18
17
|
UserHtoOpenApiProperties,
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
WorkDataHtoOpenApiProperties,
|
|
19
|
+
WorkDataQueryResultHtoOpenApiProperties,
|
|
20
|
+
WorkDataRootHtoOpenApiProperties,
|
|
21
|
+
WorkDataUsedTagsAdminQueryResultHtoOpenApiProperties,
|
|
22
|
+
WorkDataUsedTagsQueryResultHtoOpenApiProperties,
|
|
21
23
|
)
|
|
22
24
|
|
|
23
25
|
|
|
@@ -1,36 +1,30 @@
|
|
|
1
|
+
import datetime
|
|
1
2
|
import json as json_
|
|
2
|
-
import warnings
|
|
3
3
|
import queue
|
|
4
|
-
import
|
|
4
|
+
import warnings
|
|
5
5
|
from datetime import datetime, timedelta
|
|
6
|
-
|
|
7
|
-
from typing import Any, Self, List
|
|
6
|
+
from typing import Any, List, Self
|
|
8
7
|
|
|
9
8
|
import httpx
|
|
10
9
|
from httpx import URL
|
|
11
10
|
from pydantic import BaseModel, ConfigDict
|
|
12
11
|
|
|
13
|
-
from
|
|
14
|
-
from
|
|
15
|
-
from
|
|
16
|
-
from
|
|
17
|
-
from
|
|
18
|
-
from
|
|
19
|
-
from
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
from
|
|
25
|
-
from pinexq_client.job_management.hcos.jobsroot_hco import JobsRootHco
|
|
26
|
-
from pinexq_client.job_management.hcos.processingsteproot_hco import (
|
|
27
|
-
ProcessingStepsRootHco,
|
|
28
|
-
)
|
|
29
|
-
from pinexq_client.job_management.known_relations import Relations
|
|
30
|
-
from pinexq_client.job_management.model import (
|
|
12
|
+
from ...core import ApiException, ClientException, Link, MediaTypes
|
|
13
|
+
from ...core.api_event_manager import ApiEventManagerSingleton
|
|
14
|
+
from ...core.polling import PollingException, wait_until
|
|
15
|
+
from ..enterjma import enter_jma
|
|
16
|
+
from ..hcos import InputDataSlotHco, OutputDataSlotHco, ProcessingStepLink, WorkDataLink
|
|
17
|
+
from ..hcos.entrypoint_hco import EntryPointHco
|
|
18
|
+
from ..hcos.job_hco import GenericProcessingConfigureParameters, JobHco, JobLink
|
|
19
|
+
from ..hcos.job_query_result_hco import JobQueryResultHco
|
|
20
|
+
from ..hcos.jobsroot_hco import JobsRootHco
|
|
21
|
+
from ..hcos.processingsteproot_hco import ProcessingStepsRootHco
|
|
22
|
+
from ..known_relations import Relations
|
|
23
|
+
from ..model import (
|
|
31
24
|
CreateJobParameters,
|
|
32
25
|
CreateSubJobParameters,
|
|
33
26
|
FunctionNameMatchTypes,
|
|
27
|
+
InputDataSlotParameter,
|
|
34
28
|
JobFilterParameter,
|
|
35
29
|
JobQueryParameters,
|
|
36
30
|
JobSortPropertiesSortParameter,
|
|
@@ -38,13 +32,14 @@ from pinexq_client.job_management.model import (
|
|
|
38
32
|
ProcessingStepFilterParameter,
|
|
39
33
|
ProcessingStepQueryParameters,
|
|
40
34
|
ProcessingView,
|
|
35
|
+
RapidJobSetupParameters,
|
|
41
36
|
SelectProcessingParameters,
|
|
42
37
|
SelectWorkDataCollectionForDataSlotParameters,
|
|
43
38
|
SelectWorkDataForDataSlotParameters,
|
|
44
|
-
SetJobTagsParameters,
|
|
39
|
+
SetJobTagsParameters,
|
|
45
40
|
)
|
|
46
|
-
from
|
|
47
|
-
from
|
|
41
|
+
from ..tool.processing_step import ProcessingStep
|
|
42
|
+
from ..tool.workdata import WorkData
|
|
48
43
|
|
|
49
44
|
|
|
50
45
|
class InputDataSlotParameterFlexible(BaseModel):
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import queue
|
|
2
2
|
from datetime import datetime, timedelta
|
|
3
3
|
from enum import StrEnum
|
|
4
|
-
from typing import
|
|
5
|
-
|
|
6
|
-
from pinexq_client.core.api_event_manager import ApiEventManagerSingleton
|
|
7
|
-
from pinexq_client.core.polling import PollingException
|
|
8
|
-
from pinexq_client.job_management.tool import Job
|
|
9
|
-
from pinexq_client.job_management.hcos import JobQueryResultHco
|
|
10
|
-
from pinexq_client.job_management.model import JobStates
|
|
4
|
+
from typing import Self, Union
|
|
11
5
|
|
|
6
|
+
from ...core.api_event_manager import ApiEventManagerSingleton
|
|
7
|
+
from ...core.polling import PollingException
|
|
8
|
+
from ..hcos import JobQueryResultHco
|
|
9
|
+
from ..model import JobStates
|
|
10
|
+
from ..tool import Job
|
|
12
11
|
|
|
13
12
|
|
|
14
13
|
class JobGroup:
|
|
@@ -1,21 +1,32 @@
|
|
|
1
|
-
from typing import Any,
|
|
1
|
+
from typing import Any, Optional, Self
|
|
2
2
|
|
|
3
3
|
import httpx
|
|
4
4
|
from httpx import URL
|
|
5
|
-
|
|
6
|
-
from
|
|
7
|
-
from
|
|
8
|
-
from
|
|
9
|
-
from
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
5
|
+
|
|
6
|
+
from ...core import Link, MediaTypes
|
|
7
|
+
from ...core.hco.upload_action_hco import UploadParameters
|
|
8
|
+
from ..enterjma import enter_jma
|
|
9
|
+
from ..hcos import (
|
|
10
|
+
EntryPointHco,
|
|
11
|
+
GenericProcessingConfigureParameters,
|
|
12
|
+
ProcessingStepHco,
|
|
13
|
+
ProcessingStepLink,
|
|
14
|
+
ProcessingStepQueryResultHco,
|
|
15
|
+
ProcessingStepsRootHco,
|
|
16
|
+
)
|
|
17
|
+
from ..known_relations import Relations
|
|
18
|
+
from ..model import (
|
|
19
|
+
AssignCodeHashParameters,
|
|
20
|
+
ConfigureDeploymentParameters,
|
|
21
|
+
CopyPsFromUserToOrgActionParameters,
|
|
22
|
+
DeploymentResourcePresets,
|
|
23
|
+
DeploymentStates,
|
|
24
|
+
DeprecatePsActionParameters,
|
|
25
|
+
FunctionNameMatchTypes,
|
|
26
|
+
ProcessingStepFilterParameter,
|
|
27
|
+
ProcessingStepQueryParameters,
|
|
28
|
+
ScalingConfiguration,
|
|
29
|
+
SetProcessingStepTagsParameters, SetProcessingStepTitleParameters,
|
|
19
30
|
)
|
|
20
31
|
|
|
21
32
|
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
from io import IOBase
|
|
2
|
-
from typing import
|
|
2
|
+
from typing import Any, AsyncIterable, Iterable, Self
|
|
3
3
|
|
|
4
4
|
import httpx
|
|
5
5
|
from httpx import URL
|
|
6
6
|
|
|
7
|
-
from
|
|
8
|
-
from
|
|
9
|
-
from
|
|
10
|
-
from
|
|
11
|
-
from
|
|
12
|
-
from
|
|
13
|
-
from pinexq_client.job_management.model import SetTagsWorkDataParameters, CopyWorkDataFromUserToOrgActionParameters
|
|
7
|
+
from ...core import Link, MediaTypes
|
|
8
|
+
from ...core.hco.upload_action_hco import UploadParameters
|
|
9
|
+
from ..enterjma import enter_jma
|
|
10
|
+
from ..hcos import EntryPointHco, WorkDataHco, WorkDataLink, WorkDataRootHco
|
|
11
|
+
from ..known_relations import Relations
|
|
12
|
+
from ..model import CopyWorkDataFromUserToOrgActionParameters, SetTagsWorkDataParameters
|
|
14
13
|
|
|
15
14
|
|
|
16
15
|
class WorkData:
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: pinexq-client
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 1.0.0
|
|
4
4
|
Summary: A hypermedia-based client for the DataCybernetics PinexQ platform.
|
|
5
|
-
Author: Sebastian Höfer, Mathias Reichardt,
|
|
6
|
-
Author-email: Sebastian Höfer <hoefer@data-cybernetics.com>, Mathias Reichardt <reichardt@data-cybernetics.com>,
|
|
5
|
+
Author: Sebastian Höfer, Mathias Reichardt, Pratik Poudel
|
|
6
|
+
Author-email: Sebastian Höfer <hoefer@data-cybernetics.com>, Mathias Reichardt <reichardt@data-cybernetics.com>, Pratik Poudel <poudel@data-cybernetics.com>
|
|
7
7
|
License: MIT
|
|
8
8
|
Requires-Dist: pydantic>=2.1.0,<3.0.0
|
|
9
9
|
Requires-Dist: httpx>=0.25.0,<1.0.0
|
|
@@ -45,8 +45,8 @@ To initialize the client parts must be supplied:
|
|
|
45
45
|
```python
|
|
46
46
|
from httpx import Client
|
|
47
47
|
|
|
48
|
-
from
|
|
49
|
-
from
|
|
48
|
+
from pinexq.client.job_management.enterjma import enter_jma
|
|
49
|
+
from pinexq.client.job_management.hcos.entrypoint_hco import EntryPointHco
|
|
50
50
|
|
|
51
51
|
client = Client(
|
|
52
52
|
base_url="https://myapihost.com:80",
|
|
@@ -66,8 +66,8 @@ entrypoint: EntryPointHco = enter_jma(client)
|
|
|
66
66
|
There is a convenience layer wrapping job-management-specific objects in interface classes for ease of use.
|
|
67
67
|
|
|
68
68
|
```python
|
|
69
|
-
from
|
|
70
|
-
from
|
|
69
|
+
from pinexq.client.job_management.tool import Job
|
|
70
|
+
from pinexq.client.job_management.model import JobStates
|
|
71
71
|
|
|
72
72
|
job = (
|
|
73
73
|
Job(client)
|
|
@@ -86,9 +86,9 @@ In the spirit of a hypermedia API you can also use low level calls to navigate t
|
|
|
86
86
|
e.g. when features are not yet exposed in the convenience wrapper.
|
|
87
87
|
|
|
88
88
|
```python
|
|
89
|
-
from
|
|
90
|
-
from
|
|
91
|
-
from
|
|
89
|
+
from pinexq.client.job_management.enterjma import enter_jma
|
|
90
|
+
from pinexq.client.job_management.hcos.entrypoint_hco import EntryPointHco
|
|
91
|
+
from pinexq.client.job_management.model import CreateJobParameters, SetJobTagsParameters
|
|
92
92
|
|
|
93
93
|
entrypoint: EntryPointHco = enter_jma(client)
|
|
94
94
|
# Get to jobs root
|