wizata-dsapi 2.2.0.dev14__tar.gz → 2.2.0.dev15__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 (71) hide show
  1. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/PKG-INFO +1 -1
  2. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/__init__.py +1 -1
  3. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/edge_device.py +30 -1
  4. wizata_dsapi-2.2.0.dev15/wizata_dsapi/version.py +1 -0
  5. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi.egg-info/PKG-INFO +1 -1
  6. wizata_dsapi-2.2.0.dev14/wizata_dsapi/version.py +0 -1
  7. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/LICENSE.txt +0 -0
  8. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/README.rst +0 -0
  9. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/setup.cfg +0 -0
  10. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/setup.py +0 -0
  11. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/api_config.py +0 -0
  12. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/api_dto.py +0 -0
  13. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/api_interface.py +0 -0
  14. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/bucket.py +0 -0
  15. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/business_label.py +0 -0
  16. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/connection.py +0 -0
  17. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/connection_types.py +0 -0
  18. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/context.py +0 -0
  19. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/dashboard.py +0 -0
  20. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/dataframe_toolkit.py +0 -0
  21. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/datapoint.py +0 -0
  22. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/datastore.py +0 -0
  23. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/deployment.py +0 -0
  24. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/ds_dataframe.py +0 -0
  25. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/dsapi_json_encoder.py +0 -0
  26. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/edge_config.py +0 -0
  27. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/edge_module.py +0 -0
  28. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/evaluation.py +0 -0
  29. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/execution.py +0 -0
  30. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/execution_log.py +0 -0
  31. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/experiment.py +0 -0
  32. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/graylog_log.py +0 -0
  33. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/group_system.py +0 -0
  34. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/ilogger.py +0 -0
  35. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/insight.py +0 -0
  36. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/inventory.py +0 -0
  37. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/mlmodel.py +0 -0
  38. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/mobile_asset.py +0 -0
  39. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/model_toolkit.py +0 -0
  40. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/models/__init__.py +0 -0
  41. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/models/common.py +0 -0
  42. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/notification.py +0 -0
  43. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/paged_query_result.py +0 -0
  44. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/pipeline.py +0 -0
  45. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/pipeline_image.py +0 -0
  46. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/plot.py +0 -0
  47. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/plots/__init__.py +0 -0
  48. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/plots/common.py +0 -0
  49. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/plots/theme.py +0 -0
  50. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/product.py +0 -0
  51. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/request.py +0 -0
  52. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/script.py +0 -0
  53. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/scripts/__init__.py +0 -0
  54. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/scripts/common.py +0 -0
  55. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/search.py +0 -0
  56. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/solution_component.py +0 -0
  57. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/streamlit_utils.py +0 -0
  58. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/template.py +0 -0
  59. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/template_config.py +0 -0
  60. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/trigger.py +0 -0
  61. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/twin.py +0 -0
  62. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/twinregistration.py +0 -0
  63. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/user.py +0 -0
  64. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/wizard_function.py +0 -0
  65. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/wizard_request.py +0 -0
  66. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/wizata_dsapi_client.py +0 -0
  67. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi/words.py +0 -0
  68. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi.egg-info/SOURCES.txt +0 -0
  69. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi.egg-info/dependency_links.txt +0 -0
  70. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/wizata_dsapi.egg-info/requires.txt +0 -0
  71. {wizata_dsapi-2.2.0.dev14 → wizata_dsapi-2.2.0.dev15}/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.2.0.dev14
3
+ Version: 2.2.0.dev15
4
4
  Summary: Wizata Data Science Toolkit
5
5
  Author: Wizata S.A.
6
6
  Author-email: info@wizata.com
