wizata-dsapi 1.4.0.dev8__tar.gz → 1.4.0.dev10__tar.gz

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.
Files changed (56) hide show
  1. {wizata_dsapi-1.4.0.dev8/wizata_dsapi.egg-info → wizata_dsapi-1.4.0.dev10}/PKG-INFO +1 -1
  2. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/context.py +2 -1
  3. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/execution_log.py +3 -3
  4. wizata_dsapi-1.4.0.dev10/wizata_dsapi/ilogger.py +22 -0
  5. wizata_dsapi-1.4.0.dev10/wizata_dsapi/version.py +1 -0
  6. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10/wizata_dsapi.egg-info}/PKG-INFO +1 -1
  7. wizata_dsapi-1.4.0.dev8/wizata_dsapi/ilogger.py +0 -29
  8. wizata_dsapi-1.4.0.dev8/wizata_dsapi/version.py +0 -1
  9. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/LICENSE.txt +0 -0
  10. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/README.rst +0 -0
  11. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/setup.cfg +0 -0
  12. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/setup.py +0 -0
  13. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/__init__.py +0 -0
  14. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/api_config.py +0 -0
  15. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/api_dto.py +0 -0
  16. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/api_interface.py +0 -0
  17. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/bucket.py +0 -0
  18. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/business_label.py +0 -0
  19. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/dataframe_toolkit.py +0 -0
  20. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/datapoint.py +0 -0
  21. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/datastore.py +0 -0
  22. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/ds_dataframe.py +0 -0
  23. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/dsapi_json_encoder.py +0 -0
  24. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/evaluation.py +0 -0
  25. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/execution.py +0 -0
  26. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/experiment.py +0 -0
  27. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/group_system.py +0 -0
  28. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/insight.py +0 -0
  29. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/mlmodel.py +0 -0
  30. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/model_toolkit.py +0 -0
  31. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/models/__init__.py +0 -0
  32. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/models/common.py +0 -0
  33. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/paged_query_result.py +0 -0
  34. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/pipeline.py +0 -0
  35. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/pipeline_image.py +0 -0
  36. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/plot.py +0 -0
  37. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/plots/__init__.py +0 -0
  38. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/plots/common.py +0 -0
  39. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/request.py +0 -0
  40. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/script.py +0 -0
  41. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/scripts/__init__.py +0 -0
  42. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/scripts/common.py +0 -0
  43. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/solution_component.py +0 -0
  44. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/streamlit_utils.py +0 -0
  45. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/template.py +0 -0
  46. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/trigger.py +0 -0
  47. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/twin.py +0 -0
  48. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/twinregistration.py +0 -0
  49. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/wizard_function.py +0 -0
  50. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/wizard_request.py +0 -0
  51. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/wizata_dsapi_client.py +0 -0
  52. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi/words.py +0 -0
  53. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi.egg-info/SOURCES.txt +0 -0
  54. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi.egg-info/dependency_links.txt +0 -0
  55. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi.egg-info/requires.txt +0 -0
  56. {wizata_dsapi-1.4.0.dev8 → wizata_dsapi-1.4.0.dev10}/wizata_dsapi.egg-info/top_level.txt +0 -0
@@ -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,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"),
@@ -0,0 +1,22 @@
1
+ from .execution_log import ExecutionLog
2
+ import logging
3
+
4
+
5
+ class ILogger:
6
+ """
7
+ logger interface used within a pipeline and context.
8
+ """
9
+
10
+ def write_log(self, message: str = None, level: int = logging.INFO):
11
+ """
12
+ write a log
13
+ :param str message: message to write.
14
+ :param int level: use logging level.
15
+ """
16
+ pass
17
+
18
+ def notify(self):
19
+ """
20
+ notify the listeners and watchers on current status.
21
+ """
22
+ pass
@@ -0,0 +1 @@
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
@@ -1,29 +0,0 @@
1
- from .execution import Execution, ExecutionStepLog
2
-
3
-
4
- class ILogger:
5
- """
6
- logger interface used within a pipeline and context.
7
- """
8
-
9
- def write_log(self, message: str, level: int = 7):
10
- """
11
- write a log
12
- :param str message: message to write.
13
- :param int level: from 1 critical to 7 verbose.
14
- """
15
- pass
16
-
17
- def notify_step(self, step_log: ExecutionStepLog):
18
- """
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.
28
- """
29
- pass
@@ -1 +0,0 @@
1
- __version__ = "1.4.0.dev8"