aas-http-client 1.3.1__tar.gz → 1.3.2__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 (37) hide show
  1. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/PKG-INFO +1 -1
  2. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/aas_http_client/utilities/encoder.py +2 -2
  3. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/aas_http_client.egg-info/PKG-INFO +1 -1
  4. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/pyproject.toml +1 -1
  5. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/tests/test_utils.py +12 -0
  6. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/LICENSE +0 -0
  7. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/README.md +0 -0
  8. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/aas_http_client/__init__.py +0 -0
  9. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/aas_http_client/classes/Configuration/config_classes.py +0 -0
  10. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/aas_http_client/classes/client/aas_client.py +0 -0
  11. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/aas_http_client/classes/client/implementations/__init__.py +0 -0
  12. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/aas_http_client/classes/client/implementations/authentication.py +0 -0
  13. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/aas_http_client/classes/client/implementations/experimental_implementation.py +0 -0
  14. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/aas_http_client/classes/client/implementations/shell_implementation.py +0 -0
  15. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/aas_http_client/classes/client/implementations/shell_registry_implementation.py +0 -0
  16. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/aas_http_client/classes/client/implementations/sm_implementation.py +0 -0
  17. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/aas_http_client/classes/client/implementations/sm_registry_implementation.py +0 -0
  18. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/aas_http_client/classes/wrapper/attachment.py +0 -0
  19. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/aas_http_client/classes/wrapper/pagination.py +0 -0
  20. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/aas_http_client/classes/wrapper/sdk_wrapper.py +0 -0
  21. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/aas_http_client/demo/demo_process.py +0 -0
  22. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/aas_http_client/demo/logging_handler.py +0 -0
  23. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/aas_http_client/utilities/__init__.py +0 -0
  24. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/aas_http_client/utilities/constants.py +0 -0
  25. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/aas_http_client/utilities/http_helper.py +0 -0
  26. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/aas_http_client/utilities/model_builder.py +0 -0
  27. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/aas_http_client/utilities/sdk_tools.py +0 -0
  28. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/aas_http_client/utilities/version_check.py +0 -0
  29. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/aas_http_client.egg-info/SOURCES.txt +0 -0
  30. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/aas_http_client.egg-info/dependency_links.txt +0 -0
  31. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/aas_http_client.egg-info/requires.txt +0 -0
  32. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/aas_http_client.egg-info/top_level.txt +0 -0
  33. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/setup.cfg +0 -0
  34. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/tests/test_client.py +0 -0
  35. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/tests/test_client_reg.py +0 -0
  36. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/tests/test_sdk_tools.py +0 -0
  37. {aas_http_client-1.3.1 → aas_http_client-1.3.2}/tests/test_wrapper.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aas-http-client
3
- Version: 1.3.1
3
+ Version: 1.3.2
4
4
  Summary: Flexible Python HTTP client for communication with various types of AAS servers.
5
5
  Author-email: Daniel Klein <daniel.klein@em.ag>
6
6
  License: MIT License
@@ -38,8 +38,8 @@ def is_base_64_encoded(value: str) -> bool:
38
38
  :return: True if the string is Base64 encoded, False otherwise
39
39
  """
40
40
  try:
41
- decoded = base64.b64decode(value, validate=True)
41
+ decoded = decode_base_64(value)
42
42
  except (binascii.Error, ValueError):
43
43
  return False
44
44
 
45
- return base64.b64encode(decoded).decode("ascii") == value
45
+ return encode_base_64(decoded) == value
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aas-http-client
3
- Version: 1.3.1
3
+ Version: 1.3.2
4
4
  Summary: Flexible Python HTTP client for communication with various types of AAS servers.
5
5
  Author-email: Daniel Klein <daniel.klein@em.ag>
6
6
  License: MIT License
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "aas-http-client"
7
- version = "1.3.1"
7
+ version = "1.3.2"
8
8
  description = "Flexible Python HTTP client for communication with various types of AAS servers."
9
9
  readme = "README.md"
10
10
  license = { file = "LICENSE" }
@@ -33,3 +33,15 @@ def test_002b_encode_base_64():
33
33
  assert encoded == "aHR0cHM6Ly9mbHVpZDQwLmRlL2lkcy9zbS8xNTE1XzUzMDZfNzYyNF81MzY3"
34
34
  new_decoded = encoder.decode_base_64(encoded)
35
35
  assert new_decoded == decoded
36
+
37
+ def test_003a_decode_base_64():
38
+ encoded = "aHR0cHM6Ly9mbHVpZDQwLmRlL2lkcy9zbS8xNTE1XzUzMDZfNzYyNF81MzY3"
39
+ assert encoder.is_base_64_encoded(encoded)
40
+ encoded = "RW5lcmd5TW9uaXRvcmluZw"
41
+ assert encoder.is_base_64_encoded(encoded)
42
+
43
+ def test_003b_decode_base_64():
44
+ decoded = "https://fluid40.de/ids/sm/1515_5306_7624_5367"
45
+ assert not encoder.is_base_64_encoded(decoded)
46
+ decoded == "EnergyMonitoring"
47
+ assert not encoder.is_base_64_encoded(decoded)
File without changes