@@ -58,7 +58,7 @@ from .streamlit_utils import (get_streamlit_token, get_streamlit_domain, get_str
58
58
  from .search import FilterOperator, SearchQuery, SortOption, GroupSearchQuery, GroupOption, GroupSummary, GroupSummaryType
59
59
  from .notification import NotificationScope, DeviceToken, AlertRule, AlertActive, MonitoredDatapoint, \
60
60
  MonitoredPipeline, NotificationPreference, RecipientList, Recipient, RecipientType
61
- from .edge_device import EdgeDevice, EdgeDeviceStatus, EdgeDeviceType
61
+ from .edge_device import EdgeDevice, EdgeDeviceStatus, EdgeDeviceType, EdgeDeviceProvisioning
62
62
  from .edge_module import EdgeModule, EdgeModuleType, WIZATA_MODULES
63
63
  from .edge_config import EdgeConsumer, EdgeWriter, EdgeTrigger
64
64
  from .connection import Connection, ConnectionMapping, ConnectionDirection, TransformKind, \
@@ -23,6 +23,14 @@ class EdgeDeviceType(Enum):
23
23
  CUSTOM = "Custom"
24
24
 
25
25
 
26
+ class EdgeDeviceProvisioning(Enum):
27
+ """
28
+ How an edge device is installed (DEV-6015).
29
+ """
30
+ AZURE_IOT_EDGE = "azure-iot-edge"
31
+ MANUAL = "manual"
32
+
33
+
26
34
  class EdgeDevice(ApiDto):
27
35
  """
28
36
  Edge device registered on the platform.
@@ -35,6 +43,9 @@ class EdgeDevice(ApiDto):
35
43
  :ivar EdgeDeviceStatus status: current status of the device.
36
44
  :ivar int status_code: numeric status code.
37
45
  :ivar EdgeDeviceType device_type: type of the edge device.
46
+ :ivar EdgeDeviceProvisioning provisioning: how the device is installed.
47
+ :ivar int created_at: creation time, epoch ms (the PostgreSQL registry, DEV-6015).
48
+ :ivar int updated_at: last update time, epoch ms.
38
49
  :ivar str connection_state: IoT Hub connection state ('Connected' or 'Disconnected'), enriched from IoT Hub.
39
50
  :ivar str last_activity_time: last device activity timestamp from IoT Hub.
40
51
  """
@@ -59,7 +70,10 @@ class EdgeDevice(ApiDto):
59
70
  status_code: int = None,
60
71
  device_type: EdgeDeviceType = None,
61
72
  connection_state: str = None,
62
- last_activity_time: str = None):
73
+ last_activity_time: str = None,
74
+ provisioning: EdgeDeviceProvisioning = None,
75
+ created_at: int = None,
76
+ updated_at: int = None):
63
77
  if edge_device_id is None:
64
78
  self.edge_device_id = uuid.uuid4()
65
79
  else:
@@ -73,6 +87,9 @@ class EdgeDevice(ApiDto):
73
87
  self.device_type = device_type
74
88
  self.connection_state = connection_state
75
89
  self.last_activity_time = last_activity_time
90
+ self.provisioning = provisioning
91
+ self.created_at = created_at
92
+ self.updated_at = updated_at
76
93
 
77
94
  def api_id(self) -> str:
78
95
  return str(self.edge_device_id).upper()
@@ -107,6 +124,12 @@ class EdgeDevice(ApiDto):
107
124
  self.connection_state = obj["connectionState"]
108
125
  if "lastActivityTime" in obj and obj["lastActivityTime"] is not None:
109
126
  self.last_activity_time = obj["lastActivityTime"]
127
+ if "provisioning" in obj and obj["provisioning"] is not None:
128
+ self.provisioning = EdgeDeviceProvisioning(obj["provisioning"])
129
+ if "createdAt" in obj and obj["createdAt"] is not None:
130
+ self.created_at = int(obj["createdAt"])
131
+ if "updatedAt" in obj and obj["updatedAt"] is not None:
132
+ self.updated_at = int(obj["updatedAt"])
110
133
 
111
134
  def to_json(self, target: str = None):
112
135
  obj = {
@@ -130,4 +153,10 @@ class EdgeDevice(ApiDto):
130
153
  obj["connectionState"] = self.connection_state
131
154
  if self.last_activity_time is not None:
132
155
  obj["lastActivityTime"] = self.last_activity_time
156
+ if self.provisioning is not None:
157
+ obj["provisioning"] = self.provisioning.value
158
+ if self.created_at is not None:
159
+ obj["createdAt"] = self.created_at
160
+ if self.updated_at is not None:
161
+ obj["updatedAt"] = self.updated_at
133
162
  return obj
@@ -0,0 +1 @@
1
+ __version__ = "2.2.0.dev15"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wizata_dsapi
3
- Version: 2.2.0.dev14
3
+ Version: 2.2.0.dev15
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.2.0.dev14"