DLMS-SPODES-client 0.19.35__py3-none-any.whl → 0.19.37__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 -2093
  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 +90 -90
  52. DLMS_SPODES_client/session.py +363 -363
  53. DLMS_SPODES_client/settings.py +48 -48
  54. DLMS_SPODES_client/task.py +1884 -1884
  55. {dlms_spodes_client-0.19.35.dist-info → dlms_spodes_client-0.19.37.dist-info}/METADATA +29 -29
  56. dlms_spodes_client-0.19.37.dist-info/RECORD +61 -0
  57. {dlms_spodes_client-0.19.35.dist-info → dlms_spodes_client-0.19.37.dist-info}/WHEEL +1 -1
  58. dlms_spodes_client-0.19.35.dist-info/RECORD +0 -61
  59. {dlms_spodes_client-0.19.35.dist-info → dlms_spodes_client-0.19.37.dist-info}/entry_points.txt +0 -0
  60. {dlms_spodes_client-0.19.35.dist-info → dlms_spodes_client-0.19.37.dist-info}/top_level.txt +0 -0
@@ -1,21 +1,21 @@
1
- from enum import IntFlag
2
-
3
-
4
- class TraceLevel(IntFlag):
5
- ###Specifies trace levels.###
6
- #pylint: disable=too-few-public-methods
7
-
8
- OFF = 0x0
9
- ###Output no tracing and debugging messages.###
10
-
11
- ERROR = 0x1
12
- ###Output error-handling messages.###
13
-
14
- WARNING = 0x2
15
- ###Output warnings and error-handling messages.###
16
-
17
- INFO = 0x4
18
- ###Output informational messages, warnings, and error-handling messages.###
19
-
20
- VERBOSE = 0x8
21
- ###Output all debugging and tracing messages.###
1
+ from enum import IntFlag
2
+
3
+
4
+ class TraceLevel(IntFlag):
5
+ ###Specifies trace levels.###
6
+ #pylint: disable=too-few-public-methods
7
+
8
+ OFF = 0x0
9
+ ###Output no tracing and debugging messages.###
10
+
11
+ ERROR = 0x1
12
+ ###Output error-handling messages.###
13
+
14
+ WARNING = 0x2
15
+ ###Output warnings and error-handling messages.###
16
+
17
+ INFO = 0x4
18
+ ###Output informational messages, warnings, and error-handling messages.###
19
+
20
+ VERBOSE = 0x8
21
+ ###Output all debugging and tracing messages.###
@@ -1,37 +1,37 @@
1
- from .enums.Security import Security
2
- from .CountType import CountType
3
- from DLMS_SPODES.cosem_interface_classes.security_setup.ver1 import SecuritySuite
4
-
5
-
6
- class AesGcmParameter:
7
- def __init__(self, tag=0, systemTitle=None, blockCipherKey=None, authenticationKey=None):
8
- """
9
- Constructor.
10
- tag : Tag.
11
- systemTitle : System title.
12
- blockCipherKey : Block cipher key.
13
- authenticationKey : Authentication key.
14
- """
15
- self.tag = tag
16
- self.security = Security.NONE
17
- self.invocationCounter = 0
18
- # Used security suite.
19
- self.securitySuite = SecuritySuite.AES_GCM_128_AUT_ENCR_AND_AES_128_KEY_WRAP
20
- self.blockCipherKey = blockCipherKey
21
- self.authenticationKey = authenticationKey
22
- self.systemTitle = systemTitle
23
- self.recipientSystemTitle = None
24
- # Count type.
25
- self.type_ = CountType.PACKET
26
- self.dateTime = None
27
- self.otherInformation = None
28
- self.countTag = None
29
- self.keyParameters = None
30
- self.keyCipheredData = None
31
- self.cipheredContent = None
32
- # Shared secret is generated when connection is made.
33
- self.sharedSecret = None
34
- # xml settings. This is used only on xml parser.
35
- self.xml = None
36
- # System title is not send on pre-established connecions.
37
- self.ignoreSystemTitle = False
1
+ from .enums.Security import Security
2
+ from .CountType import CountType
3
+ from DLMS_SPODES.cosem_interface_classes.security_setup.ver1 import SecuritySuite
4
+
5
+
6
+ class AesGcmParameter:
7
+ def __init__(self, tag=0, systemTitle=None, blockCipherKey=None, authenticationKey=None):
8
+ """
9
+ Constructor.
10
+ tag : Tag.
11
+ systemTitle : System title.
12
+ blockCipherKey : Block cipher key.
13
+ authenticationKey : Authentication key.
14
+ """
15
+ self.tag = tag
16
+ self.security = Security.NONE
17
+ self.invocationCounter = 0
18
+ # Used security suite.
19
+ self.securitySuite = SecuritySuite.AES_GCM_128_AUT_ENCR_AND_AES_128_KEY_WRAP
20
+ self.blockCipherKey = blockCipherKey
21
+ self.authenticationKey = authenticationKey
22
+ self.systemTitle = systemTitle
23
+ self.recipientSystemTitle = None
24
+ # Count type.
25
+ self.type_ = CountType.PACKET
26
+ self.dateTime = None
27
+ self.otherInformation = None
28
+ self.countTag = None
29
+ self.keyParameters = None
30
+ self.keyCipheredData = None
31
+ self.cipheredContent = None
32
+ # Shared secret is generated when connection is made.
33
+ self.sharedSecret = None
34
+ # xml settings. This is used only on xml parser.
35
+ self.xml = None
36
+ # System title is not send on pre-established connecions.
37
+ self.ignoreSystemTitle = False
@@ -1,16 +1,16 @@
1
- from enum import IntEnum
2
-
3
-
4
- class CountType(IntEnum):
5
- """
6
- Enumerate values that are add to counted GMAC.
7
- """
8
-
9
- # Total packet is created.
10
- PACKET = -1
11
-
12
- # Counted Tag is added.
13
- TAG = 0x1
14
-
15
- # Data is added.
16
- DATA = 0x2
1
+ from enum import IntEnum
2
+
3
+
4
+ class CountType(IntEnum):
5
+ """
6
+ Enumerate values that are add to counted GMAC.
7
+ """
8
+
9
+ # Total packet is created.
10
+ PACKET = -1
11
+
12
+ # Counted Tag is added.
13
+ TAG = 0x1
14
+
15
+ # Data is added.
16
+ DATA = 0x2