wizata-dsapi 2.2.0.dev16__tar.gz → 2.2.0.dev17__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.dev16 → wizata_dsapi-2.2.0.dev17}/PKG-INFO +1 -1
  2. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/__init__.py +1 -1
  3. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/edge_config.py +34 -2
  4. wizata_dsapi-2.2.0.dev17/wizata_dsapi/version.py +1 -0
  5. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi.egg-info/PKG-INFO +1 -1
  6. wizata_dsapi-2.2.0.dev16/wizata_dsapi/version.py +0 -1
  7. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/LICENSE.txt +0 -0
  8. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/README.rst +0 -0
  9. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/setup.cfg +0 -0
  10. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/setup.py +0 -0
  11. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/api_config.py +0 -0
  12. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/api_dto.py +0 -0
  13. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/api_interface.py +0 -0
  14. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/bucket.py +0 -0
  15. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/business_label.py +0 -0
  16. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/connection.py +0 -0
  17. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/connection_types.py +0 -0
  18. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/context.py +0 -0
  19. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/dashboard.py +0 -0
  20. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/dataframe_toolkit.py +0 -0
  21. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/datapoint.py +0 -0
  22. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/datastore.py +0 -0
  23. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/deployment.py +0 -0
  24. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/ds_dataframe.py +0 -0
  25. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/dsapi_json_encoder.py +0 -0
  26. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/edge_device.py +0 -0
  27. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/edge_module.py +0 -0
  28. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/evaluation.py +0 -0
  29. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/execution.py +0 -0
  30. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/execution_log.py +0 -0
  31. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/experiment.py +0 -0
  32. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/graylog_log.py +0 -0
  33. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/group_system.py +0 -0
  34. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/ilogger.py +0 -0
  35. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/insight.py +0 -0
  36. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/inventory.py +0 -0
  37. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/mlmodel.py +0 -0
  38. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/mobile_asset.py +0 -0
  39. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/model_toolkit.py +0 -0
  40. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/models/__init__.py +0 -0
  41. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/models/common.py +0 -0
  42. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/notification.py +0 -0
  43. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/paged_query_result.py +0 -0
  44. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/pipeline.py +0 -0
  45. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/pipeline_image.py +0 -0
  46. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/plot.py +0 -0
  47. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/plots/__init__.py +0 -0
  48. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/plots/common.py +0 -0
  49. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/plots/theme.py +0 -0
  50. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/product.py +0 -0
  51. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/request.py +0 -0
  52. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/script.py +0 -0
  53. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/scripts/__init__.py +0 -0
  54. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/scripts/common.py +0 -0
  55. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/search.py +0 -0
  56. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/solution_component.py +0 -0
  57. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/streamlit_utils.py +0 -0
  58. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/template.py +0 -0
  59. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/template_config.py +0 -0
  60. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/trigger.py +0 -0
  61. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/twin.py +0 -0
  62. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/twinregistration.py +0 -0
  63. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/user.py +0 -0
  64. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/wizard_function.py +0 -0
  65. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/wizard_request.py +0 -0
  66. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/wizata_dsapi_client.py +0 -0
  67. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi/words.py +0 -0
  68. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi.egg-info/SOURCES.txt +0 -0
  69. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi.egg-info/dependency_links.txt +0 -0
  70. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/wizata_dsapi.egg-info/requires.txt +0 -0
  71. {wizata_dsapi-2.2.0.dev16 → wizata_dsapi-2.2.0.dev17}/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.dev16
3
+ Version: 2.2.0.dev17
4
4
  Summary: Wizata Data Science Toolkit
5
5
  Author: Wizata S.A.
6
6
  Author-email: info@wizata.com
@@ -60,7 +60,7 @@ from .notification import NotificationScope, DeviceToken, AlertRule, AlertActive
60
60
  MonitoredPipeline, NotificationPreference, RecipientList, Recipient, RecipientType
61
61
  from .edge_device import EdgeDevice, EdgeDeviceStatus, EdgeDeviceType, EdgeDeviceProvisioning
