DLMS-SPODES-client 0.19.24__py3-none-any.whl → 0.19.27__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.
Files changed (60) hide show
  1. DLMS_SPODES_client/FCS16.py +39 -39
  2. DLMS_SPODES_client/__init__.py +12 -12
  3. DLMS_SPODES_client/client.py +2093 -2091
  4. DLMS_SPODES_client/gurux_common/enums/TraceLevel.py +21 -21
  5. DLMS_SPODES_client/gurux_dlms/AesGcmParameter.py +37 -37
  6. DLMS_SPODES_client/gurux_dlms/CountType.py +16 -16
  7. DLMS_SPODES_client/gurux_dlms/GXByteBuffer.py +545 -545
  8. DLMS_SPODES_client/gurux_dlms/GXCiphering.py +196 -196
  9. DLMS_SPODES_client/gurux_dlms/GXDLMS.py +426 -426
  10. DLMS_SPODES_client/gurux_dlms/GXDLMSChippering.py +237 -237
  11. DLMS_SPODES_client/gurux_dlms/GXDLMSChipperingStream.py +977 -977
  12. DLMS_SPODES_client/gurux_dlms/GXDLMSConfirmedServiceError.py +90 -90
  13. DLMS_SPODES_client/gurux_dlms/GXDLMSException.py +139 -139
  14. DLMS_SPODES_client/gurux_dlms/GXDLMSLNParameters.py +33 -33
  15. DLMS_SPODES_client/gurux_dlms/GXDLMSSNParameters.py +21 -21
  16. DLMS_SPODES_client/gurux_dlms/GXDLMSSettings.py +254 -254
  17. DLMS_SPODES_client/gurux_dlms/GXReplyData.py +87 -87
  18. DLMS_SPODES_client/gurux_dlms/HdlcControlFrame.py +9 -9
  19. DLMS_SPODES_client/gurux_dlms/MBusCommand.py +8 -8
  20. DLMS_SPODES_client/gurux_dlms/MBusEncryptionMode.py +27 -27
  21. DLMS_SPODES_client/gurux_dlms/ResponseType.py +8 -8
  22. DLMS_SPODES_client/gurux_dlms/SetResponseType.py +29 -29
  23. DLMS_SPODES_client/gurux_dlms/_HDLCInfo.py +9 -9
  24. DLMS_SPODES_client/gurux_dlms/__init__.py +75 -75
  25. DLMS_SPODES_client/gurux_dlms/enums/Access.py +12 -12
  26. DLMS_SPODES_client/gurux_dlms/enums/ApplicationReference.py +14 -14
  27. DLMS_SPODES_client/gurux_dlms/enums/Authentication.py +41 -41
  28. DLMS_SPODES_client/gurux_dlms/enums/BerType.py +35 -35
  29. DLMS_SPODES_client/gurux_dlms/enums/Command.py +285 -285
  30. DLMS_SPODES_client/gurux_dlms/enums/Definition.py +9 -9
  31. DLMS_SPODES_client/gurux_dlms/enums/ErrorCode.py +46 -46
  32. DLMS_SPODES_client/gurux_dlms/enums/ExceptionServiceError.py +12 -12
  33. DLMS_SPODES_client/gurux_dlms/enums/HardwareResource.py +10 -10
  34. DLMS_SPODES_client/gurux_dlms/enums/HdlcFrameType.py +9 -9
  35. DLMS_SPODES_client/gurux_dlms/enums/Initiate.py +10 -10
  36. DLMS_SPODES_client/gurux_dlms/enums/LoadDataSet.py +13 -13
  37. DLMS_SPODES_client/gurux_dlms/enums/ObjectType.py +306 -306
  38. DLMS_SPODES_client/gurux_dlms/enums/Priority.py +7 -7
  39. DLMS_SPODES_client/gurux_dlms/enums/RequestTypes.py +9 -9
  40. DLMS_SPODES_client/gurux_dlms/enums/Security.py +14 -14
  41. DLMS_SPODES_client/gurux_dlms/enums/Service.py +16 -16
  42. DLMS_SPODES_client/gurux_dlms/enums/ServiceClass.py +9 -9
  43. DLMS_SPODES_client/gurux_dlms/enums/ServiceError.py +8 -8
  44. DLMS_SPODES_client/gurux_dlms/enums/Standard.py +18 -18
  45. DLMS_SPODES_client/gurux_dlms/enums/StateError.py +7 -7
  46. DLMS_SPODES_client/gurux_dlms/enums/Task.py +10 -10
  47. DLMS_SPODES_client/gurux_dlms/enums/VdeStateError.py +10 -10
  48. DLMS_SPODES_client/gurux_dlms/enums/__init__.py +33 -33
  49. DLMS_SPODES_client/gurux_dlms/internal/_GXCommon.py +1673 -1673
  50. DLMS_SPODES_client/logger.py +56 -56
  51. DLMS_SPODES_client/services.py +97 -97
  52. DLMS_SPODES_client/session.py +365 -365
  53. DLMS_SPODES_client/settings.py +48 -48
  54. DLMS_SPODES_client/task.py +1847 -1841
  55. {dlms_spodes_client-0.19.24.dist-info → dlms_spodes_client-0.19.27.dist-info}/METADATA +29 -29
  56. dlms_spodes_client-0.19.27.dist-info/RECORD +61 -0
  57. dlms_spodes_client-0.19.24.dist-info/RECORD +0 -61
  58. {dlms_spodes_client-0.19.24.dist-info → dlms_spodes_client-0.19.27.dist-info}/WHEEL +0 -0
  59. {dlms_spodes_client-0.19.24.dist-info → dlms_spodes_client-0.19.27.dist-info}/entry_points.txt +0 -0
  60. {dlms_spodes_client-0.19.24.dist-info → dlms_spodes_client-0.19.27.dist-info}/top_level.txt +0 -0
