pinexq-client 0.10.6rc1__py3-none-any.whl → 1.1.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 +23 -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 +23 -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 +17 -16
- 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 +120 -96
- {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.1.0.dist-info}/METADATA +10 -10
- pinexq_client-1.1.0.dist-info/RECORD +52 -0
- {pinexq_client-0.10.6rc1.dist-info → pinexq_client-1.1.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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# generated by datamodel-codegen:
|
|
2
2
|
# filename: openapi.json
|
|
3
|
-
# timestamp: 2026-01-
|
|
3
|
+
# timestamp: 2026-01-28T11:09:12+00:00
|
|
4
4
|
|
|
5
5
|
from __future__ import annotations
|
|
6
6
|
|
|
@@ -508,6 +508,17 @@ class SuspendAllDeploymentsParameters(BaseModel):
|
|
|
508
508
|
suspension_type: DeploymentSuspensionTypes = Field(..., alias='SuspensionType')
|
|
509
509
|
|
|
510
510
|
|
|
511
|
+
class TagValueTypes(StrEnum):
|
|
512
|
+
key_only = 'KeyOnly'
|
|
513
|
+
string = 'String'
|
|
514
|
+
integer = 'Integer'
|
|
515
|
+
float = 'Float'
|
|
516
|
+
boolean = 'Boolean'
|
|
517
|
+
date = 'Date'
|
|
518
|
+
time = 'Time'
|
|
519
|
+
timestamp = 'Timestamp'
|
|
520
|
+
|
|
521
|
+
|
|
511
522
|
class UserHtoOpenApiProperties(BaseModel):
|
|
512
523
|
model_config = ConfigDict(
|
|
513
524
|
extra='allow',
|
|
@@ -807,29 +818,6 @@ class JobFilterParameter(BaseModel):
|
|
|
807
818
|
)
|
|
808
819
|
|
|
809
820
|
|
|
810
|
-
class JobHtoOpenApiProperties(BaseModel):
|
|
811
|
-
model_config = ConfigDict(
|
|
812
|
-
extra='allow',
|
|
813
|
-
populate_by_name=True,
|
|
814
|
-
)
|
|
815
|
-
name: str | None = Field(None, alias='Name')
|
|
816
|
-
owner_id: str | None = Field(
|
|
817
|
-
None, alias='OwnerId', description='The owner of this resource'
|
|
818
|
-
)
|
|
819
|
-
created_by: str | None = Field(None, alias='CreatedBy')
|
|
820
|
-
state: JobStates | None = Field(None, alias='State')
|
|
821
|
-
tags: List[str] | None = Field(None, alias='Tags')
|
|
822
|
-
hidden: bool | None = Field(None, alias='Hidden')
|
|
823
|
-
output_is_deletable: bool | None = Field(None, alias='OutputIsDeletable')
|
|
824
|
-
created_at: AwareDatetime | None = Field(None, alias='CreatedAt')
|
|
825
|
-
started_at: AwareDatetime | None = Field(None, alias='StartedAt')
|
|
826
|
-
completed_at: AwareDatetime | None = Field(None, alias='CompletedAt')
|
|
827
|
-
error_description: str | None = Field(None, alias='ErrorDescription')
|
|
828
|
-
processing: ProcessingView | None = Field(None, alias='Processing')
|
|
829
|
-
result: str | None = Field(None, alias='Result')
|
|
830
|
-
configured_parameters: str | None = Field(None, alias='ConfiguredParameters')
|
|
831
|
-
|
|
832
|
-
|
|
833
821
|
class JobQueryResultHtoOpenApi(BaseModel):
|
|
834
822
|
model_config = ConfigDict(
|
|
835
823
|
extra='allow',
|
|
@@ -908,64 +896,6 @@ class ProcessingStepDeploymentHto(BaseModel):
|
|
|
908
896
|
entrypoint: str | None = Field(None, alias='Entrypoint')
|
|
909
897
|
|
|
910
898
|
|
|
911
|
-
class ProcessingStepHtoOpenApiProperties(BaseModel):
|
|
912
|
-
model_config = ConfigDict(
|
|
913
|
-
extra='allow',
|
|
914
|
-
populate_by_name=True,
|
|
915
|
-
)
|
|
916
|
-
title: str | None = Field(None, alias='Title')
|
|
917
|
-
owner_id: str | None = Field(
|
|
918
|
-
None, alias='OwnerId', description='The owner of this resource'
|
|
919
|
-
)
|
|
920
|
-
created_by: str | None = Field(
|
|
921
|
-
None, alias='CreatedBy', description='The creator of this resource'
|
|
922
|
-
)
|
|
923
|
-
version: str | None = Field(
|
|
924
|
-
None, alias='Version', description='Version of the algorithm. Default = "0"'
|
|
925
|
-
)
|
|
926
|
-
function_name: str | None = Field(
|
|
927
|
-
None,
|
|
928
|
-
alias='FunctionName',
|
|
929
|
-
description='Unique name (possibly human-readable) for the function so that it can be identified',
|
|
930
|
-
)
|
|
931
|
-
short_description: str | None = Field(
|
|
932
|
-
None, alias='ShortDescription', description='Human-readable short description'
|
|
933
|
-
)
|
|
934
|
-
long_description: str | None = Field(
|
|
935
|
-
None, alias='LongDescription', description='Human-readable long description'
|
|
936
|
-
)
|
|
937
|
-
pro_con_version: str | None = Field(
|
|
938
|
-
None,
|
|
939
|
-
alias='ProConVersion',
|
|
940
|
-
description='The version of ProCon used in the code which generated the manifest',
|
|
941
|
-
)
|
|
942
|
-
code_hash: str | None = Field(
|
|
943
|
-
None,
|
|
944
|
-
alias='CodeHash',
|
|
945
|
-
description='The hash of the code executing this function. This is intended to inhibit\r\nredeployment of different code for the same function version.',
|
|
946
|
-
)
|
|
947
|
-
has_parameters: bool | None = Field(None, alias='HasParameters')
|
|
948
|
-
is_public: bool | None = Field(None, alias='IsPublic')
|
|
949
|
-
tags: List[str] | None = Field(None, alias='Tags')
|
|
950
|
-
hidden: bool | None = Field(None, alias='Hidden')
|
|
951
|
-
is_deprecated: bool | None = Field(None, alias='IsDeprecated')
|
|
952
|
-
deprecated_at: AwareDatetime | None = Field(None, alias='DeprecatedAt')
|
|
953
|
-
reason_for_deprecation: str | None = Field(None, alias='ReasonForDeprecation')
|
|
954
|
-
created_at: AwareDatetime | None = Field(None, alias='CreatedAt')
|
|
955
|
-
last_modified_at: AwareDatetime | None = Field(None, alias='LastModifiedAt')
|
|
956
|
-
parameter_schema: str | None = Field(None, alias='ParameterSchema')
|
|
957
|
-
default_parameters: str | None = Field(None, alias='DefaultParameters')
|
|
958
|
-
return_schema: str | None = Field(None, alias='ReturnSchema')
|
|
959
|
-
input_data_slot_specification: List[DataSpecificationHto] | None = Field(
|
|
960
|
-
None, alias='InputDataSlotSpecification'
|
|
961
|
-
)
|
|
962
|
-
output_data_slot_specification: List[DataSpecificationHto] | None = Field(
|
|
963
|
-
None, alias='OutputDataSlotSpecification'
|
|
964
|
-
)
|
|
965
|
-
deployment_state: DeploymentStates | None = Field(None, alias='DeploymentState')
|
|
966
|
-
deployment: ProcessingStepDeploymentHto | None = Field(None, alias='Deployment')
|
|
967
|
-
|
|
968
|
-
|
|
969
899
|
class ProcessingStepQueryResultHtoOpenApi(BaseModel):
|
|
970
900
|
model_config = ConfigDict(
|
|
971
901
|
extra='allow',
|
|
@@ -1029,6 +959,16 @@ class ProcessingStepUsedTagsHtoOpenApi(BaseModel):
|
|
|
1029
959
|
links: List[Link] | None = None
|
|
1030
960
|
|
|
1031
961
|
|
|
962
|
+
class TagDetailsHto(BaseModel):
|
|
963
|
+
model_config = ConfigDict(
|
|
964
|
+
extra='allow',
|
|
965
|
+
populate_by_name=True,
|
|
966
|
+
)
|
|
967
|
+
key: str | None = Field(None, alias='Key')
|
|
968
|
+
value: str | None = Field(None, alias='Value')
|
|
969
|
+
type: TagValueTypes | None = Field(None, alias='Type')
|
|
970
|
+
|
|
971
|
+
|
|
1032
972
|
class UserHtoOpenApi(BaseModel):
|
|
1033
973
|
model_config = ConfigDict(
|
|
1034
974
|
extra='allow',
|
|
@@ -1079,6 +1019,7 @@ class WorkDataHtoOpenApiProperties(BaseModel):
|
|
|
1079
1019
|
created_at: AwareDatetime | None = Field(None, alias='CreatedAt')
|
|
1080
1020
|
size_in_bytes: int | None = Field(None, alias='SizeInBytes')
|
|
1081
1021
|
tags: List[str] | None = Field(None, alias='Tags')
|
|
1022
|
+
tag_details: List[TagDetailsHto] | None = Field(None, alias='TagDetails')
|
|
1082
1023
|
media_type: str | None = Field(None, alias='MediaType')
|
|
1083
1024
|
kind: WorkDataKind | None = Field(None, alias='Kind')
|
|
1084
1025
|
is_deletable: bool | None = Field(None, alias='IsDeletable')
|
|
@@ -1174,17 +1115,28 @@ class AdminProcessingStepQueryParameters(BaseModel):
|
|
|
1174
1115
|
include_remaining_tags: bool | None = Field(None, alias='IncludeRemainingTags')
|
|
1175
1116
|
|
|
1176
1117
|
|
|
1177
|
-
class
|
|
1118
|
+
class JobHtoOpenApiProperties(BaseModel):
|
|
1178
1119
|
model_config = ConfigDict(
|
|
1179
1120
|
extra='allow',
|
|
1180
1121
|
populate_by_name=True,
|
|
1181
1122
|
)
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1123
|
+
name: str | None = Field(None, alias='Name')
|
|
1124
|
+
owner_id: str | None = Field(
|
|
1125
|
+
None, alias='OwnerId', description='The owner of this resource'
|
|
1126
|
+
)
|
|
1127
|
+
created_by: str | None = Field(None, alias='CreatedBy')
|
|
1128
|
+
state: JobStates | None = Field(None, alias='State')
|
|
1129
|
+
tags: List[str] | None = Field(None, alias='Tags')
|
|
1130
|
+
tag_details: List[TagDetailsHto] | None = Field(None, alias='TagDetails')
|
|
1131
|
+
hidden: bool | None = Field(None, alias='Hidden')
|
|
1132
|
+
output_is_deletable: bool | None = Field(None, alias='OutputIsDeletable')
|
|
1133
|
+
created_at: AwareDatetime | None = Field(None, alias='CreatedAt')
|
|
1134
|
+
started_at: AwareDatetime | None = Field(None, alias='StartedAt')
|
|
1135
|
+
completed_at: AwareDatetime | None = Field(None, alias='CompletedAt')
|
|
1136
|
+
error_description: str | None = Field(None, alias='ErrorDescription')
|
|
1137
|
+
processing: ProcessingView | None = Field(None, alias='Processing')
|
|
1138
|
+
result: str | None = Field(None, alias='Result')
|
|
1139
|
+
configured_parameters: str | None = Field(None, alias='ConfiguredParameters')
|
|
1188
1140
|
|
|
1189
1141
|
|
|
1190
1142
|
class JobQueryParameters(BaseModel):
|
|
@@ -1198,17 +1150,63 @@ class JobQueryParameters(BaseModel):
|
|
|
1198
1150
|
include_remaining_tags: bool | None = Field(None, alias='IncludeRemainingTags')
|
|
1199
1151
|
|
|
1200
1152
|
|
|
1201
|
-
class
|
|
1153
|
+
class ProcessingStepHtoOpenApiProperties(BaseModel):
|
|
1202
1154
|
model_config = ConfigDict(
|
|
1203
1155
|
extra='allow',
|
|
1204
1156
|
populate_by_name=True,
|
|
1205
1157
|
)
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1158
|
+
title: str | None = Field(None, alias='Title')
|
|
1159
|
+
owner_id: str | None = Field(
|
|
1160
|
+
None, alias='OwnerId', description='The owner of this resource'
|
|
1161
|
+
)
|
|
1162
|
+
created_by: str | None = Field(
|
|
1163
|
+
None, alias='CreatedBy', description='The creator of this resource'
|
|
1164
|
+
)
|
|
1165
|
+
version: str | None = Field(
|
|
1166
|
+
None, alias='Version', description='Version of the algorithm. Default = "0"'
|
|
1167
|
+
)
|
|
1168
|
+
function_name: str | None = Field(
|
|
1169
|
+
None,
|
|
1170
|
+
alias='FunctionName',
|
|
1171
|
+
description='Unique name (possibly human-readable) for the function so that it can be identified',
|
|
1172
|
+
)
|
|
1173
|
+
short_description: str | None = Field(
|
|
1174
|
+
None, alias='ShortDescription', description='Human-readable short description'
|
|
1175
|
+
)
|
|
1176
|
+
long_description: str | None = Field(
|
|
1177
|
+
None, alias='LongDescription', description='Human-readable long description'
|
|
1178
|
+
)
|
|
1179
|
+
pro_con_version: str | None = Field(
|
|
1180
|
+
None,
|
|
1181
|
+
alias='ProConVersion',
|
|
1182
|
+
description='The version of ProCon used in the code which generated the manifest',
|
|
1183
|
+
)
|
|
1184
|
+
code_hash: str | None = Field(
|
|
1185
|
+
None,
|
|
1186
|
+
alias='CodeHash',
|
|
1187
|
+
description='The hash of the code executing this function. This is intended to inhibit\r\nredeployment of different code for the same function version.',
|
|
1188
|
+
)
|
|
1189
|
+
has_parameters: bool | None = Field(None, alias='HasParameters')
|
|
1190
|
+
is_public: bool | None = Field(None, alias='IsPublic')
|
|
1191
|
+
tags: List[str] | None = Field(None, alias='Tags')
|
|
1192
|
+
tag_details: List[TagDetailsHto] | None = Field(None, alias='TagDetails')
|
|
1193
|
+
hidden: bool | None = Field(None, alias='Hidden')
|
|
1194
|
+
is_deprecated: bool | None = Field(None, alias='IsDeprecated')
|
|
1195
|
+
deprecated_at: AwareDatetime | None = Field(None, alias='DeprecatedAt')
|
|
1196
|
+
reason_for_deprecation: str | None = Field(None, alias='ReasonForDeprecation')
|
|
1197
|
+
created_at: AwareDatetime | None = Field(None, alias='CreatedAt')
|
|
1198
|
+
last_modified_at: AwareDatetime | None = Field(None, alias='LastModifiedAt')
|
|
1199
|
+
parameter_schema: str | None = Field(None, alias='ParameterSchema')
|
|
1200
|
+
default_parameters: str | None = Field(None, alias='DefaultParameters')
|
|
1201
|
+
return_schema: str | None = Field(None, alias='ReturnSchema')
|
|
1202
|
+
input_data_slot_specification: List[DataSpecificationHto] | None = Field(
|
|
1203
|
+
None, alias='InputDataSlotSpecification'
|
|
1204
|
+
)
|
|
1205
|
+
output_data_slot_specification: List[DataSpecificationHto] | None = Field(
|
|
1206
|
+
None, alias='OutputDataSlotSpecification'
|
|
1207
|
+
)
|
|
1208
|
+
deployment_state: DeploymentStates | None = Field(None, alias='DeploymentState')
|
|
1209
|
+
deployment: ProcessingStepDeploymentHto | None = Field(None, alias='Deployment')
|
|
1212
1210
|
|
|
1213
1211
|
|
|
1214
1212
|
class ProcessingStepQueryParameters(BaseModel):
|
|
@@ -1235,3 +1233,29 @@ class WorkDataHtoOpenApi(BaseModel):
|
|
|
1235
1233
|
entities: List[Any] | None = None
|
|
1236
1234
|
actions: List[Action] | None = None
|
|
1237
1235
|
links: List[Link] | None = None
|
|
1236
|
+
|
|
1237
|
+
|
|
1238
|
+
class JobHtoOpenApi(BaseModel):
|
|
1239
|
+
model_config = ConfigDict(
|
|
1240
|
+
extra='allow',
|
|
1241
|
+
populate_by_name=True,
|
|
1242
|
+
)
|
|
1243
|
+
class_: List[str] | None = Field(None, alias='class')
|
|
1244
|
+
title: str | None = None
|
|
1245
|
+
properties: JobHtoOpenApiProperties | None = None
|
|
1246
|
+
entities: List[Any] | None = None
|
|
1247
|
+
actions: List[Action] | None = None
|
|
1248
|
+
links: List[Link] | None = None
|
|
1249
|
+
|
|
1250
|
+
|
|
1251
|
+
class ProcessingStepHtoOpenApi(BaseModel):
|
|
1252
|
+
model_config = ConfigDict(
|
|
1253
|
+
extra='allow',
|
|
1254
|
+
populate_by_name=True,
|
|
1255
|
+
)
|
|
1256
|
+
class_: List[str] | None = Field(None, alias='class')
|
|
1257
|
+
title: str | None = None
|
|
1258
|
+
properties: ProcessingStepHtoOpenApiProperties | None = None
|
|
1259
|
+
entities: List[Any] | None = None
|
|
1260
|
+
actions: List[Action] | None = None
|
|
1261
|
+
links: List[Link] | None = None
|
|
@@ -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:
|
|
3
|
+
Version: 1.1.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
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
pinexq/client/core/__init__.py,sha256=zO9vUuAl6AEokL-SqQO3Jl1qrxFBZPA2kH99VNZugEU,598
|
|
2
|
+
pinexq/client/core/api_event_manager.py,sha256=CK7A1V1m_54MgW18qUhzxorEqJvDzYFJtKfVlnrMXEw,5335
|
|
3
|
+
pinexq/client/core/base_relations.py,sha256=oIUS58pkbMDdqm-3YOdsenhL1smtzeAk4fp7-U595MY,162
|
|
4
|
+
pinexq/client/core/enterapi.py,sha256=B-YMvJTqhgFkw6pNMXJNiTZbjHNP-avWq9c2njaGeXI,679
|
|
5
|
+
pinexq/client/core/exceptions.py,sha256=9zQU4Hgm6PDI_78RlLDvlaeo_Oa2TXT8HyPN4Qg4_Iw,2210
|
|
6
|
+
pinexq/client/core/hco/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
|
+
pinexq/client/core/hco/action_hco.py,sha256=0nlT4JDZh3pPrXejNdRYxqpnq1VVDLLUbLnq6bwZhpQ,2492
|
|
8
|
+
pinexq/client/core/hco/action_with_parameters_hco.py,sha256=IrOrtrvi_xXelYTSoqYjVXEwTwbKxMGGKkQjsoNSCTI,3246
|
|
9
|
+
pinexq/client/core/hco/download_link_hco.py,sha256=8gZtK-Yxj3O2bLeALkkUQRTPsJwUn-X5V6b8Vs8mXxk,1302
|
|
10
|
+
pinexq/client/core/hco/hco_base.py,sha256=zyT4YYcD2uquhV4McwqlWM7fwmnW2jQIg4YtarG0tjA,3518
|
|
11
|
+
pinexq/client/core/hco/link_hco.py,sha256=7hMIpTzVhD-jcWief2Nwrn-Fy6PK_Soraqk1fCCvqx8,3755
|
|
12
|
+
pinexq/client/core/hco/unavailable.py,sha256=-79mASXmzcX53LL9dZ4RUi-lBTvQU2KDQdz9xHNatek,1004
|
|
13
|
+
pinexq/client/core/hco/upload_action_hco.py,sha256=pIShhlx12jRUamWr3q14v64z-lQoJaYLyxiaj-Z6JFY,4634
|
|
14
|
+
pinexq/client/core/http_headers.py,sha256=tY4h3DKVDMkjw9DLFn57HdEnwR1NAixMF8Yjgy3gjQY,183
|
|
15
|
+
pinexq/client/core/media_types.py,sha256=GhrTEXqIb4vAM9Bl-i3WybYiL3T_Uy1Eu6hvLN7Oexc,745
|
|
16
|
+
pinexq/client/core/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
|
+
pinexq/client/core/model/error.py,sha256=ZDbUlwsj7d8XPMolSSLTFwgs3RBLvOvgmlEtoBuon5Y,418
|
|
18
|
+
pinexq/client/core/model/sirenmodels.py,sha256=vGRQlhM2cSa2caxQel91Jr48KWqM-vMYX32iaQCzIds,5547
|
|
19
|
+
pinexq/client/core/polling.py,sha256=nNEDONEkB3Gu5WUMm2u9RFG1OIclnixaiy7l_U2Z4No,1146
|
|
20
|
+
pinexq/client/core/sirenaccess.py,sha256=F7eZI5Pz79el0D30SYNGsiS2qWaAZF_jrCrUy-q2GgY,6992
|
|
21
|
+
pinexq/client/job_management/__init__.py,sha256=8Q-qq_yIDFFDcb4GybEnEXKhyGfFRoI62zAuj-ios7s,598
|
|
22
|
+
pinexq/client/job_management/enterjma.py,sha256=N_jNM2UhQmWL8e-xBrTHbjZzP7WkX98MyFuKsYgD-XQ,3252
|
|
23
|
+
pinexq/client/job_management/hcos/__init__.py,sha256=TZgs5kuBk3lSBxPfn5ehgbdUgzPy2jn1PC3Ea6VQY-k,584
|
|
24
|
+
pinexq/client/job_management/hcos/entrypoint_hco.py,sha256=omFPggY7XGRWI5ogR85I7BHUi5o6OBnLyMggYh76JEg,2204
|
|
25
|
+
pinexq/client/job_management/hcos/info_hco.py,sha256=iJRjPfb1p4EXqSJA0xSRPxwEpAjquwEOuxHcUICQioI,2013
|
|
26
|
+
pinexq/client/job_management/hcos/input_dataslot_hco.py,sha256=CBw-FND7aUOUquXi3u09KK-BidZ3ChrmLy1pE-jmdvI,3590
|
|
27
|
+
pinexq/client/job_management/hcos/job_hco.py,sha256=3XRu5gu31Jq68ljRffFq2vF9uYq-Hb9mCFeikUafhLQ,8836
|
|
28
|
+
pinexq/client/job_management/hcos/job_query_result_hco.py,sha256=52fIrEKS7mVzEt8Ugg1_xP7O2NptCy_v-v6F5h8CXDE,3795
|
|
29
|
+
pinexq/client/job_management/hcos/job_used_tags_hco.py,sha256=BGNGOQE33zW8AhYG8tVn1O4nExetBrKCXzCPfe73W1w,1603
|
|
30
|
+
pinexq/client/job_management/hcos/jobsroot_hco.py,sha256=sKapT6tO7-q0P2bwpoPAH8kIugwYOJeB4IF7nQBFdJI,4716
|
|
31
|
+
pinexq/client/job_management/hcos/output_dataslot_hco.py,sha256=nwS5bY5bCZtvFWgDELCUlTxpa6qdDCD1LM2LoDlmNuM,1475
|
|
32
|
+
pinexq/client/job_management/hcos/processing_step_hco.py,sha256=0zaRcp23GH0nhtc_nzHukmE5tinIg-ObPL1zgf6_eZM,12267
|
|
33
|
+
pinexq/client/job_management/hcos/processing_step_used_tags_hco.py,sha256=zsed5d04FpZNacZW9l4x-kflWpl1_thGAJfIsWO0co0,1844
|
|
34
|
+
pinexq/client/job_management/hcos/processingstep_query_result_hco.py,sha256=1TMTfxEucryTPzQl4UZcgJb8Ro-9j9lqo2OMlM_hV6Q,4132
|
|
35
|
+
pinexq/client/job_management/hcos/processingsteproot_hco.py,sha256=O9e9Vj4cAc5qiT7RYEXsRLggKIfN8n4eUr-847cZRvk,4041
|
|
36
|
+
pinexq/client/job_management/hcos/user_hco.py,sha256=qihX1lRbedj37shrzYTjdQPgL_giuSRCLhoUqtq1chs,1019
|
|
37
|
+
pinexq/client/job_management/hcos/workdata_hco.py,sha256=fnLOgFpUeqUbC4t9hc39qbM1IEIUyx8CWeBJGNrdzts,7046
|
|
38
|
+
pinexq/client/job_management/hcos/workdata_query_result_hco.py,sha256=wgFm5SmgSnj9KbvxkPFYYBWnLANQRkf9IdoA-Yvfohs,3766
|
|
39
|
+
pinexq/client/job_management/hcos/workdata_used_tags_query_result_hco.py,sha256=uIDB7admcEe81lhWBp0KOuM2Ric7caD7Em6r41Rm9ps,1888
|
|
40
|
+
pinexq/client/job_management/hcos/workdataroot_hco.py,sha256=WRAFihgbyxJBrGKEhAzQwds57G_WndoS0EAW1AZ38tU,4221
|
|
41
|
+
pinexq/client/job_management/known_relations.py,sha256=do-u2wjb6u_HK2-y604f2gs3rk9O19MTIZpvbkfTSpA,905
|
|
42
|
+
pinexq/client/job_management/model/__init__.py,sha256=iuAKRXdW_Mxo0i3HsBfEzhJJZUKkNe3qs4gLW-ge1PU,63
|
|
43
|
+
pinexq/client/job_management/model/open_api_generated.py,sha256=IVBfhLgDi4axgaXr7iQvFPbTBRBQBsWiS7ITDyRnpkA,41498
|
|
44
|
+
pinexq/client/job_management/model/sirenentities.py,sha256=E29Z2MSAYIO1RYvOW_rDpzUHZUMNMioQd_-k_S4KnbQ,3958
|
|
45
|
+
pinexq/client/job_management/tool/__init__.py,sha256=zPobd-hQyANHzC0-TjJG91z9XrewvE54ZJ6VViymW5M,128
|
|
46
|
+
pinexq/client/job_management/tool/job.py,sha256=w81-WVVjrdg4wNaQ1yoCqJLIvvcLAhCYi-gX4at70WY,34688
|
|
47
|
+
pinexq/client/job_management/tool/job_group.py,sha256=ZFUHTk6j3oZOD52D6SOsREdBm5hVn9iUhLykrN_Ghes,11117
|
|
48
|
+
pinexq/client/job_management/tool/processing_step.py,sha256=vlByzSHNY-f_QwP3O__qKCBuI7QhQiY-G0pkhUC7aJ4,15595
|
|
49
|
+
pinexq/client/job_management/tool/workdata.py,sha256=eDzinv70fa76xP0LjugGzicl8GxkQ6Ozq8rz-c4k5IU,6080
|
|
50
|
+
pinexq_client-1.1.0.dist-info/WHEEL,sha256=fAguSjoiATBe7TNBkJwOjyL1Tt4wwiaQGtNtjRPNMQA,80
|
|
51
|
+
pinexq_client-1.1.0.dist-info/METADATA,sha256=xeNcvqcRZkk83Un_haYkcBbWbbiqcZ4glZ7oEOrXBL8,3459
|
|
52
|
+
pinexq_client-1.1.0.dist-info/RECORD,,
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
from abc import ABC, ABCMeta, abstractmethod
|
|
2
|
-
|
|
3
|
-
from pinexq_client.core import NotAvailableException
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class HypermediaAvailability(ABC):
|
|
7
|
-
def __bool__(self) -> bool:
|
|
8
|
-
return self.is_available()
|
|
9
|
-
|
|
10
|
-
@staticmethod
|
|
11
|
-
@abstractmethod
|
|
12
|
-
def is_available() -> bool:
|
|
13
|
-
...
|
|
14
|
-
|
|
15
|
-
class UnavailableAction(HypermediaAvailability):
|
|
16
|
-
"""This class is used to represent an action that is not available. It is used to avoid None
|
|
17
|
-
checks in the code."""
|
|
18
|
-
|
|
19
|
-
def execute(self, *args, **kwargs):
|
|
20
|
-
raise NotAvailableException(f"Error while executing action: action is not available")
|
|
21
|
-
|
|
22
|
-
@staticmethod
|
|
23
|
-
def is_available() -> bool:
|
|
24
|
-
return False
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
class UnavailableLink(HypermediaAvailability):
|
|
28
|
-
"""This class is used to represent a link that is not available. It is used to avoid None
|
|
29
|
-
checks in the code."""
|
|
30
|
-
|
|
31
|
-
def navigate(self):
|
|
32
|
-
raise NotAvailableException(f"Error while navigating: link is not available")
|
|
33
|
-
|
|
34
|
-
@staticmethod
|
|
35
|
-
def is_available() -> bool:
|
|
36
|
-
return False
|