62
62
  from .edge_module import EdgeModule, EdgeModuleType, WIZATA_MODULES
63
- from .edge_config import EdgeConsumer, EdgeWriter, EdgeTrigger, EdgeFile, EdgeConfig
63
+ from .edge_config import EdgeConsumer, EdgeWriter, EdgeTrigger, EdgeFile, EdgeConfig, EdgeCommand
64
64
  from .connection import Connection, ConnectionMapping, ConnectionDirection, TransformKind, \
65
65
  EdgeDeviceKey, EdgeDeviceKeyStatus
66
66
  from .connection_types import ConnectionType, CONNECTION_TYPES, TRANSFORM_SCHEMAS, get_connection_type, \
@@ -97,24 +97,30 @@ class EdgeTrigger(Dto):
97
97
  """
98
98
  A pipeline trigger configured on an edge device.
99
99
 
100
- :ivar str id: trigger identifier.
100
+ Also the stored entity for an edge's hand-made triggers (DEV-6095, ``"EdgeTrigger"``
101
+ table): a standalone trigger, or an overlay naming a ``deploymentId`` whose extra
102
+ keys (``exceptions``...) are merged into that deployment's rendered entry.
103
+
104
+ :ivar str id: trigger identifier (the stored key).
101
105
  :ivar int interval: execution interval in milliseconds.
102
106
  :ivar str pipeline_image_id: pipeline image reference (build tag + pipeline key).
103
107
  :ivar str twin: twin key this trigger targets.
104
108
  :ivar str template: template key this trigger targets.
105
109
  :ivar dict extras: all other fields from the JSON config.
110
+ :ivar str edge_device_id: the device it belongs to, when stored (not part of triggers.json).
106
111
  """
107
112
 
108
113
  _KNOWN_KEYS = {"id", "interval", "pipelineImageId", "twin", "template"}
109
114
 
110
115
  def __init__(self, id=None, interval=None, pipeline_image_id=None,
111
- twin=None, template=None, extras=None):
116
+ twin=None, template=None, extras=None, edge_device_id=None):
112
117
  self.id = id
113
118
  self.interval = interval
114
119
  self.pipeline_image_id = pipeline_image_id
115
120
  self.twin = twin
116
121
  self.template = template
117
122
  self.extras = extras or {}
123
+ self.edge_device_id = edge_device_id
118
124
 
119
125
  @classmethod
120
126
  def from_dict(cls, data: dict) -> "EdgeTrigger":
@@ -206,3 +212,29 @@ class EdgeConfig(Dto):
206
212
 
207
213
  def to_dict(self) -> dict:
208
214
  return {"files": dict(self.files), "images": list(self.images), "etag": self.etag}
215
+
216
+
217
+ class EdgeCommand(Dto):
218
+ """
219
+ A one-shot operator command for an edge (DEV-6095), served as ``command.json`` until
220
+ it expires. The edge's command handler runs it once and refuses it when older than
221
+ 15 minutes, so the platform only stores what was asked, and when.
222
+
223
+ :ivar str id: command id (UUID); the edge remembers which ids it ran.
224
+ :ivar str edge_device_id: the device it is for.
225
+ :ivar str action: e.g. ``purge_queue``.
226
+ :ivar str queue: e.g. ``pipeline``.
227
+ :ivar str issued_at: ISO-8601 UTC, ``Z`` suffix.
228
+ """
229
+
230
+ def __init__(self, id=None, edge_device_id=None, action=None, queue=None, issued_at=None):
231
+ self.id = id
232
+ self.edge_device_id = edge_device_id
233
+ self.action = action
234
+ self.queue = queue
235
+ self.issued_at = issued_at
236
+
237
+ def to_dict(self) -> dict:
238
+ """The ``command.json`` shape the edge's command handler reads."""
239
+ return {"id": self.id, "action": self.action, "queue": self.queue,
240
+ "issuedAt": self.issued_at}
@@ -0,0 +1 @@
1
+ __version__ = "2.2.0.dev17"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wizata_dsapi
3
- Version: 2.2.0.dev16
3
+ Version: 2.2.0.dev17
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.dev16"