wizata-dsapi 2.0.0.dev11__tar.gz → 2.0.0.dev13__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 (64) hide show
  1. {wizata_dsapi-2.0.0.dev11/wizata_dsapi.egg-info → wizata_dsapi-2.0.0.dev13}/PKG-INFO +1 -1
  2. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/datapoint.py +6 -2
  3. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/request.py +8 -1
  4. wizata_dsapi-2.0.0.dev13/wizata_dsapi/version.py +1 -0
  5. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/wizata_dsapi_client.py +6 -1
  6. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13/wizata_dsapi.egg-info}/PKG-INFO +1 -1
  7. wizata_dsapi-2.0.0.dev11/wizata_dsapi/version.py +0 -1
  8. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/LICENSE.txt +0 -0
  9. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/README.rst +0 -0
  10. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/setup.cfg +0 -0
  11. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/setup.py +0 -0
  12. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/__init__.py +0 -0
  13. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/api_config.py +0 -0
  14. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/api_dto.py +0 -0
  15. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/api_interface.py +0 -0
  16. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/bucket.py +0 -0
  17. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/business_label.py +0 -0
  18. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/context.py +0 -0
  19. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/dashboard.py +0 -0
  20. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/dataframe_toolkit.py +0 -0
  21. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/datastore.py +0 -0
  22. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/ds_dataframe.py +0 -0
  23. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/dsapi_json_encoder.py +0 -0
  24. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/edge_config.py +0 -0
  25. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/edge_device.py +0 -0
  26. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/edge_module.py +0 -0
  27. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/evaluation.py +0 -0
  28. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/execution.py +0 -0
  29. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/execution_log.py +0 -0
  30. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/experiment.py +0 -0
  31. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/graylog_log.py +0 -0
  32. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/group_system.py +0 -0
  33. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/ilogger.py +0 -0
  34. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/insight.py +0 -0
  35. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/mlmodel.py +0 -0
  36. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/mobile_asset.py +0 -0
  37. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/model_toolkit.py +0 -0
  38. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/models/__init__.py +0 -0
  39. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/models/common.py +0 -0
  40. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/notification.py +0 -0
  41. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/paged_query_result.py +0 -0
  42. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/pipeline.py +0 -0
  43. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/pipeline_image.py +0 -0
  44. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/plot.py +0 -0
  45. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/plots/__init__.py +0 -0
  46. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/plots/common.py +0 -0
  47. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/script.py +0 -0
  48. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/scripts/__init__.py +0 -0
  49. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/scripts/common.py +0 -0
  50. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/search.py +0 -0
  51. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/solution_component.py +0 -0
  52. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/streamlit_utils.py +0 -0
  53. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/template.py +0 -0
  54. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/trigger.py +0 -0
  55. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/twin.py +0 -0
  56. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/twinregistration.py +0 -0
  57. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/user.py +0 -0
  58. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/wizard_function.py +0 -0
  59. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/wizard_request.py +0 -0
  60. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi/words.py +0 -0
  61. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi.egg-info/SOURCES.txt +0 -0
  62. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi.egg-info/dependency_links.txt +0 -0
  63. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/wizata_dsapi.egg-info/requires.txt +0 -0
  64. {wizata_dsapi-2.0.0.dev11 → wizata_dsapi-2.0.0.dev13}/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.0.0.dev11
3
+ Version: 2.0.0.dev13
4
4
  Summary: Wizata Data Science Toolkit
5
5
  Author: Wizata S.A.
6
6
  Author-email: info@wizata.com
@@ -173,6 +173,7 @@ class BusinessType(Enum):
173
173
  - "measurement" represents a logical time-series manually inputted by a human.
174
174
  - "event" represents a state or probability that have a start and stop timestamp.
175
175
  - "text" represents a time-series emitted as text/string value.
