wizata-dsapi 2.1.0.dev6__tar.gz → 2.1.0.dev8__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 (66) hide show
  1. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/PKG-INFO +1 -1
  2. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/execution_log.py +14 -2
  3. wizata_dsapi-2.1.0.dev8/wizata_dsapi/version.py +1 -0
  4. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/wizata_dsapi_client.py +13 -5
  5. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi.egg-info/PKG-INFO +1 -1
  6. wizata_dsapi-2.1.0.dev6/wizata_dsapi/version.py +0 -1
  7. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/LICENSE.txt +0 -0
  8. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/README.rst +0 -0
  9. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/setup.cfg +0 -0
  10. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/setup.py +0 -0
  11. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/__init__.py +0 -0
  12. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/api_config.py +0 -0
  13. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/api_dto.py +0 -0
  14. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/api_interface.py +0 -0
  15. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/bucket.py +0 -0
  16. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/business_label.py +0 -0
  17. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/context.py +0 -0
  18. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/dashboard.py +0 -0
  19. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/dataframe_toolkit.py +0 -0
  20. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/datapoint.py +0 -0
  21. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/datastore.py +0 -0
  22. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/ds_dataframe.py +0 -0
  23. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/dsapi_json_encoder.py +0 -0
  24. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/edge_config.py +0 -0
  25. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/edge_device.py +0 -0
  26. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/edge_module.py +0 -0
  27. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/evaluation.py +0 -0
  28. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/execution.py +0 -0
  29. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/experiment.py +0 -0
  30. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/graylog_log.py +0 -0
  31. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/group_system.py +0 -0
  32. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/ilogger.py +0 -0
  33. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/insight.py +0 -0
  34. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/mlmodel.py +0 -0
  35. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/mobile_asset.py +0 -0
  36. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/model_toolkit.py +0 -0
  37. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/models/__init__.py +0 -0
  38. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/models/common.py +0 -0
  39. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/notification.py +0 -0
  40. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/paged_query_result.py +0 -0
  41. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/pipeline.py +0 -0
  42. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/pipeline_image.py +0 -0
  43. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/plot.py +0 -0
  44. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/plots/__init__.py +0 -0
  45. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/plots/common.py +0 -0
  46. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/plots/theme.py +0 -0
  47. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/request.py +0 -0
  48. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/script.py +0 -0
  49. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/scripts/__init__.py +0 -0
  50. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/scripts/common.py +0 -0
  51. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/search.py +0 -0
  52. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/solution_component.py +0 -0
  53. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/streamlit_utils.py +0 -0
  54. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/template.py +0 -0
  55. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/template_config.py +0 -0
  56. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/trigger.py +0 -0
  57. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/twin.py +0 -0
  58. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/twinregistration.py +0 -0
  59. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/user.py +0 -0
  60. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/wizard_function.py +0 -0
  61. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/wizard_request.py +0 -0
  62. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi/words.py +0 -0
  63. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi.egg-info/SOURCES.txt +0 -0
  64. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi.egg-info/dependency_links.txt +0 -0
  65. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/wizata_dsapi.egg-info/requires.txt +0 -0
  66. {wizata_dsapi-2.1.0.dev6 → wizata_dsapi-2.1.0.dev8}/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: 2.1.0.dev6
3
+ Version: 2.1.0.dev8
4
4
  Summary: Wizata Data Science Toolkit
5
5
  Author: Wizata S.A.
6
6
  Author-email: info@wizata.com
@@ -79,7 +79,9 @@ class ExecutionLog(Dto):
79
79
  message=data.get("message"),
80
80
  messages=data.get("messages"),
81
81
  timestamp=int(data["timestamp"]) if "timestamp" in data and data["timestamp"] is not None else None,
82
- level=data.get("level")
82
+ level=data.get("level"),
83
+ branch=data.get("branch"),
84
+ sha=data.get("sha"),
83
85
  )
84
86
 
85
87
  def __init__(self,
@@ -104,6 +106,8 @@ class ExecutionLog(Dto):
104
106
  message: str = None,
105
107
  messages: list = None,
106
108
  level: str = None,
109
+ branch: str = None,
110
+ sha: str = None,
107
111
  ):
108
112
 
109
113
  # labels
@@ -134,12 +138,18 @@ class ExecutionLog(Dto):
134
138
  self.edge_device_id = edge_device_id
135
139
  self.status = status
136
140
  self.level = level
141
+ # git branch this run TARGETS (which version to execute) — a label so
142
+ # runs are queryable per branch. None = default branch / non-git.
143
+ self.branch = branch
137
144
 
138
145
  # values
139
146
  if execution_id is None:
140
147
  execution_id = uuid.uuid4()
141
148
  self.execution_id = execution_id
142
149
  self.pipeline_image_id = pipeline_image_id
