wizata-dsapi 1.4.0.dev8__py3-none-any.whl → 1.4.0.dev10__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/context.py CHANGED
@@ -4,6 +4,7 @@ import numpy as np
4
4
  import io
5
5
  import json
6
6
  import pickle
7
+ import logging
7
8
 
8
9
  from .mlmodel import ModelInfo, ModelFile
9
10
  from .plot import Plot
@@ -97,7 +98,7 @@ class Context(ILogger):
97
98
  self._api = None
98
99
  self.dataframe = dataframe
99
100
 
100
- def write_log(self, message: str, level: int = 7):
101
+ def write_log(self, message: str = None, level: int = logging.INFO):
101
102
  """
102
103
  write log in console (only in experiment mode) - if running locally it will print in the console.
103
104
  :param message: message to write.
@@ -52,9 +52,9 @@ class ExecutionLog(Dto):
52
52
  return cls(
53
53
  execution_id=uuid.UUID(data["id"]) if "id" in data and not isinstance(data["id"], int) else None,
54
54
  experiment=data.get("experiment"),
55
- pipeline=data.get("pipeline") if "pipeline" in data else uuid.UUID(data.get("pipelineId")) if "pipelineId" in data else None,
56
- template=data.get("template") if "template" in data else uuid.UUID(data.get("templateId")) if "templateId" in data else None,
57
- twin=data.get("twin") if "twin" in data else uuid.UUID(data.get("twinId")) if "twinId" in data else None,
55
+ pipeline=data.get("pipeline") if "pipeline" in data and data["pipeline"] is not None else uuid.UUID(data.get("pipelineId")) if "pipelineId" in data and data["pipelineId"] is not None else None,
56
+ template=data.get("template") if "template" in data and data["template"] is not None else uuid.UUID(data.get("templateId")) if "templateId" in data and data["templateId"] is not None else None,
57
+ twin=data.get("twin") if "twin" in data and data["twin"] is not None else uuid.UUID(data.get("twinId")) if "twinId" in data and data["twinId"] is not None else None,
58
58
  edge_device_id=data.get("edgeDeviceId"),
59
59
  status=ExecutionStatus(str(data["status"])) if "status" in data else None,
60
60
  pipeline_image_id=data.get("pipelineImageId"),
wizata_dsapi/ilogger.py CHANGED
@@ -1,4 +1,5 @@
1
- from .execution import Execution, ExecutionStepLog
1
+ from .execution_log import ExecutionLog
2
+ import logging
2
3
 
3
4
 
4
5
  class ILogger:
@@ -6,24 +7,16 @@ class ILogger:
6
7
  logger interface used within a pipeline and context.
7
8
  """
8
9
 
9
- def write_log(self, message: str, level: int = 7):
10
+ def write_log(self, message: str = None, level: int = logging.INFO):
10
11
  """
11
12
  write a log
12
13
  :param str message: message to write.
13
- :param int level: from 1 critical to 7 verbose.
14
+ :param int level: use logging level.
14
15
  """
15
16
  pass
16
17
 
17
- def notify_step(self, step_log: ExecutionStepLog):
18
+ def notify(self):
18
19
  """
19
- notify the listeners and watchers on current step status.
20
- :param wizata_dsapi.ExecutionStepLog step_log: step log.
21
- """
22
- pass
23
-
24
- def notify_execution(self, execution: Execution):
25
- """
26
- notify the listeners and watchers on current execution status.
27
- :param wizata_dsapi.Execution execution: execution log.
20
+ notify the listeners and watchers on current status.
28
21
  """
29
22
  pass
wizata_dsapi/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "1.4.0.dev8"
1
+ __version__ = "1.4.0.dev10"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wizata_dsapi
3
- Version: 1.4.0.dev8
3
+ Version: 1.4.0.dev10
4
4
  Summary: Wizata Data Science Toolkit
5
5
  Author: Wizata S.A.
6
6
  Author-email: info@wizata.com
@@ -4,7 +4,7 @@ wizata_dsapi/api_dto.py,sha256=mguQMqsshL4uNFt_RlZTD5zeKDBpFpa2nJP91ZtqaoA,2700
4
4
  wizata_dsapi/api_interface.py,sha256=ju3Wz1e2uOS1_SrSihc0AECkWLRNNGHMhpMhV2L6tjo,13315
