DLMS-SPODES 0.86.18__py3-none-any.whl → 0.86.20__py3-none-any.whl
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.
- DLMS_SPODES/cosem_interface_classes/collection.py +8 -10
- {dlms_spodes-0.86.18.dist-info → dlms_spodes-0.86.20.dist-info}/METADATA +2 -2
- {dlms_spodes-0.86.18.dist-info → dlms_spodes-0.86.20.dist-info}/RECORD +5 -5
- {dlms_spodes-0.86.18.dist-info → dlms_spodes-0.86.20.dist-info}/WHEEL +0 -0
- {dlms_spodes-0.86.18.dist-info → dlms_spodes-0.86.20.dist-info}/top_level.txt +0 -0
|
@@ -744,13 +744,11 @@ class Collection:
|
|
|
744
744
|
|
|
745
745
|
def copy(self) -> result.Simple["Collection"]:
|
|
746
746
|
"""copy collection with value by Association"""
|
|
747
|
-
res = result.Simple(
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
cntr_ver=self.__country_ver),
|
|
753
|
-
msg=inspect.currentframe().f_code.co_qualname
|
|
747
|
+
res = result.Simple(Collection(
|
|
748
|
+
id_=self.id,
|
|
749
|
+
dlms_ver=self.__dlms_ver,
|
|
750
|
+
country=self.__country,
|
|
751
|
+
cntr_ver=self.__country_ver)
|
|
754
752
|
)
|
|
755
753
|
res.value.spec_map = self.spec_map
|
|
756
754
|
max_ass: AssociationLN | None = None
|
|
@@ -867,7 +865,7 @@ class Collection:
|
|
|
867
865
|
""" get object, return None if it absence """
|
|
868
866
|
return self.__objs.get(obis, None)
|
|
869
867
|
|
|
870
|
-
def par2obj(self, par: Parameter) -> result.
|
|
868
|
+
def par2obj(self, par: Parameter) -> result.SimpleOrError[InterfaceClass]:
|
|
871
869
|
"""return: DLMSObject"""
|
|
872
870
|
if obj := self.__objs.get(par.obis):
|
|
873
871
|
return result.Simple(obj)
|
|
@@ -1229,13 +1227,13 @@ class Collection:
|
|
|
1229
1227
|
else:
|
|
1230
1228
|
return obj
|
|
1231
1229
|
|
|
1232
|
-
def obis2obj(self, obis: o.OBIS) -> result.
|
|
1230
|
+
def obis2obj(self, obis: o.OBIS) -> result.SimpleOrError[InterfaceClass]:
|
|
1233
1231
|
res = self.__objs.get(obis)
|
|
1234
1232
|
if res.value is None:
|
|
1235
1233
|
return result.Error.from_e(exc.NoObject(obis))
|
|
1236
1234
|
return result.Simple(res.value)
|
|
1237
1235
|
|
|
1238
|
-
def logicalName2obj(self, ln: cst.LogicalName) -> result.
|
|
1236
|
+
def logicalName2obj(self, ln: cst.LogicalName) -> result.SimpleOrError[InterfaceClass]:
|
|
1239
1237
|
return self.obis2obj(o.OBIS(ln.contents))
|
|
1240
1238
|
|
|
1241
1239
|
@cached_property
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: DLMS_SPODES
|
|
3
|
-
Version: 0.86.
|
|
3
|
+
Version: 0.86.20
|
|
4
4
|
Summary: dlms-spodes
|
|
5
5
|
Author-email: Serj Kotilevski <youserj@outlook.com>
|
|
6
6
|
Project-URL: Source, https://github.com/youserj/DlmsSPODES-project
|
|
@@ -14,7 +14,7 @@ Requires-Dist: pydantic>=2.11
|
|
|
14
14
|
Requires-Dist: cryptography>=45.0
|
|
15
15
|
Requires-Dist: semver>=3.0
|
|
16
16
|
Requires-Dist: typing-extensions>=4.12.2
|
|
17
|
-
Requires-Dist: StructResult>=0.8.
|
|
17
|
+
Requires-Dist: StructResult>=0.8.5
|
|
18
18
|
Requires-Dist: numpy>=2.3.2
|
|
19
19
|
Provides-Extra: dev
|
|
20
20
|
Requires-Dist: mypy>=1.5.0; extra == "dev"
|
|
@@ -25,7 +25,7 @@ DLMS_SPODES/cosem_interface_classes/activity_calendar.py,sha256=VWSiKn2LNBA1VLAA
|
|
|
25
25
|
DLMS_SPODES/cosem_interface_classes/arbitrator.py,sha256=S9TguoMG6O5DpMBp6mpcJpw6PHanvh4SEAN3M_v6qts,3240
|
|
26
26
|
DLMS_SPODES/cosem_interface_classes/attr_indexes.py,sha256=aUSnT-dKoBsDbwLhlgtLIHGRl7PZrT-ld2ThCEUjUeA,328
|
|
27
27
|
DLMS_SPODES/cosem_interface_classes/clock.py,sha256=9OJwRGrbFPws_VZPayHv-hzFJegIcjgoJoenIqofd5w,4525
|
|
28
|
-
DLMS_SPODES/cosem_interface_classes/collection.py,sha256=
|
|
28
|
+
DLMS_SPODES/cosem_interface_classes/collection.py,sha256=XkxulEE3OQru6taM732_UNOXuCpy8UZKYqhZV_Wco2A,96415
|
|
29
29
|
DLMS_SPODES/cosem_interface_classes/cosem_interface_class.py,sha256=LUtooNc45Fvk2d7oIPRT41zJDQnyo5Y3S5T-90WV7QE,23506
|
|
30
30
|
DLMS_SPODES/cosem_interface_classes/data.py,sha256=YSjA3Y0M5NMcfYzWPEuZw6ojIqr2UghgW_ck8dXySMU,809
|
|
31
31
|
DLMS_SPODES/cosem_interface_classes/disconnect_control.py,sha256=CIx7I4QRpPxAC5iYxpbhCIuv6U2P3s6ELam8eD-kD5w,2926
|
|
@@ -112,7 +112,7 @@ DLMS_SPODES/types/implementations/integers.py,sha256=KAcaTY8ZwhBaJThbLSr39Oh_-9h
|
|
|
112
112
|
DLMS_SPODES/types/implementations/long_unsigneds.py,sha256=SxmFvD2moQ03p-KZSBYK1Rv7bQSaywlHVXBfkTZG1OQ,8761
|
|
113
113
|
DLMS_SPODES/types/implementations/octet_string.py,sha256=Jo_sfWcsfstiP4O6mXfBOOQlksx1c2qJMI-vbAOV-yM,294
|
|
114
114
|
DLMS_SPODES/types/implementations/structs.py,sha256=GMOo6Jy8jA9d6KTLs0D-j5t0oSRvxUIwtBr_4UePwbA,2059
|
|
115
|
-
dlms_spodes-0.86.
|
|
116
|
-
dlms_spodes-0.86.
|
|
117
|
-
dlms_spodes-0.86.
|
|
118
|
-
dlms_spodes-0.86.
|
|
115
|
+
dlms_spodes-0.86.20.dist-info/METADATA,sha256=HeWihdUI3p-KXWOeiuLay9LvQGoSsl0MAJr6E7YJ1sw,1028
|
|
116
|
+
dlms_spodes-0.86.20.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
117
|
+
dlms_spodes-0.86.20.dist-info/top_level.txt,sha256=k26SRuRdwBZrSM3NgNZECAUNIDZREbJuLCnPbWtTNak,12
|
|
118
|
+
dlms_spodes-0.86.20.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|