176
+ - "scoped" represents a time-series with values split by a scope tag (e.g. anomaly probabilities per category).
176
177
  """
177
178
  TELEMETRY = "telemetry"
178
179
  SET_POINTS = "setPoint"
@@ -180,6 +181,7 @@ class BusinessType(Enum):
180
181
  MEASUREMENT = "measurement"
181
182
  EVENT = "event"
182
183
  TEXT = "text"
184
+ SCOPED = "scoped"
183
185
 
184
186
 
185
187
  class InputModeType(Enum):
@@ -377,7 +379,7 @@ class DataPoint(ApiDto):
377
379
  obj["dataStoreId"] = int(self.data_store_id)
378
380
  return obj
379
381
 
380
- def copy(self):
382
+ def copy(self, is_edge=False):
381
383
  new_dp = DataPoint(datapoint_id=self.datapoint_id)
382
384
  new_dp.hardware_id = self.hardware_id
383
385
  new_dp.name = self.name
@@ -392,5 +394,7 @@ class DataPoint(ApiDto):
392
394
  new_dp.category_id = self.category_id
393
395
  new_dp.business_type = self.business_type
394
396
  new_dp.group_system_id = self.group_system_id
395
- new_dp.data_store_id = self.data_store_id
397
+ if not is_edge:
398
+ new_dp.data_store_id = self.data_store_id
399
+ new_dp.data_store = self.data_store
396
400
  return new_dp
@@ -197,7 +197,8 @@ class Request(ApiDto):
197
197
  options=None,
198
198
  field=None,
199
199
  bucket=None,
200
- tags=None):
200
+ tags=None,
201
+ scopes=None):
201
202
  if request_id is None:
202
203
  request_id = uuid.uuid4()
203
204
  self.request_id = request_id
@@ -240,6 +241,7 @@ class Request(ApiDto):
240
241
  self.name = None
241
242
  self.bucket = bucket
242
243
  self.tags = tags
244
+ self.scopes = scopes
243
245
 
244
246
  self.null = null
245
247
 
@@ -619,6 +621,8 @@ class Request(ApiDto):
619
621
  query['bucket'] = self.bucket
620
622
  if self.tags is not None:
621
623
  query['tags'] = self.tags
624
+ if self.scopes is not None:
625
+ query['scopes'] = self.scopes
622
626
 
623
627
  if self.target_feat is not None:
624
628
  query["target_feat"] = {
@@ -737,6 +741,9 @@ class Request(ApiDto):
737
741
  if "tags" in json_data.keys():
738
742
  self.tags = json_data["tags"]
739
743
 
744
+ if "scopes" in json_data.keys():
745
+ self.scopes = json_data["scopes"]
746
+
740
747
  if "connections" in json_data.keys():
741
748
  self.connections = json_data["connections"]
742
749
 
@@ -0,0 +1 @@
1
+ __version__ = "2.0.0.dev13"
@@ -727,7 +727,8 @@ class WizataDSAPIClient(ApiInterface, ApiDtoInterface):
727
727
  group = None,
728
728
  field=None,
729
729
  bucket: str = None,
730
- tags: dict = None) -> pandas.DataFrame:
730
+ tags: dict = None,
731
+ scopes: list = None) -> pandas.DataFrame:
731
732
  """
732
733
  Query a dataframe from API.
733
734
  :param agg_method:
@@ -743,6 +744,7 @@ class WizataDSAPIClient(ApiInterface, ApiDtoInterface):
743
744
  :param options: dict of options.
744
745
  :param field: by default 'value' if none, accept str or list (e.g. value, reliability, eventId, ...)
745
746
  :param bucket: specify on which bucket the query applies.
747
+ :param scopes: list of scope filters for SCOPED datapoints (e.g. ["normal", {"vibration": {"gte": 0.6}}]).
746
748
  :return: dataframe
747
749
  """
748
750
  request = Request()
@@ -777,6 +779,9 @@ class WizataDSAPIClient(ApiInterface, ApiDtoInterface):
777
779
  if tags is not None:
778
780
  request.tags = tags
779
781
 
782
+ if scopes is not None:
783
+ request.scopes = scopes
784
+
780
785
  if options is not None:
781
786
  request.options = options
782
787
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wizata_dsapi
3
- Version: 2.0.0.dev11
3
+ Version: 2.0.0.dev13
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.0.0.dev11"