wizata-dsapi 1.4.0.dev5__py3-none-any.whl → 1.4.0.dev8__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.
- wizata_dsapi/execution_log.py +12 -11
- wizata_dsapi/version.py +1 -1
- wizata_dsapi/wizata_dsapi_client.py +5 -5
- {wizata_dsapi-1.4.0.dev5.dist-info → wizata_dsapi-1.4.0.dev8.dist-info}/METADATA +1 -1
- {wizata_dsapi-1.4.0.dev5.dist-info → wizata_dsapi-1.4.0.dev8.dist-info}/RECORD +8 -8
- {wizata_dsapi-1.4.0.dev5.dist-info → wizata_dsapi-1.4.0.dev8.dist-info}/WHEEL +0 -0
- {wizata_dsapi-1.4.0.dev5.dist-info → wizata_dsapi-1.4.0.dev8.dist-info}/licenses/LICENSE.txt +0 -0
- {wizata_dsapi-1.4.0.dev5.dist-info → wizata_dsapi-1.4.0.dev8.dist-info}/top_level.txt +0 -0
wizata_dsapi/execution_log.py
CHANGED
|
@@ -5,6 +5,7 @@ from .twin import Twin
|
|
|
5
5
|
from .template import Template
|
|
6
6
|
from .twinregistration import TwinRegistration
|
|
7
7
|
from .execution import ExecutionStatus
|
|
8
|
+
from typing import Optional, Union
|
|
8
9
|
import uuid
|
|
9
10
|
import sys
|
|
10
11
|
import json
|
|
@@ -49,7 +50,7 @@ class ExecutionLog(Dto):
|
|
|
49
50
|
properties = json.loads(properties)
|
|
50
51
|
|
|
51
52
|
return cls(
|
|
52
|
-
execution_id=uuid.UUID(data["id"]) if "id" in data else None,
|
|
53
|
+
execution_id=uuid.UUID(data["id"]) if "id" in data and not isinstance(data["id"], int) else None,
|
|
53
54
|
experiment=data.get("experiment"),
|
|
54
55
|
pipeline=data.get("pipeline") if "pipeline" in data else uuid.UUID(data.get("pipelineId")) if "pipelineId" in data else None,
|
|
55
56
|
template=data.get("template") if "template" in data else uuid.UUID(data.get("templateId")) if "templateId" in data else None,
|
|
@@ -68,11 +69,11 @@ class ExecutionLog(Dto):
|
|
|
68
69
|
|
|
69
70
|
def __init__(self,
|
|
70
71
|
execution_id: uuid.UUID = None,
|
|
71
|
-
experiment: str
|
|
72
|
-
pipeline: str
|
|
73
|
-
twin: str
|
|
74
|
-
template: str
|
|
75
|
-
registration: uuid.UUID
|
|
72
|
+
experiment: Optional[Union[str, uuid.UUID, Experiment]] = None,
|
|
73
|
+
pipeline: Optional[Union[str, uuid.UUID, Pipeline]] = None,
|
|
74
|
+
twin: Optional[Union[str, uuid.UUID, Twin]] = None,
|
|
75
|
+
template: Optional[Union[str, uuid.UUID, Template]] = None,
|
|
76
|
+
registration: Optional[Union[str, uuid.UUID, TwinRegistration]] = None,
|
|
76
77
|
edge_device_id: str = None,
|
|
77
78
|
status: ExecutionStatus = None,
|
|
78
79
|
pipeline_image_id: str = None,
|
|
@@ -148,7 +149,7 @@ class ExecutionLog(Dto):
|
|
|
148
149
|
return self._experiment_id
|
|
149
150
|
|
|
150
151
|
@experiment.setter
|
|
151
|
-
def experiment(self, value: str
|
|
152
|
+
def experiment(self, value: Optional[Union[str, uuid.UUID, Experiment , None]]):
|
|
152
153
|
"""
|
|
153
154
|
set experiment - accept key/uuid or a Experiment
|
|
154
155
|
"""
|
|
@@ -201,7 +202,7 @@ class ExecutionLog(Dto):
|
|
|
201
202
|
return self._pipeline_id
|
|
202
203
|
|
|
203
204
|
@pipeline.setter
|
|
204
|
-
def pipeline(self, value: str
|
|
205
|
+
def pipeline(self, value: Optional[Union[str, uuid.UUID, Pipeline , None]]):
|
|
205
206
|
"""
|
|
206
207
|
set pipeline - accept key/uuid or a Pipeline
|
|
207
208
|
"""
|
|
@@ -254,7 +255,7 @@ class ExecutionLog(Dto):
|
|
|
254
255
|
return self._twin_id
|
|
255
256
|
|
|
256
257
|
@twin.setter
|
|
257
|
-
def twin(self, value: str
|
|
258
|
+
def twin(self, value: Optional[Union[str, uuid.UUID, Twin , None]]):
|
|
258
259
|
"""
|
|
259
260
|
set twin - accept key/uuid or a Twin
|
|
260
261
|
"""
|
|
@@ -307,7 +308,7 @@ class ExecutionLog(Dto):
|
|
|
307
308
|
return self._template_id
|
|
308
309
|
|
|
309
310
|
@template.setter
|
|
310
|
-
def template(self, value: str
|
|
311
|
+
def template(self, value: Optional[Union[str, uuid.UUID, Template , None]]):
|
|
311
312
|
"""
|
|
312
313
|
set template - accept key/uuid or a Template
|
|
313
314
|
"""
|
|
@@ -358,7 +359,7 @@ class ExecutionLog(Dto):
|
|
|
358
359
|
return self._registration_id
|
|
359
360
|
|
|
360
361
|
@registration.setter
|
|
361
|
-
def registration(self, value: uuid.UUID
|
|
362
|
+
def registration(self, value: Optional[Union[str, uuid.UUID, TwinRegistration , None]]):
|
|
362
363
|
"""
|
|
363
364
|
set template - accept uuid or a TwinRegistration
|
|
364
365
|
"""
|
wizata_dsapi/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.4.0.
|
|
1
|
+
__version__ = "1.4.0.dev8"
|
|
@@ -31,6 +31,7 @@ from .mlmodel import ModelInfo, ModelList, ModelFile
|
|
|
31
31
|
from .experiment import Experiment
|
|
32
32
|
from .script import Script
|
|
33
33
|
from .execution import Execution, ExecutionStatus
|
|
34
|
+
from .execution_log import ExecutionLog
|
|
34
35
|
from .dsapi_json_encoder import DSAPIEncoder
|
|
35
36
|
from .group_system import GroupSystem
|
|
36
37
|
from .ds_dataframe import DSDataFrame
|
|
@@ -843,7 +844,7 @@ class WizataDSAPIClient(ApiInterface, ApiDtoInterface):
|
|
|
843
844
|
twin=None,
|
|
844
845
|
mode: str = 'experiment',
|
|
845
846
|
version: str = None,
|
|
846
|
-
) ->
|
|
847
|
+
) -> ExecutionLog:
|
|
847
848
|
"""
|
|
848
849
|
internal function - deprecated - please use experiment() or test_run() instead.
|
|
849
850
|
"""
|
|
@@ -905,8 +906,7 @@ class WizataDSAPIClient(ApiInterface, ApiDtoInterface):
|
|
|
905
906
|
# Parse
|
|
906
907
|
if response.status_code == 200:
|
|
907
908
|
obj = response.json()
|
|
908
|
-
result_execution =
|
|
909
|
-
result_execution.from_json(obj)
|
|
909
|
+
result_execution = ExecutionLog.from_dict(obj)
|
|
910
910
|
if "plots" in obj.keys():
|
|
911
911
|
for plot in obj["plots"]:
|
|
912
912
|
result_execution.plots.append(self.get(Plot(plot_id=plot["id"])))
|
|
@@ -928,7 +928,7 @@ class WizataDSAPIClient(ApiInterface, ApiDtoInterface):
|
|
|
928
928
|
train: bool = True,
|
|
929
929
|
plot: bool = True,
|
|
930
930
|
write: bool = False,
|
|
931
|
-
version: str = None) ->
|
|
931
|
+
version: str = None) -> ExecutionLog:
|
|
932
932
|
"""
|
|
933
933
|
experiment and train models with a pipeline.
|
|
934
934
|
|
|
@@ -974,7 +974,7 @@ class WizataDSAPIClient(ApiInterface, ApiDtoInterface):
|
|
|
974
974
|
train: bool = False,
|
|
975
975
|
plot: bool = False,
|
|
976
976
|
write: bool = True,
|
|
977
|
-
version: str = None) ->
|
|
977
|
+
version: str = None) -> ExecutionLog:
|
|
978
978
|
"""
|
|
979
979
|
run a pipeline.
|
|
980
980
|
|
|
@@ -12,7 +12,7 @@ wizata_dsapi/ds_dataframe.py,sha256=Sk2JRUuTRJzko3HosJnbK34STpgSJUlqxLq8w_E5VM4,
|
|
|
12
12
|
wizata_dsapi/dsapi_json_encoder.py,sha256=_NJE2IncJCS-juOxV_IQWHq8WpaanKe2aWpGNZNUzyk,2062
|
|
13
13
|
wizata_dsapi/evaluation.py,sha256=kB61SD66uRBBbKqiES7XZERn77bwhacbyufneSD4s8c,2222
|
|
14
14
|
wizata_dsapi/execution.py,sha256=JuU8qZDcUZxtCvQwwvM_luwHi18GQ2jbBSxAjc2cSlM,14148
|
|
15
|
-
wizata_dsapi/execution_log.py,sha256=
|
|
15
|
+
wizata_dsapi/execution_log.py,sha256=f6tBrdoD_USznaVd4FlzvcZ311QnbUVoaObRW3lJ4NA,14434
|
|
16
16
|
wizata_dsapi/experiment.py,sha256=QYQ1CJ-MTWsXq08xYbm5sAp95dRxbPOmGDgaAOoBMDQ,4631
|
|
17
17
|
wizata_dsapi/group_system.py,sha256=6rUKe0_J3YWACysyBlzuw_TEpKNXgLOMxhpWsNxOzwY,1708
|
|
18
18
|
wizata_dsapi/ilogger.py,sha256=iYnID-Z-qrYhie26C43404aIuU4_tHSKXbDeQIdo82Q,807
|
|
@@ -32,10 +32,10 @@ wizata_dsapi/template.py,sha256=wtCRKKk3PchH4RrNgNYlEF_9C6bzZwKIeLyEvgv6Fdo,1370
|
|
|
32
32
|
wizata_dsapi/trigger.py,sha256=w3BZYP-L3SUwvaT0oCTanh_Ewn57peZvlt7vxzHv9J8,5129
|
|
33
33
|
wizata_dsapi/twin.py,sha256=S0DUzQf1smZXZTdXpXZPtkZYCfKIhw53EecCnsl9i4Q,11017
|
|
34
34
|
wizata_dsapi/twinregistration.py,sha256=Mi6-YuwroiEXc0c1hgrOaphh4hNVoHupxOnXedVtJtE,13377
|
|
35
|
-
wizata_dsapi/version.py,sha256=
|
|
35
|
+
wizata_dsapi/version.py,sha256=PRRDTaVar8lbgR02pJHefl2c_-V50kpHHvEj_l_aWJQ,27
|
|
36
36
|
wizata_dsapi/wizard_function.py,sha256=RbM7W7Gf-6Rhp_1dU9DBYkHaciknGAGvuAndhAS_vyo,942
|
|
37
37
|
wizata_dsapi/wizard_request.py,sha256=v6BaqKLKvTWmUSo0_gda9FabAQz5x_-GOH1Av50GzFo,3762
|
|
38
|
-
wizata_dsapi/wizata_dsapi_client.py,sha256=
|
|
38
|
+
wizata_dsapi/wizata_dsapi_client.py,sha256=o-YMZzEXTglrU3dPR0FDQ3CZeiKVruVfzMM4vIFPxJk,85057
|
|
39
39
|
wizata_dsapi/words.py,sha256=tV8CqzCqODZCV7PgBxBF5exBxeF_ya9t5DiUy-cg6Sg,1535
|
|
40
40
|
wizata_dsapi/models/__init__.py,sha256=O5PHqw8lKILw4apO-MfDxPz73wK0vADD9y3xjuzX7Tw,104
|
|
41
41
|
wizata_dsapi/models/common.py,sha256=1dTqE80-mFJnUwEdNlJdhJzfZ2N5Kp8Nb3LQ8uwPtLc,3808
|
|
@@ -43,8 +43,8 @@ wizata_dsapi/plots/__init__.py,sha256=qgnSFqrjOPur-807M8uh5awIfjM1ZHXUXcAqHc-r2l
|
|
|
43
43
|
wizata_dsapi/plots/common.py,sha256=jdPsJqLHBwSKc6dX83BSGPqSRxzIVNHSYO5yI_8sjGk,6568
|
|
44
44
|
wizata_dsapi/scripts/__init__.py,sha256=hAxiETSQf0qOHde1si1tEAJU48seqEgHrchCzS2-LvQ,80
|
|
45
45
|
wizata_dsapi/scripts/common.py,sha256=efwq-Rd0lvYljIs3gSFz9izogBD7asOU2cTK-IvHTkM,4244
|
|
46
|
-
wizata_dsapi-1.4.0.
|
|
47
|
-
wizata_dsapi-1.4.0.
|
|
48
|
-
wizata_dsapi-1.4.0.
|
|
49
|
-
wizata_dsapi-1.4.0.
|
|
50
|
-
wizata_dsapi-1.4.0.
|
|
46
|
+
wizata_dsapi-1.4.0.dev8.dist-info/licenses/LICENSE.txt,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
|
|
47
|
+
wizata_dsapi-1.4.0.dev8.dist-info/METADATA,sha256=I38eqia7S97qkUrNDhdlOcAC075LnvebFAtJd4JZXJs,4959
|
|
48
|
+
wizata_dsapi-1.4.0.dev8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
49
|
+
wizata_dsapi-1.4.0.dev8.dist-info/top_level.txt,sha256=-OeTJbEnh5DuWyTOHtvw0Dw3LRg3G27TNS6W4ZtfwPs,13
|
|
50
|
+
wizata_dsapi-1.4.0.dev8.dist-info/RECORD,,
|
|
File without changes
|
{wizata_dsapi-1.4.0.dev5.dist-info → wizata_dsapi-1.4.0.dev8.dist-info}/licenses/LICENSE.txt
RENAMED
|
File without changes
|
|
File without changes
|