@@ -1,14 +1,14 @@
1
- from enum import IntEnum
2
-
3
-
4
- class Security(IntEnum):
5
- """Used security model."""
6
- #pylint: disable=too-few-public-methods
7
- # Transport security is not used.
8
- NONE = 0
9
- # Authentication security is used.
10
- AUTHENTICATION = 0x10
11
- # Encryption security is used.
12
- ENCRYPTION = 0x20
13
- # Authentication and Encryption security are used.
14
- AUTHENTICATION_ENCRYPTION = 0x30
1
+ from enum import IntEnum
2
+
3
+
4
+ class Security(IntEnum):
5
+ """Used security model."""
6
+ #pylint: disable=too-few-public-methods
7
+ # Transport security is not used.
8
+ NONE = 0
9
+ # Authentication security is used.
10
+ AUTHENTICATION = 0x10
11
+ # Encryption security is used.
12
+ ENCRYPTION = 0x20
13
+ # Authentication and Encryption security are used.
14
+ AUTHENTICATION_ENCRYPTION = 0x30
@@ -1,16 +1,16 @@
1
- from enum import IntEnum
2
-
3
-
4
- class Service(IntEnum):
5
- """Service describes service errors."""
6
- #pylint: disable=too-few-public-methods
7
- # Other error.
8
- OTHER = 0
9
- # PDU size is wrong.
10
- PDU_SIZE = 1
11
- # Service is unsupported.
12
- UNSUPPORTED = 2
13
-
14
- @classmethod
15
- def valueofString(cls, value):
16
- return Service[value.upper()]
1
+ from enum import IntEnum
2
+
3
+
4
+ class Service(IntEnum):
5
+ """Service describes service errors."""
6
+ #pylint: disable=too-few-public-methods
7
+ # Other error.
8
+ OTHER = 0
9
+ # PDU size is wrong.
10
+ PDU_SIZE = 1
11
+ # Service is unsupported.
12
+ UNSUPPORTED = 2
13
+
14
+ @classmethod
15
+ def valueofString(cls, value):
16
+ return Service[value.upper()]
@@ -1,9 +1,9 @@
1
- from enum import IntEnum
2
-
3
-
4
- class ServiceClass(IntEnum):
5
- """Used service."""
6
- #pylint: disable=too-few-public-methods
7
-
8
- UN_CONFIRMED = 0
9
- CONFIRMED = 1
1
+ from enum import IntEnum
2
+
3
+
4
+ class ServiceClass(IntEnum):
5
+ """Used service."""
6
+ #pylint: disable=too-few-public-methods
7
+
8
+ UN_CONFIRMED = 0
9
+ CONFIRMED = 1
@@ -1,8 +1,8 @@
1
- from enum import IntEnum
2
-
3
-
4
- class ServiceError(IntEnum):
5
- """DLMS service errors """
6
- OPERATION_NOT_POSSIBLE = 1
7
- SERVICE_NOT_SUPPORTED = 2
8
- OTHER_REASON = 3
1
+ from enum import IntEnum
2
+
3
+
4
+ class ServiceError(IntEnum):
5
+ """DLMS service errors """
6
+ OPERATION_NOT_POSSIBLE = 1
7
+ SERVICE_NOT_SUPPORTED = 2
8
+ OTHER_REASON = 3
@@ -1,18 +1,18 @@
1
- from enum import IntEnum
2
-
3
-
4
- class Standard(IntEnum):
5
- """Used DLMS standard."""
6
- #Meter uses default DLMS IEC 62056 standard. https://dlms.com
7
- DLMS = 0
8
- #Meter uses India DLMS standard IS 15959-2. https://www.standardsbis.in
9
- INDIA = 1
10
- #Meter uses Italy DLMS standard UNI/TS 11291-11-2. https://uni.com
11
- ITALY = 2
12
- #Meter uses Saudi Arabia DLMS standard.
13
- SAUDI_ARABIA = 3
14
- #Meter uses IDIS DLMS standard. https://www.idis-association.com/
15
- IDIS = 4
16
- # Russia СПОДЭС
17
- RUSSIA = 99
18
-
1
+ from enum import IntEnum
2
+
3
+
4
+ class Standard(IntEnum):
5
+ """Used DLMS standard."""
6
+ #Meter uses default DLMS IEC 62056 standard. https://dlms.com
7
+ DLMS = 0
8
+ #Meter uses India DLMS standard IS 15959-2. https://www.standardsbis.in
9
+ INDIA = 1
10
+ #Meter uses Italy DLMS standard UNI/TS 11291-11-2. https://uni.com
11
+ ITALY = 2
12
+ #Meter uses Saudi Arabia DLMS standard.
13
+ SAUDI_ARABIA = 3
14
+ #Meter uses IDIS DLMS standard. https://www.idis-association.com/
15
+ IDIS = 4
16
+ # Russia СПОДЭС
17
+ RUSSIA = 99
18
+
@@ -1,7 +1,7 @@
1
- from enum import IntEnum
2
-
3
-
4
- class StateError(IntEnum):
5
- """DLMS state errors."""
6
- SERVICE_NOT_ALLOWED = 1
7
- SERVICE_UNKNOWN = 2
1
+ from enum import IntEnum
2
+
3
+
4
+ class StateError(IntEnum):
5
+ """DLMS state errors."""
6
+ SERVICE_NOT_ALLOWED = 1
7
+ SERVICE_UNKNOWN = 2
@@ -1,10 +1,10 @@
1
- from enum import IntEnum
2
-
3
-
4
- class Task(IntEnum):
5
- """Task describes load task errors."""
6
- OTHER = 0
7
- NO_REMOTE_CONTROL = 1
8
- TI_STOPPED = 2
9
- TI_RUNNING = 3
10
- TI_UNUSABLE = 4
1
+ from enum import IntEnum
2
+
3
+
4
+ class Task(IntEnum):
5
+ """Task describes load task errors."""
6
+ OTHER = 0
7
+ NO_REMOTE_CONTROL = 1
8
+ TI_STOPPED = 2
9
+ TI_RUNNING = 3
10
+ TI_UNUSABLE = 4
@@ -1,10 +1,10 @@
1
- from enum import IntEnum
2
-
3
-
4
- class VdeStateError(IntEnum):
5
- """VdeState error describes Vde state errors."""
6
- OTHER = 0
7
- NO_DLMS_CONTEXT = 1
8
- LOADING_DATASET = 2
9
- STATUS_NO_CHANGE = 3
10
- STATUS_INOPERABLE = 4
1
+ from enum import IntEnum
2
+
3
+
4
+ class VdeStateError(IntEnum):
5
+ """VdeState error describes Vde state errors."""
6
+ OTHER = 0
7
+ NO_DLMS_CONTEXT = 1
8
+ LOADING_DATASET = 2
9
+ STATUS_NO_CHANGE = 3
10
+ STATUS_INOPERABLE = 4
@@ -1,33 +1,33 @@
1
- from .Authentication import Authentication
2
- from .BerType import BerType
3
- from .ErrorCode import ErrorCode
4
- from .Priority import Priority
5
- from .RequestTypes import RequestTypes
6
- from .Security import Security
7
- from .ServiceClass import ServiceClass
8
- from .ServiceError import ServiceError
9
- from .Standard import Standard
10
- from .StateError import StateError
11
- from .Service import Service
12
- from .Command import Command
13
- # from .Access import Access
14
- # from .AccessMode import AccessMode
15
- # from .AccessServiceCommandType import AccessServiceCommandType
16
- # from .ApplicationReference import ApplicationReference
17
- # from .ClockStatus import ClockStatus
18
- # from .Conformance import Conformance
19
- # from .DataType import DataType
20
- # from .DateTimeSkips import DateTimeSkips
21
- # from .DateTimeExtraInfo import DateTimeExtraInfo
22
- # from .Definition import Definition
23
- # from .ExceptionServiceError import ExceptionServiceError
24
- # from .HardwareResource import HardwareResource
25
- # from .Initiate import Initiate
26
- # from .KeyAgreement import KeyAgreement
27
- # from .LoadDataSet import LoadDataSet
28
- # from .MethodAccessMode import MethodAccessMode
29
- # from .ObjectType import ObjectType
30
- # from .Task import Task
31
- # from .Unit import Unit
32
- # from .VdeStateError import VdeStateError
33
- # from .HdlcFrameType import HdlcFrameType
1
+ from .Authentication import Authentication
2
+ from .BerType import BerType
3
+ from .ErrorCode import ErrorCode
4
+ from .Priority import Priority
5
+ from .RequestTypes import RequestTypes
6
+ from .Security import Security
7
+ from .ServiceClass import ServiceClass
8
+ from .ServiceError import ServiceError
9
+ from .Standard import Standard
10
+ from .StateError import StateError
11
+ from .Service import Service
12
+ from .Command import Command
13
+ # from .Access import Access
14
+ # from .AccessMode import AccessMode
15
+ # from .AccessServiceCommandType import AccessServiceCommandType
16
+ # from .ApplicationReference import ApplicationReference
17
+ # from .ClockStatus import ClockStatus
18
+ # from .Conformance import Conformance
19
+ # from .DataType import DataType
20
+ # from .DateTimeSkips import DateTimeSkips
21
+ # from .DateTimeExtraInfo import DateTimeExtraInfo
22
+ # from .Definition import Definition
23
+ # from .ExceptionServiceError import ExceptionServiceError
24
+ # from .HardwareResource import HardwareResource
25
+ # from .Initiate import Initiate
26
+ # from .KeyAgreement import KeyAgreement
27
+ # from .LoadDataSet import LoadDataSet
28
+ # from .MethodAccessMode import MethodAccessMode
29
+ # from .ObjectType import ObjectType
30
+ # from .Task import Task
31
+ # from .Unit import Unit
32
+ # from .VdeStateError import VdeStateError
33
+ # from .HdlcFrameType import HdlcFrameType