epmwebapi 6.50.41__tar.gz → 7.50.11__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 (96) hide show
  1. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/PKG-INFO +1 -1
  2. epmwebapi-7.50.11/epmwebapi/_version.py +1 -0
  3. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/advancedevent.py +22 -19
  4. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/basicvariable.py +13 -0
  5. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/customtypedefinition.py +14 -0
  6. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/dataobjectattributes.py +2 -0
  7. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/epmconnection.py +329 -218
  8. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/epmdataobject.py +2 -0
  9. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/epmmodelobject.py +32 -41
  10. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi.egg-info/PKG-INFO +1 -1
  11. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/pyproject.toml +1 -1
  12. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/setup.py +1 -1
  13. epmwebapi-6.50.41/epmwebapi/_version.py +0 -1
  14. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/LICENSE.txt +0 -0
  15. /epmwebapi-6.50.41/Readme.md → /epmwebapi-7.50.11/README.md +0 -0
  16. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/__init__.py +0 -0
  17. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/aggregatedetails.py +0 -0
  18. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/annotationvaluejson.py +0 -0
  19. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/attributeoperand.py +0 -0
  20. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/authorizationservice.py +0 -0
  21. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/autostarttimer.py +0 -0
  22. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/basicvariablepropertymask.py +0 -0
  23. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/browsedirection.py +0 -0
  24. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/browseitemmodeljson.py +0 -0
  25. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/browsemodeljson.py +0 -0
  26. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/browseresultitemmodeljson.py +0 -0
  27. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/browseresultmodeljson.py +0 -0
  28. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/dataobjectsfilter.py +0 -0
  29. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/datasetconfig.py +0 -0
  30. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/datasetpen.py +0 -0
  31. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/datavaluejson.py +0 -0
  32. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/diagnosticmodeljson.py +0 -0
  33. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/dll_references/Elipse.Epm.AddressSpaceModel.dll +0 -0
  34. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/dll_references/ElipseLoggerInterface.dll +0 -0
  35. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/dll_references/EpmData.dll +0 -0
  36. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/dll_references/Microsoft.Extensions.Logging.Abstractions.dll +0 -0
  37. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/domainfilter.py +0 -0
  38. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/downloadtype.py +0 -0
  39. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/elementoperand.py +0 -0
  40. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/epmconnectioncontext.py +0 -0
  41. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/epmnodeids.py +0 -0
  42. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/epmobject.py +0 -0
  43. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/epmproperty.py +0 -0
  44. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/epmsession.py +0 -0
  45. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/epmutils.py +0 -0
  46. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/epmvariable.py +0 -0
  47. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/epmwebapi.py +0 -0
  48. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/eventfiltermodel.py +0 -0
  49. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/exporttype.py +0 -0
  50. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/filtermodel.py +0 -0
  51. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/filteroperand.py +0 -0
  52. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/folder.py +0 -0
  53. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/historyeventmodeljson.py +0 -0
  54. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/historyprocessedmodeljson.py +0 -0
  55. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/historyrawmodeljson.py +0 -0
  56. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/historyresultitemmodeljson.py +0 -0
  57. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/historyresultmodeljson.py +0 -0
  58. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/historyupdatedataitemmodeljson.py +0 -0
  59. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/historyupdatedatamodeljson.py +0 -0
  60. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/historyupdateresultmodeljson.py +0 -0
  61. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/historyupdatetype.py +0 -0
  62. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/itempathandcontinuationpointjson.py +0 -0
  63. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/itempathjson.py +0 -0
  64. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/literaloperand.py +0 -0
  65. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/mimetype.py +0 -0
  66. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/nodeattributes.py +0 -0
  67. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/nodeclassmask.py +0 -0
  68. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/numpyextras.py +0 -0
  69. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/performupdatetype.py +0 -0
  70. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/portalresources.py +0 -0
  71. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/processorresources.py +0 -0
  72. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/queryfiltercontent.py +0 -0
  73. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/queryfilterelement.py +0 -0
  74. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/querymodelfilterJSON.py +0 -0
  75. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/querymodeljson.py +0 -0
  76. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/queryperiod.py +0 -0
  77. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/queryresultitemmodeljson.py +0 -0
  78. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/queryresultmask.py +0 -0
  79. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/queryresultmodeljson.py +0 -0
  80. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/readitemmodeljson.py +0 -0
  81. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/readmodeljson.py +0 -0
  82. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/readresultitemmodeljson.py +0 -0
  83. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/readresultmodeljson.py +0 -0
  84. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/report.py +0 -0
  85. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/resource.py +0 -0
  86. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/resourcesmanager.py +0 -0
  87. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/simpleattributeoperand.py +0 -0
  88. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/statuscodes.py +0 -0
  89. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/typeevent.py +0 -0
  90. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/writeitemmodeljson.py +0 -0
  91. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/writemodeljson.py +0 -0
  92. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi.egg-info/SOURCES.txt +0 -0
  93. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi.egg-info/dependency_links.txt +0 -0
  94. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi.egg-info/requires.txt +0 -0
  95. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi.egg-info/top_level.txt +0 -0
  96. {epmwebapi-6.50.41 → epmwebapi-7.50.11}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: epmwebapi
3
- Version: 6.50.41
3
+ Version: 7.50.11
4
4
  Home-page: https://github.com/elipsesoftware/epmwebapi
5
5
  Author: Elipse Software Ltda
6
6
  License-Expression: GPL-3.0-only
@@ -0,0 +1 @@
1
+ __version__ = '7.50.11'
@@ -9,7 +9,7 @@ from .itempathjson import ItemPathJSON
9
9
 
