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.
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/PKG-INFO +1 -1
- epmwebapi-7.50.11/epmwebapi/_version.py +1 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/advancedevent.py +22 -19
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/basicvariable.py +13 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/customtypedefinition.py +14 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/dataobjectattributes.py +2 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/epmconnection.py +329 -218
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/epmdataobject.py +2 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/epmmodelobject.py +32 -41
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi.egg-info/PKG-INFO +1 -1
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/pyproject.toml +1 -1
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/setup.py +1 -1
- epmwebapi-6.50.41/epmwebapi/_version.py +0 -1
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/LICENSE.txt +0 -0
- /epmwebapi-6.50.41/Readme.md → /epmwebapi-7.50.11/README.md +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/__init__.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/aggregatedetails.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/annotationvaluejson.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/attributeoperand.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/authorizationservice.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/autostarttimer.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/basicvariablepropertymask.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/browsedirection.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/browseitemmodeljson.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/browsemodeljson.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/browseresultitemmodeljson.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/browseresultmodeljson.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/dataobjectsfilter.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/datasetconfig.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/datasetpen.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/datavaluejson.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/diagnosticmodeljson.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/dll_references/Elipse.Epm.AddressSpaceModel.dll +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/dll_references/ElipseLoggerInterface.dll +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/dll_references/EpmData.dll +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/dll_references/Microsoft.Extensions.Logging.Abstractions.dll +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/domainfilter.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/downloadtype.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/elementoperand.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/epmconnectioncontext.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/epmnodeids.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/epmobject.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/epmproperty.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/epmsession.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/epmutils.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/epmvariable.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/epmwebapi.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/eventfiltermodel.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/exporttype.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/filtermodel.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/filteroperand.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/folder.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/historyeventmodeljson.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/historyprocessedmodeljson.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/historyrawmodeljson.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/historyresultitemmodeljson.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/historyresultmodeljson.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/historyupdatedataitemmodeljson.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/historyupdatedatamodeljson.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/historyupdateresultmodeljson.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/historyupdatetype.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/itempathandcontinuationpointjson.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/itempathjson.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/literaloperand.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/mimetype.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/nodeattributes.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/nodeclassmask.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/numpyextras.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/performupdatetype.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/portalresources.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/processorresources.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/queryfiltercontent.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/queryfilterelement.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/querymodelfilterJSON.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/querymodeljson.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/queryperiod.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/queryresultitemmodeljson.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/queryresultmask.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/queryresultmodeljson.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/readitemmodeljson.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/readmodeljson.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/readresultitemmodeljson.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/readresultmodeljson.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/report.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/resource.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/resourcesmanager.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/simpleattributeoperand.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/statuscodes.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/typeevent.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/writeitemmodeljson.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi/writemodeljson.py +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi.egg-info/SOURCES.txt +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi.egg-info/dependency_links.txt +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi.egg-info/requires.txt +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/epmwebapi.egg-info/top_level.txt +0 -0
- {epmwebapi-6.50.41 → epmwebapi-7.50.11}/setup.cfg +0 -0
|
@@ -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
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|