5
5
  wizata_dsapi/bucket.py,sha256=Zz9olv-pymikAutGitSuGWrAPiawOTW86JDDHG4ugTc,1150
6
6
  wizata_dsapi/business_label.py,sha256=u0TVfUNfoR9qSv8lzpf6rNjlg3G9xTiz6itefcKfeak,4151
7
- wizata_dsapi/context.py,sha256=SNlEOELJe2455fdN6F12xu_z5cyINjmC4jAjKZUNvHM,12563
7
+ wizata_dsapi/context.py,sha256=T45HsUTJUIKUSB6AU_ubuz60dIY2m5ebUQ_EchfF2co,12596
8
8
  wizata_dsapi/dataframe_toolkit.py,sha256=7D8JrhsFSGXeO3mRAd2e2cLmdjbXRjk04IuaMG8F974,9078
9
9
  wizata_dsapi/datapoint.py,sha256=UUatqzWMwC4ucM6HdeQDWtLS4fGqEsDABCNVmxoP5Hg,14635
10
10
  wizata_dsapi/datastore.py,sha256=BSHZmCSJ679boBA1eCkaWGJCy1CUeipKKGt2jDHzdVo,2663
@@ -12,10 +12,10 @@ 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=f6tBrdoD_USznaVd4FlzvcZ311QnbUVoaObRW3lJ4NA,14434
15
+ wizata_dsapi/execution_log.py,sha256=ervc6DeZ_9Xwlasi209Hka4F8Rhw30AqWAfOjr0uETw,14630
16
16
  wizata_dsapi/experiment.py,sha256=QYQ1CJ-MTWsXq08xYbm5sAp95dRxbPOmGDgaAOoBMDQ,4631
17
17
  wizata_dsapi/group_system.py,sha256=6rUKe0_J3YWACysyBlzuw_TEpKNXgLOMxhpWsNxOzwY,1708
18
- wizata_dsapi/ilogger.py,sha256=iYnID-Z-qrYhie26C43404aIuU4_tHSKXbDeQIdo82Q,807
18
+ wizata_dsapi/ilogger.py,sha256=YKBTRp7pHYtBlnzroGRPT91_bMVJT93Pft3fUGcFSIM,488
19
19
  wizata_dsapi/insight.py,sha256=ABFZ04DqYxxzqAEfU1tzlTZqqrigM-zN-8Lbetko3g0,6468
20
20
  wizata_dsapi/mlmodel.py,sha256=QkWBNordOQiw6Vv4xN_pxwJWqbBm29vY1dyDZgmMS_4,26324
21
21
  wizata_dsapi/model_toolkit.py,sha256=UNyw5CFSgZeXydQFsiDIRTjoMeqIsdyIIuiwumLW5bA,1574
@@ -32,7 +32,7 @@ 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=PRRDTaVar8lbgR02pJHefl2c_-V50kpHHvEj_l_aWJQ,27
35
+ wizata_dsapi/version.py,sha256=n_6ag5kesSN1XgWNloRr6zBAFljZTg2DxL7XIIF-W8o,28
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
38
  wizata_dsapi/wizata_dsapi_client.py,sha256=o-YMZzEXTglrU3dPR0FDQ3CZeiKVruVfzMM4vIFPxJk,85057
@@ -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.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,,
46
+ wizata_dsapi-1.4.0.dev10.dist-info/licenses/LICENSE.txt,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
47
+ wizata_dsapi-1.4.0.dev10.dist-info/METADATA,sha256=JzhGBKfFLmN0Znw_yCHfDCY6DGrpp88a45HPtYfUM9g,4960
48
+ wizata_dsapi-1.4.0.dev10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
49
+ wizata_dsapi-1.4.0.dev10.dist-info/top_level.txt,sha256=-OeTJbEnh5DuWyTOHtvw0Dw3LRg3G27TNS6W4ZtfwPs,13
50
+ wizata_dsapi-1.4.0.dev10.dist-info/RECORD,,