150
+ # resolved commit SHA the run executed — INFO only, from the branch HEAD
151
+ # (git) or the image id. Not a target.
152
+ self.sha = sha
143
153
  self.timestamp = timestamp
144
154
  self.started_date = started_date
145
155
  self.queued_date = queued_date
@@ -428,7 +438,8 @@ class ExecutionLog(Dto):
428
438
  "twin": self.get_twin_key(),
429
439
  "edgeDeviceId": self.edge_device_id,
430
440
  "status": self.status.value if hasattr(self.status, 'value') else self.status,
431
- "level": self.level
441
+ "level": self.level,
442
+ "branch": self.branch,
432
443
  }
433
444
  return {k: v for k, v in labels.items() if v is not None}
434
445
 
@@ -443,6 +454,7 @@ class ExecutionLog(Dto):
443
454
  "executionTime": self.execution_time,
444
455
  "executionTriggerId": str(self.trigger_id) if self.trigger_id else None,
445
456
  "version": self.version,
457
+ "sha": self.sha,
446
458
  "message": self.message,
447
459
  "messages": self.messages or None
448
460
  }
@@ -0,0 +1 @@
1
+ __version__ = "2.1.0.dev8"
@@ -929,6 +929,7 @@ class WizataDSAPIClient(ApiInterface, ApiDtoInterface):
929
929
  twin=None,
930
930
  mode: str = 'experiment',
931
931
  version: str = None,
932
+ branch: str = None,
932
933
  ) -> ExecutionLog:
933
934
  """
934
935
  wrapper to execute a pipeline, used by other functions.
@@ -941,7 +942,8 @@ class WizataDSAPIClient(ApiInterface, ApiDtoInterface):
941
942
  pipeline=pipeline,
942
943
  twin=twin,
943
944
  pipeline_image_id=image,
944
- version=version
945
+ version=version,
946
+ branch=branch
945
947
  )
946
948
 
947
949
  if isinstance(execution_log, ExecutionLog):
@@ -968,7 +970,8 @@ class WizataDSAPIClient(ApiInterface, ApiDtoInterface):
968
970
  train: bool = True,
969
971
  plot: bool = True,
970
972
  write: bool = False,
971
- version: str = None) -> ExecutionLog:
973
+ version: str = None,
974
+ branch: str = None) -> ExecutionLog:
972
975
  """
973
976
  experiment and train models with a pipeline.
974
977
 
@@ -988,6 +991,7 @@ class WizataDSAPIClient(ApiInterface, ApiDtoInterface):
988
991
  :param plot: if False plot steps are ignored.
989
992
  :param write: if False write steps are ignored.
990
993
  :param version: version to use, by default use your python environment version.
994
+ :param branch: git branch to run against (git mode); default branch when omitted.
991
995
  """
992
996
  if not train or not plot or write:
993
997
  if properties is None:
@@ -1005,7 +1009,8 @@ class WizataDSAPIClient(ApiInterface, ApiDtoInterface):
1005
1009
  image=image,
1006
1010
  properties=properties,
1007
1011
  mode='experiment',
1008
- version=version
1012
+ version=version,
1013
+ branch=branch
1009
1014
  )
1010
1015
 
1011
1016
  def run(self,
@@ -1015,7 +1020,8 @@ class WizataDSAPIClient(ApiInterface, ApiDtoInterface):
1015
1020
  train: bool = False,
1016
1021
  plot: bool = False,
1017
1022
  write: bool = True,
1018
- version: str = None) -> ExecutionLog:
1023
+ version: str = None,
1024
+ branch: str = None) -> ExecutionLog:
1019
1025
  """
1020
1026
  run a pipeline.
1021
1027
 
@@ -1035,6 +1041,7 @@ class WizataDSAPIClient(ApiInterface, ApiDtoInterface):
1035
1041
  :param plot: if False plot steps are ignored.
1036
1042
  :param write: if False write steps are ignored.
1037
1043
  :param version: version of python environment to use if different than local environment.
1044
+ :param branch: git branch to run against (git mode); default branch when omitted.
1038
1045
  """
1039
1046
 
1040
1047
  if train or plot or not write:
@@ -1052,7 +1059,8 @@ class WizataDSAPIClient(ApiInterface, ApiDtoInterface):
1052
1059
  properties=properties,
1053
1060
  image=image,
1054
1061
  mode='production',
1055
- version=version
1062
+ version=version,
1063
+ branch=branch
1056
1064
  )
1057
1065
 
1058
1066
  def await_execution(self,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wizata_dsapi
3
- Version: 2.1.0.dev6
3
+ Version: 2.1.0.dev8
4
4
  Summary: Wizata Data Science Toolkit
5
5
  Author: Wizata S.A.
6
6
  Author-email: info@wizata.com
@@ -1 +0,0 @@
1
- __version__ = "2.1.0.dev6"