COSEMpdu 0.3.2__tar.gz → 0.3.3__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.
Files changed (55) hide show
  1. {cosempdu-0.3.2/src/COSEMpdu.egg-info → cosempdu-0.3.3}/PKG-INFO +1 -1
  2. {cosempdu-0.3.2 → cosempdu-0.3.3}/pyproject.toml +1 -1
  3. {cosempdu-0.3.2 → cosempdu-0.3.3}/src/COSEMpdu/x680/enumerated_type.py +5 -0
  4. {cosempdu-0.3.2 → cosempdu-0.3.3/src/COSEMpdu.egg-info}/PKG-INFO +1 -1
  5. {cosempdu-0.3.2 → cosempdu-0.3.3}/.github/workflows/publish.yml +0 -0
  6. {cosempdu-0.3.2 → cosempdu-0.3.3}/.gitignore +0 -0
  7. {cosempdu-0.3.2 → cosempdu-0.3.3}/.vscode/launch.json +0 -0
  8. {cosempdu-0.3.2 → cosempdu-0.3.3}/README.md +0 -0
  9. {cosempdu-0.3.2 → cosempdu-0.3.3}/setup.cfg +0 -0
  10. {cosempdu-0.3.2 → cosempdu-0.3.3}/src/COSEMpdu/__init__.py +0 -0
  11. {cosempdu-0.3.2 → cosempdu-0.3.3}/src/COSEMpdu/acse.py +0 -0
  12. {cosempdu-0.3.2 → cosempdu-0.3.3}/src/COSEMpdu/apdu.py +0 -0
  13. {cosempdu-0.3.2 → cosempdu-0.3.3}/src/COSEMpdu/axdr.py +0 -0
  14. {cosempdu-0.3.2 → cosempdu-0.3.3}/src/COSEMpdu/ber.py +0 -0
  15. {cosempdu-0.3.2 → cosempdu-0.3.3}/src/COSEMpdu/byte_buffer.py +0 -0
  16. {cosempdu-0.3.2 → cosempdu-0.3.3}/src/COSEMpdu/data.py +0 -0
  17. {cosempdu-0.3.2 → cosempdu-0.3.3}/src/COSEMpdu/key_info.py +0 -0
  18. {cosempdu-0.3.2 → cosempdu-0.3.3}/src/COSEMpdu/py.typed +0 -0
  19. {cosempdu-0.3.2 → cosempdu-0.3.3}/src/COSEMpdu/service_error.py +0 -0
  20. {cosempdu-0.3.2 → cosempdu-0.3.3}/src/COSEMpdu/types_used.py +0 -0
  21. {cosempdu-0.3.2 → cosempdu-0.3.3}/src/COSEMpdu/useful_types.py +0 -0
  22. {cosempdu-0.3.2 → cosempdu-0.3.3}/src/COSEMpdu/user_information.py +0 -0
  23. {cosempdu-0.3.2 → cosempdu-0.3.3}/src/COSEMpdu/x680/__init__.py +0 -0
  24. {cosempdu-0.3.2 → cosempdu-0.3.3}/src/COSEMpdu/x680/bit_string.py +0 -0
  25. {cosempdu-0.3.2 → cosempdu-0.3.3}/src/COSEMpdu/x680/boolean_type.py +0 -0
  26. {cosempdu-0.3.2 → cosempdu-0.3.3}/src/COSEMpdu/x680/choice_type.py +0 -0
  27. {cosempdu-0.3.2 → cosempdu-0.3.3}/src/COSEMpdu/x680/constrained_type.py +0 -0
  28. {cosempdu-0.3.2 → cosempdu-0.3.3}/src/COSEMpdu/x680/generalized_time.py +0 -0
  29. {cosempdu-0.3.2 → cosempdu-0.3.3}/src/COSEMpdu/x680/integer_type.py +0 -0
  30. {cosempdu-0.3.2 → cosempdu-0.3.3}/src/COSEMpdu/x680/null_type.py +0 -0
  31. {cosempdu-0.3.2 → cosempdu-0.3.3}/src/COSEMpdu/x680/object_identifier_type.py +0 -0
  32. {cosempdu-0.3.2 → cosempdu-0.3.3}/src/COSEMpdu/x680/octet_string_type.py +0 -0
  33. {cosempdu-0.3.2 → cosempdu-0.3.3}/src/COSEMpdu/x680/sequence_of_type.py +0 -0
  34. {cosempdu-0.3.2 → cosempdu-0.3.3}/src/COSEMpdu/x680/sequence_type.py +0 -0
  35. {cosempdu-0.3.2 → cosempdu-0.3.3}/src/COSEMpdu/x680/tag.py +0 -0
  36. {cosempdu-0.3.2 → cosempdu-0.3.3}/src/COSEMpdu/x680/tagged_type.py +0 -0
  37. {cosempdu-0.3.2 → cosempdu-0.3.3}/src/COSEMpdu/x680/type.py +0 -0
  38. {cosempdu-0.3.2 → cosempdu-0.3.3}/src/COSEMpdu/x690.py +0 -0
  39. {cosempdu-0.3.2 → cosempdu-0.3.3}/src/COSEMpdu.egg-info/SOURCES.txt +0 -0
  40. {cosempdu-0.3.2 → cosempdu-0.3.3}/src/COSEMpdu.egg-info/dependency_links.txt +0 -0
  41. {cosempdu-0.3.2 → cosempdu-0.3.3}/src/COSEMpdu.egg-info/requires.txt +0 -0
  42. {cosempdu-0.3.2 → cosempdu-0.3.3}/src/COSEMpdu.egg-info/top_level.txt +0 -0
  43. {cosempdu-0.3.2 → cosempdu-0.3.3}/test/__init__.py +0 -0
  44. {cosempdu-0.3.2 → cosempdu-0.3.3}/test/test_acse_pdu.py +0 -0
  45. {cosempdu-0.3.2 → cosempdu-0.3.3}/test/test_apdu.py +0 -0
  46. {cosempdu-0.3.2 → cosempdu-0.3.3}/test/test_axdr.py +0 -0
  47. {cosempdu-0.3.2 → cosempdu-0.3.3}/test/test_ber.py +0 -0
  48. {cosempdu-0.3.2 → cosempdu-0.3.3}/test/test_bytebuffer.py +0 -0
  49. {cosempdu-0.3.2 → cosempdu-0.3.3}/test/test_constraint.py +0 -0
  50. {cosempdu-0.3.2 → cosempdu-0.3.3}/test/test_data.py +0 -0
  51. {cosempdu-0.3.2 → cosempdu-0.3.3}/test/test_main.py +0 -0
  52. {cosempdu-0.3.2 → cosempdu-0.3.3}/test/test_service_error.py +0 -0
  53. {cosempdu-0.3.2 → cosempdu-0.3.3}/test/test_types_used.py +0 -0
  54. {cosempdu-0.3.2 → cosempdu-0.3.3}/test/test_x680_bitstring.py +0 -0
  55. {cosempdu-0.3.2 → cosempdu-0.3.3}/test/test_x690.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: COSEMpdu
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: cosem-pdu
5
5
  Author-email: Serj Kotilevski <youserj@outlook.com>
6
6
  Project-URL: Source, https://github.com/youserj/COSEMpdu_project
@@ -9,7 +9,7 @@ package-dir = {"" = "src"}
9
9
 
10
10
  [project]
11
11
  name = "COSEMpdu"
12
- version = "0.3.2"
12
+ version = "0.3.3"
13
13
  authors = [
14
14
  {name="Serj Kotilevski", email="youserj@outlook.com"}
15
15
  ]
@@ -83,6 +83,11 @@ class EnumeratedType(Simple[INTEGER], BuiltinType):
83
83
  named_members: ClassVar[Optional[EnumerationList]] = None
84
84
  value: INTEGER
85
85
 
86
+ def __init_subclass__(cls) -> None:
87
+ if cls.named_members:
88
+ for member in cls.named_members:
89
+ setattr(cls, member.identifier, member.value)
90
+
86
91
  @classmethod
87
92
  def default(cls) -> Self:
88
93
  """Default value: first member in the list."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: COSEMpdu
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: cosem-pdu
5
5
  Author-email: Serj Kotilevski <youserj@outlook.com>
6
6
  Project-URL: Source, https://github.com/youserj/COSEMpdu_project
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes