DLMS-SPODES 0.86.11__py3-none-any.whl → 0.86.13__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.
@@ -1,18 +1,27 @@
1
+ from dataclasses import dataclass
1
2
  from typing import Protocol, ClassVar
2
3
  from functools import cached_property
3
4
  from .parameter import Parameter
4
5
 
5
6
 
7
+ @dataclass
6
8
  class Base(Protocol):
7
- OBIS: ClassVar[Parameter]
9
+ OBIS: Parameter
8
10
 
9
11
  @cached_property
10
12
  def LN(self) -> Parameter:
11
13
  return self.OBIS.set_i(1)
12
14
 
13
15
 
14
- class Data(Base, Protocol):
15
-
16
+ @dataclass
17
+ class Data(Base):
16
18
  @cached_property
17
19
  def VALUE(self) -> Parameter:
18
20
  return self.OBIS.set_i(2)
21
+
22
+
23
+ @dataclass
24
+ class Register(Data):
25
+ @cached_property
26
+ def SCALER_UNIT(self) -> Parameter:
27
+ return self.OBIS.set_i(3)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: DLMS_SPODES
3
- Version: 0.86.11
3
+ Version: 0.86.13
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
@@ -38,7 +38,7 @@ DLMS_SPODES/cosem_interface_classes/ln_pattern.py,sha256=IPluhyGWJQLBEUjOjdfEMct
38
38
  DLMS_SPODES/cosem_interface_classes/obis.py,sha256=yEwYm5CshJx8X8uSy3QH8XIbdVPg8Tt6zPUjFgkAB0M,575
39
39
  DLMS_SPODES/cosem_interface_classes/overview.py,sha256=4RjE6_5x_dDGv4M5J2rjT8MZDF-Q4nFE8JSOUA7OD84,6973
40
40
  DLMS_SPODES/cosem_interface_classes/parameter.py,sha256=ukoDSqGutYV4K4QSaM7i9zKYm8eyqQ8gnOWvqqAeDCo,18252
41
- DLMS_SPODES/cosem_interface_classes/parameters.py,sha256=hNW-fZ-4up_CQLNKvTSwaBx0HdkM3zC3shzd9sG0bi4,388
41
+ DLMS_SPODES/cosem_interface_classes/parameters.py,sha256=My5kD6RNo5f4gtqoI5y4KiPHNiyhtqcuCpjnRMnKbCg,562
42
42
  DLMS_SPODES/cosem_interface_classes/register.py,sha256=ClnkQ9-lg9NCxxCtFLR0soQ7VuNdigHia9qx1suGVZE,1854
43
43
  DLMS_SPODES/cosem_interface_classes/register_monitor.py,sha256=CrcFqas157kGaaDDwy8a0DKy5wK1Jm-tzCOBGBLuIKM,1760
44
44
  DLMS_SPODES/cosem_interface_classes/reports.py,sha256=9kOt9Ztyp5D59j3k3x5URy7WD1qlFNMa8xFlMu7nUmA,3320
@@ -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.11.dist-info/METADATA,sha256=AbGIOtpiKkBMXknUmlyMyEIlsKR-9CuY5iXdAFnuTzA,999
116
- dlms_spodes-0.86.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
117
- dlms_spodes-0.86.11.dist-info/top_level.txt,sha256=k26SRuRdwBZrSM3NgNZECAUNIDZREbJuLCnPbWtTNak,12
118
- dlms_spodes-0.86.11.dist-info/RECORD,,
115
+ dlms_spodes-0.86.13.dist-info/METADATA,sha256=u1T7Del9Yf_5foa_0XZ1SkSvFsTQce5yK5DdStQfXjo,999
116
+ dlms_spodes-0.86.13.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
117
+ dlms_spodes-0.86.13.dist-info/top_level.txt,sha256=k26SRuRdwBZrSM3NgNZECAUNIDZREbJuLCnPbWtTNak,12
118
+ dlms_spodes-0.86.13.dist-info/RECORD,,