10
10
  class AdvancedEvent(object):
11
11
  """
12
- Class representing an Advanced Event.
12
+ Class representing an Event Advanced.
13
13
  """
14
14
 
15
15
  def __init__(self, connection:EpmConnection, eventName:str):
@@ -18,23 +18,23 @@ class AdvancedEvent(object):
18
18
 
19
19
 
20
20
  def historyRead(self, queryPeriod:QueryPeriod, where:ElementOperand=None, select:List[str]=['Time', 'Severity', 'EventId', 'PayloadVariables', 'PayloadValues']) -> NDArray[Any]:
21
- """
22
- Returns raw values from this Event within the configured period.
23
-
24
- :param queryPeriod: An `epmwebapi.queryperiod.QueryPeriod` object with the period of time to query.
25
- :type queryPeriod: epmwebapi.queryperiod.QueryPeriod
26
- :param where: An optional parameter indicating the **where** condition to apply. Default is **None**.
27
- :type where: epmwebapi.elementoperand.ElementOperand
28
- :param select: An optional parameter indicating the selected fields to be returned. Default is ['Time', 'Severity', 'EventId', 'PayloadVariables', 'PayloadValues'].
29
- :type select: List[str]
30
- :return: A numpy `NDArray`.
31
- :rtype: np.NDArray
32
-
33
- Examples
34
- --------
21
+ """
22
+ Returns raw values from this Event within the configured period.
23
+
24
+ :param queryPeriod: An `epmwebapi.queryperiod.QueryPeriod` object with the period of time to query.
25
+ :type queryPeriod: epmwebapi.queryperiod.QueryPeriod
26
+ :param where: An optional parameter indicating the where condition to be applied. Default is None.
27
+ :type where: epmwebapi.elementoperand.ElementOperand
28
+ :param select: An optional parameter indicating the selected fields to be returned. Default is ['Time', 'Severity', 'EventId', 'PayloadVariables', 'PayloadValues'].
29
+ :type select: List[str]
30
+ :return: A numpy NDArray.
31
+ :rtype: np.NDArray
32
+
33
+ Examples
34
+ --------
35
35
  The following examples show how to use historyRead function.
36
36
 
37
- + Retrieves all events from a period of time:
37
+ Retrives all events from a period of time:
38
38
 
39
39
  .. code-block:: python
40
40
 
@@ -44,7 +44,7 @@ class AdvancedEvent(object):
44
44
  typeEvent = connection.getAdvancedEvent('EventName')
45
45
  result = typeEvent.historyRead(queryPeriod)
46
46
 
47
- + Retrieves all events in which `Tag0023` is greater than 30 (`Tag0023` must be inserted on Payload):
47
+ Retrieves all events where the Tag0023 is greater than 30 (Tag0023 must be inserted on Payload):
48
48
 
49
49
  .. code-block:: python
50
50
 
@@ -54,5 +54,8 @@ class AdvancedEvent(object):
54
54
  typeEvent = connection.getTypeEvent('PumpEventName')
55
55
  where = ElementOperand(Operator.Greater, [SimpleAttributeOperand('Tag0023'), LiteralOperand(30)])
56
56
  result = typeEvent.historyRead(queryPeriod, where)
57
- """
58
- return self._connection._historyReadEvent(queryPeriod, self._eventPath, select, where)
57
+
58
+ """
59
+ return self._connection._historyReadEvent(queryPeriod, self._eventPath, select, where)
60
+
61
+
@@ -96,6 +96,7 @@ class BasicVariable(EpmDataObject):
96
96
  self._storeMillisecondsEnabled = storeMillisecondsEnabled
97
97
  self._storageSet = storageSet
98
98
  self._active = active
99
+ self._source = None
99
100
 
100
101
  @property
101
102
  def name(self) -> str:
@@ -140,6 +141,16 @@ class BasicVariable(EpmDataObject):
140
141
  self._tagType = value.value
141
142
  self._changeMask = self._changeMask | BasicVariablePropertyMask.TagType.value
142
143
 
144
+ @property
145
+ def source(self) -> str:
146
+ """
147
+ Gets the source path of this Basic Variable.
148
+
149
+ :return: A `str` representing the source path of this Basic Variable.
150
+ :rtype: str
151
+ """
152
+ return self._source
153
+
143
154
  @property
144
155
  def realTimeEnabled(self) -> bool:
145
156
  """
@@ -405,6 +416,8 @@ class BasicVariable(EpmDataObject):
405
416
  self._active = value
406
417
  elif attributeId == DataObjectAttributes.TagType:
407
418
  self._tagType = value
419
+ elif attributeId == DataObjectAttributes.Source:
420
+ self._source = value
408
421
 
409
422
  #Public Methods
410
423
 
@@ -18,6 +18,20 @@ class SimpleProperty:
18
18
  def initialValue(self):
19
19
  return self._initialValue
20
20
 
21
+ class ExpressionProperty:
22
+
23
+ def __init__(self, name, expression = None):
24
+ self._name = name
25
+ self._expression = expression
26
+
27
+ @property
28
+ def name(self):
29
+ return self._name
30
+
31
+ @property
32
+ def expression(self):
33
+ return self._expression
34
+
21
35
 
22
36
  class ObjectProperty:
23
37
 
@@ -25,5 +25,7 @@ class DataObjectAttributes(IntFlag):
25
25
 
26
26
  TagType = 256
27
27
 
28
+ Source = 512
29
+
28
30
  All = 65535
29
31