pinexq-client 0.9.2.20250908.48__py3-none-any.whl → 0.9.2.20251028.52__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/job_management/__init__.py +1 -1
- pinexq_client/job_management/hcos/processing_step_hco.py +23 -1
- pinexq_client/job_management/model/open_api_generated.py +34 -1
- pinexq_client/job_management/tool/processing_step.py +23 -1
- {pinexq_client-0.9.2.20250908.48.dist-info → pinexq_client-0.9.2.20251028.52.dist-info}/METADATA +2 -1
- {pinexq_client-0.9.2.20250908.48.dist-info → pinexq_client-0.9.2.20251028.52.dist-info}/RECORD +9 -9
- {pinexq_client-0.9.2.20250908.48.dist-info → pinexq_client-0.9.2.20251028.52.dist-info}/WHEEL +0 -0
- {pinexq_client-0.9.2.20250908.48.dist-info → pinexq_client-0.9.2.20251028.52.dist-info}/entry_points.txt +0 -0
- {pinexq_client-0.9.2.20250908.48.dist-info → pinexq_client-0.9.2.20251028.52.dist-info}/licenses/LICENSE +0 -0
|
@@ -13,7 +13,8 @@ from pinexq_client.core.hco.link_hco import LinkHco
|
|
|
13
13
|
from pinexq_client.core.hco.unavailable import UnavailableAction
|
|
14
14
|
from pinexq_client.core.hco.upload_action_hco import UploadAction, UploadParameters
|
|
15
15
|
from pinexq_client.job_management.known_relations import Relations
|
|
16
|
-
from pinexq_client.job_management.model import CopyPsFromUserToOrgActionParameters, CopyPsFromOrgToUserActionParameters
|
|
16
|
+
from pinexq_client.job_management.model import CopyPsFromUserToOrgActionParameters, CopyPsFromOrgToUserActionParameters, \
|
|
17
|
+
DeprecatePsActionParameters
|
|
17
18
|
from pinexq_client.job_management.model.open_api_generated import DataSpecificationHto, \
|
|
18
19
|
SetProcessingStepTagsParameters, EditProcessingStepParameters
|
|
19
20
|
from pinexq_client.job_management.model.sirenentities import ProcessingStepEntity
|
|
@@ -76,6 +77,10 @@ class DeleteAction(ActionHco):
|
|
|
76
77
|
self._execute_internal()
|
|
77
78
|
|
|
78
79
|
|
|
80
|
+
class RestoreAction(ActionHco):
|
|
81
|
+
def execute(self):
|
|
82
|
+
self._execute_internal()
|
|
83
|
+
|
|
79
84
|
class UploadConfigurationAction(UploadAction):
|
|
80
85
|
def execute(self, parameters: UploadParameters):
|
|
81
86
|
upload_json(self._client, self._action, parameters.json_, parameters.filename)
|
|
@@ -103,6 +108,15 @@ class ProcessingStepCopyFromOrgToUserAction(ActionWithParametersHco[CopyPsFromOr
|
|
|
103
108
|
CopyPsFromOrgToUserActionParameters())
|
|
104
109
|
|
|
105
110
|
|
|
111
|
+
class ProcessingStepDeprecateAction(ActionWithParametersHco[DeprecatePsActionParameters]):
|
|
112
|
+
def execute(self, parameters: DeprecatePsActionParameters):
|
|
113
|
+
self._execute(parameters)
|
|
114
|
+
|
|
115
|
+
def default_parameters(self) -> DeprecatePsActionParameters:
|
|
116
|
+
return self._get_default_parameters(DeprecatePsActionParameters,
|
|
117
|
+
DeprecatePsActionParameters())
|
|
118
|
+
|
|
119
|
+
|
|
106
120
|
class ProcessingStepHco(Hco[ProcessingStepEntity]):
|
|
107
121
|
title: str = Property()
|
|
108
122
|
version: str | None = Property()
|
|
@@ -120,6 +134,8 @@ class ProcessingStepHco(Hco[ProcessingStepEntity]):
|
|
|
120
134
|
return_schema: str | None = Property()
|
|
121
135
|
error_schema: str | None = Property()
|
|
122
136
|
hidden: bool | None = Property()
|
|
137
|
+
deprecated_on: datetime | None = Property()
|
|
138
|
+
reason_for_deprecation: str | None = Property()
|
|
123
139
|
|
|
124
140
|
input_data_slot_specification: List[DataSpecificationHto] | None = Property()
|
|
125
141
|
output_data_slot_specification: List[DataSpecificationHto] | None = Property()
|
|
@@ -133,6 +149,8 @@ class ProcessingStepHco(Hco[ProcessingStepEntity]):
|
|
|
133
149
|
copy_from_user_to_org_action: ProcessingStepCopyFromUserToOrgAction | UnavailableAction
|
|
134
150
|
copy_from_org_to_user_action: ProcessingStepCopyFromOrgToUserAction | UnavailableAction
|
|
135
151
|
delete_action: DeleteAction | UnavailableAction
|
|
152
|
+
deprecate_ps_action: ProcessingStepDeprecateAction | UnavailableAction
|
|
153
|
+
restore_ps_action: RestoreAction | UnavailableAction
|
|
136
154
|
|
|
137
155
|
self_link: ProcessingStepLink
|
|
138
156
|
download_link: DownloadLinkHco
|
|
@@ -167,5 +185,9 @@ class ProcessingStepHco(Hco[ProcessingStepEntity]):
|
|
|
167
185
|
client, instance._entity, "CopyToUser")
|
|
168
186
|
instance.delete_action = DeleteAction.from_entity_optional(
|
|
169
187
|
client, instance._entity, "Delete")
|
|
188
|
+
instance.deprecate_ps_action = ProcessingStepDeprecateAction.from_entity_optional(
|
|
189
|
+
client, instance._entity, "Deprecate")
|
|
190
|
+
instance.restore_ps_action = RestoreAction.from_entity_optional(
|
|
191
|
+
client, instance._entity, "Restore")
|
|
170
192
|
|
|
171
193
|
return instance
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# generated by datamodel-codegen:
|
|
2
2
|
# filename: openapi.json
|
|
3
|
-
# timestamp: 2025-
|
|
3
|
+
# timestamp: 2025-10-22T11:45:43+00:00
|
|
4
4
|
|
|
5
5
|
from __future__ import annotations
|
|
6
6
|
|
|
@@ -43,6 +43,14 @@ class AdminWorkDataQueryResultHtoOpenApiProperties(BaseModel):
|
|
|
43
43
|
remaining_tags: List[str] | None = Field(None, alias='RemainingTags')
|
|
44
44
|
|
|
45
45
|
|
|
46
|
+
class ApiEventsInfoHtoOpenApiProperties(BaseModel):
|
|
47
|
+
pass
|
|
48
|
+
model_config = ConfigDict(
|
|
49
|
+
extra='allow',
|
|
50
|
+
populate_by_name=True,
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
|
|
46
54
|
class CopyPsFromOrgToUserActionParameters(BaseModel):
|
|
47
55
|
model_config = ConfigDict(
|
|
48
56
|
extra='allow',
|
|
@@ -117,6 +125,14 @@ class DataSpecificationHto(BaseModel):
|
|
|
117
125
|
max_slots: int | None = Field(None, alias='MaxSlots')
|
|
118
126
|
|
|
119
127
|
|
|
128
|
+
class DeprecatePsActionParameters(BaseModel):
|
|
129
|
+
model_config = ConfigDict(
|
|
130
|
+
extra='allow',
|
|
131
|
+
populate_by_name=True,
|
|
132
|
+
)
|
|
133
|
+
reason: str | None = Field(None, alias='Reason')
|
|
134
|
+
|
|
135
|
+
|
|
120
136
|
class EditProcessingStepParameters(BaseModel):
|
|
121
137
|
model_config = ConfigDict(
|
|
122
138
|
extra='allow',
|
|
@@ -278,6 +294,7 @@ class ProcessingStepFilterParameter(BaseModel):
|
|
|
278
294
|
tags_by_or: List[str] | None = Field(None, alias='TagsByOr')
|
|
279
295
|
is_public: bool | None = Field(None, alias='IsPublic')
|
|
280
296
|
show_hidden: bool | None = Field(None, alias='ShowHidden')
|
|
297
|
+
show_deprecated: bool | None = Field(None, alias='ShowDeprecated')
|
|
281
298
|
is_configured: bool | None = Field(None, alias='IsConfigured')
|
|
282
299
|
|
|
283
300
|
|
|
@@ -312,6 +329,8 @@ class ProcessingStepHtoOpenApiProperties(BaseModel):
|
|
|
312
329
|
tags: List[str] | None = Field(None, alias='Tags')
|
|
313
330
|
is_configured: bool | None = Field(None, alias='IsConfigured')
|
|
314
331
|
hidden: bool | None = Field(None, alias='Hidden')
|
|
332
|
+
deprecated_on: AwareDatetime | None = Field(None, alias='DeprecatedOn')
|
|
333
|
+
reason_for_deprecation: str | None = Field(None, alias='ReasonForDeprecation')
|
|
315
334
|
created_at: AwareDatetime | None = Field(None, alias='CreatedAt')
|
|
316
335
|
last_modified_at: AwareDatetime | None = Field(None, alias='LastModifiedAt')
|
|
317
336
|
parameter_schema: str | None = Field(None, alias='ParameterSchema')
|
|
@@ -625,6 +644,7 @@ class AdminProcessingStepFilterParameter(BaseModel):
|
|
|
625
644
|
tags_by_or: List[str] | None = Field(None, alias='TagsByOr')
|
|
626
645
|
is_public: bool | None = Field(None, alias='IsPublic')
|
|
627
646
|
show_hidden: bool | None = Field(None, alias='ShowHidden')
|
|
647
|
+
show_deprecated: bool | None = Field(None, alias='ShowDeprecated')
|
|
628
648
|
is_configured: bool | None = Field(None, alias='IsConfigured')
|
|
629
649
|
|
|
630
650
|
|
|
@@ -686,6 +706,19 @@ class AdminWorkDataQueryResultHtoOpenApi(BaseModel):
|
|
|
686
706
|
links: List[Link] | None = None
|
|
687
707
|
|
|
688
708
|
|
|
709
|
+
class ApiEventsInfoHtoOpenApi(BaseModel):
|
|
710
|
+
model_config = ConfigDict(
|
|
711
|
+
extra='allow',
|
|
712
|
+
populate_by_name=True,
|
|
713
|
+
)
|
|
714
|
+
class_: List[str] | None = Field(None, alias='class')
|
|
715
|
+
title: str | None = None
|
|
716
|
+
properties: ApiEventsInfoHtoOpenApiProperties | None = None
|
|
717
|
+
entities: List | None = None
|
|
718
|
+
actions: List[Action] | None = None
|
|
719
|
+
links: List[Link] | None = None
|
|
720
|
+
|
|
721
|
+
|
|
689
722
|
class EntryPointHtoOpenApi(BaseModel):
|
|
690
723
|
model_config = ConfigDict(
|
|
691
724
|
extra='allow',
|
|
@@ -15,7 +15,7 @@ from pinexq_client.job_management.model import (
|
|
|
15
15
|
CreateProcessingStepParameters,
|
|
16
16
|
SetProcessingStepTagsParameters, ProcessingStepQueryParameters, ProcessingStepFilterParameter,
|
|
17
17
|
FunctionNameMatchTypes, EditProcessingStepParameters, CopyPsFromUserToOrgActionParameters,
|
|
18
|
-
CopyPsFromOrgToUserActionParameters,
|
|
18
|
+
CopyPsFromOrgToUserActionParameters, DeprecatePsActionParameters,
|
|
19
19
|
)
|
|
20
20
|
|
|
21
21
|
|
|
@@ -277,6 +277,28 @@ class ProcessingStep:
|
|
|
277
277
|
self.processing_step_hco = None
|
|
278
278
|
return self
|
|
279
279
|
|
|
280
|
+
def deprecate(self, reason: str | None = None) -> Self:
|
|
281
|
+
"""Deprecate ProcessingStep.
|
|
282
|
+
|
|
283
|
+
Returns:
|
|
284
|
+
This `ProcessingStep` object"""
|
|
285
|
+
self._raise_if_no_hco()
|
|
286
|
+
self.processing_step_hco.deprecate_ps_action.execute(
|
|
287
|
+
DeprecatePsActionParameters(reason=reason)
|
|
288
|
+
)
|
|
289
|
+
self.refresh()
|
|
290
|
+
return self
|
|
291
|
+
|
|
292
|
+
def restore(self) -> Self:
|
|
293
|
+
"""Restore ProcessingStep.
|
|
294
|
+
|
|
295
|
+
Returns:
|
|
296
|
+
This `ProcessingStep` object"""
|
|
297
|
+
self._raise_if_no_hco()
|
|
298
|
+
self.processing_step_hco.restore_ps_action.execute()
|
|
299
|
+
self.refresh()
|
|
300
|
+
return self
|
|
301
|
+
|
|
280
302
|
def upload_configuration(self, json_data: Any) -> Self:
|
|
281
303
|
"""Upload processing configuration.
|
|
282
304
|
|
{pinexq_client-0.9.2.20250908.48.dist-info → pinexq_client-0.9.2.20251028.52.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pinexq-client
|
|
3
|
-
Version: 0.9.2.
|
|
3
|
+
Version: 0.9.2.20251028.52
|
|
4
4
|
Summary: A hypermedia-based client for the DataCybernetics PinexQ platform.
|
|
5
5
|
Author-Email: =?utf-8?q?Sebastian_H=C3=B6fer?= <hoefer@data-cybernetics.com>, Mathias Reichardt <reichardt@data-cybernetics.com>, Jasim Ahmed <ahmed@data-cybernetics.com>, Pratik Poudel <poudel@data-cybernetics.com>
|
|
6
6
|
Maintainer-Email: Mathias Reichardt <reichardt@data-cybernetics.com>, =?utf-8?q?Sebastian_H=C3=B6fer?= <hoefer@data-cybernetics.com>, Carsten Blank <blank@data-cybernetics.com>
|
|
@@ -8,6 +8,7 @@ License: MIT
|
|
|
8
8
|
Requires-Python: >=3.11
|
|
9
9
|
Requires-Dist: pydantic<3.0.0,>=2.1.0
|
|
10
10
|
Requires-Dist: httpx<1.0.0,>=0.25.0
|
|
11
|
+
Requires-Dist: httpx-sse>=0.4.0
|
|
11
12
|
Description-Content-Type: text/markdown
|
|
12
13
|
|
|
13
14
|
# Pine-x-Q Python Client
|
{pinexq_client-0.9.2.20250908.48.dist-info → pinexq_client-0.9.2.20251028.52.dist-info}/RECORD
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
pinexq_client-0.9.2.
|
|
2
|
-
pinexq_client-0.9.2.
|
|
3
|
-
pinexq_client-0.9.2.
|
|
4
|
-
pinexq_client-0.9.2.
|
|
1
|
+
pinexq_client-0.9.2.20251028.52.dist-info/METADATA,sha256=uB14nOzngBLiBN4bX1yJ0KTiu-ZIjPj5ook9DlQH01o,3311
|
|
2
|
+
pinexq_client-0.9.2.20251028.52.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
|
|
3
|
+
pinexq_client-0.9.2.20251028.52.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
|
4
|
+
pinexq_client-0.9.2.20251028.52.dist-info/licenses/LICENSE,sha256=3oz3tAhM7kOgRukkRe7wmh5T_HihZY77ZtJDJm91ZN8,1072
|
|
5
5
|
pinexq_client/core/__init__.py,sha256=zO9vUuAl6AEokL-SqQO3Jl1qrxFBZPA2kH99VNZugEU,598
|
|
6
6
|
pinexq_client/core/base_relations.py,sha256=oIUS58pkbMDdqm-3YOdsenhL1smtzeAk4fp7-U595MY,162
|
|
7
7
|
pinexq_client/core/enterapi.py,sha256=eB4F2_t3lCbMgKhy-M-Sf_u9MhuJMO7OGh-GB-4Cc-8,731
|
|
@@ -21,7 +21,7 @@ pinexq_client/core/model/error.py,sha256=ZDbUlwsj7d8XPMolSSLTFwgs3RBLvOvgmlEtoBu
|
|
|
21
21
|
pinexq_client/core/model/sirenmodels.py,sha256=vGRQlhM2cSa2caxQel91Jr48KWqM-vMYX32iaQCzIds,5547
|
|
22
22
|
pinexq_client/core/polling.py,sha256=Z6VXn-PCGk4XX-4tQWZG59qJyCIS0eIrpPUORQDIGrs,1077
|
|
23
23
|
pinexq_client/core/sirenaccess.py,sha256=F7eZI5Pz79el0D30SYNGsiS2qWaAZF_jrCrUy-q2GgY,6992
|
|
24
|
-
pinexq_client/job_management/__init__.py,sha256=
|
|
24
|
+
pinexq_client/job_management/__init__.py,sha256=CUngy8DDucxXBVdi4kIUCnU8C2zohs6D8IkLfCkNDPg,598
|
|
25
25
|
pinexq_client/job_management/enterjma.py,sha256=Ivl_jVPw_gaLyU5nKbywM-bbVGpn0MoCrZ0DMbJYf3s,1411
|
|
26
26
|
pinexq_client/job_management/hcos/__init__.py,sha256=TZgs5kuBk3lSBxPfn5ehgbdUgzPy2jn1PC3Ea6VQY-k,584
|
|
27
27
|
pinexq_client/job_management/hcos/entrypoint_hco.py,sha256=qodjAwO_MtawUuhmaYjhGXHV-uW1k94V9gKRYZRkhn4,2234
|
|
@@ -32,7 +32,7 @@ pinexq_client/job_management/hcos/job_query_result_hco.py,sha256=I0G8YIlYDhTahLz
|
|
|
32
32
|
pinexq_client/job_management/hcos/job_used_tags_hco.py,sha256=JKbZerZRway_HU6ujXiBjgP9TlLho1WD0syTmivsZpk,1706
|
|
33
33
|
pinexq_client/job_management/hcos/jobsroot_hco.py,sha256=8ba2vFmTeVcW0GZrtUfyrxWt-OCTtKeGOc-NeCq1Rrg,4971
|
|
34
34
|
pinexq_client/job_management/hcos/output_dataslot_hco.py,sha256=zxpo-fI9eHcp_pMKcf2l-gRoPHX1RzQO53auHMRB_T8,1549
|
|
35
|
-
pinexq_client/job_management/hcos/processing_step_hco.py,sha256=
|
|
35
|
+
pinexq_client/job_management/hcos/processing_step_hco.py,sha256=PjrxsQ9McVyI2AZmyuMaaXvzfa_UHdIvHdBuPbeUlL8,9396
|
|
36
36
|
pinexq_client/job_management/hcos/processing_step_used_tags_hco.py,sha256=K4Ub5FVK5ge8CtUeit9D23MPjQTMTC-X75dS9561oyw,1947
|
|
37
37
|
pinexq_client/job_management/hcos/processingstep_query_result_hco.py,sha256=YcCgigKvOIggILixgaEbmnM23FlkjCgxnhZC2Eh98dY,3817
|
|
38
38
|
pinexq_client/job_management/hcos/processingsteproot_hco.py,sha256=MC7qxNMXwoKtMReSVzYiNqI_2MUdT3gbxoxULyYXU6c,4172
|
|
@@ -43,11 +43,11 @@ pinexq_client/job_management/hcos/workdata_used_tags_query_result_hco.py,sha256=
|
|
|
43
43
|
pinexq_client/job_management/hcos/workdataroot_hco.py,sha256=92Q3J8q28XRL7cw1Ac5F_hl_Y5ZNaZ2gThYLbTIrka0,4441
|
|
44
44
|
pinexq_client/job_management/known_relations.py,sha256=S5vrvihwn4qZrtx8ItxLWH4Sds0MmDNWsa4zP2e_TNk,746
|
|
45
45
|
pinexq_client/job_management/model/__init__.py,sha256=iuAKRXdW_Mxo0i3HsBfEzhJJZUKkNe3qs4gLW-ge1PU,63
|
|
46
|
-
pinexq_client/job_management/model/open_api_generated.py,sha256
|
|
46
|
+
pinexq_client/job_management/model/open_api_generated.py,sha256=UzbJKWi6ecghEQkwbZ50v7FmNX0P9JA1tRmflHJv_QI,37479
|
|
47
47
|
pinexq_client/job_management/model/sirenentities.py,sha256=75ivnSU5OSuocITfluJ5o4o0CZldgtaP5PZqj4LhjJc,3950
|
|
48
48
|
pinexq_client/job_management/tool/__init__.py,sha256=zPobd-hQyANHzC0-TjJG91z9XrewvE54ZJ6VViymW5M,128
|
|
49
49
|
pinexq_client/job_management/tool/job.py,sha256=ILbHfSVSKDbVFw6boWpjHxktotKRPAfGIczIuyHchVM,31005
|
|
50
50
|
pinexq_client/job_management/tool/job_group.py,sha256=TNWw46UDyP2gmArhbzMAqpHa6lS2hzwarLIrxxpOMnk,4822
|
|
51
|
-
pinexq_client/job_management/tool/processing_step.py,sha256
|
|
51
|
+
pinexq_client/job_management/tool/processing_step.py,sha256=pBXKa3w0SSfIxsxi8v3io1FuYYr7zO3Ug3QwPVgnmiM,13413
|
|
52
52
|
pinexq_client/job_management/tool/workdata.py,sha256=E1Qt945tocXiSZuQo2IbTnlgW2VRnq2ODEFQ96lXTDI,6270
|
|
53
|
-
pinexq_client-0.9.2.
|
|
53
|
+
pinexq_client-0.9.2.20251028.52.dist-info/RECORD,,
|
{pinexq_client-0.9.2.20250908.48.dist-info → pinexq_client-0.9.2.20251028.52.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|