aas-http-client 1.3.2__tar.gz → 1.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.
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/PKG-INFO +1 -1
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/aas_http_client/utilities/encoder.py +7 -2
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/aas_http_client.egg-info/PKG-INFO +1 -1
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/pyproject.toml +1 -1
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/LICENSE +0 -0
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/README.md +0 -0
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/aas_http_client/__init__.py +0 -0
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/aas_http_client/classes/Configuration/config_classes.py +0 -0
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/aas_http_client/classes/client/aas_client.py +0 -0
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/aas_http_client/classes/client/implementations/__init__.py +0 -0
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/aas_http_client/classes/client/implementations/authentication.py +0 -0
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/aas_http_client/classes/client/implementations/experimental_implementation.py +0 -0
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/aas_http_client/classes/client/implementations/shell_implementation.py +0 -0
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/aas_http_client/classes/client/implementations/shell_registry_implementation.py +0 -0
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/aas_http_client/classes/client/implementations/sm_implementation.py +0 -0
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/aas_http_client/classes/client/implementations/sm_registry_implementation.py +0 -0
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/aas_http_client/classes/wrapper/attachment.py +0 -0
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/aas_http_client/classes/wrapper/pagination.py +0 -0
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/aas_http_client/classes/wrapper/sdk_wrapper.py +0 -0
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/aas_http_client/demo/demo_process.py +0 -0
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/aas_http_client/demo/logging_handler.py +0 -0
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/aas_http_client/utilities/__init__.py +0 -0
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/aas_http_client/utilities/constants.py +0 -0
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/aas_http_client/utilities/http_helper.py +0 -0
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/aas_http_client/utilities/model_builder.py +0 -0
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/aas_http_client/utilities/sdk_tools.py +0 -0
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/aas_http_client/utilities/version_check.py +0 -0
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/aas_http_client.egg-info/SOURCES.txt +0 -0
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/aas_http_client.egg-info/dependency_links.txt +0 -0
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/aas_http_client.egg-info/requires.txt +0 -0
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/aas_http_client.egg-info/top_level.txt +0 -0
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/setup.cfg +0 -0
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/tests/test_client.py +0 -0
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/tests/test_client_reg.py +0 -0
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/tests/test_sdk_tools.py +0 -0
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/tests/test_utils.py +0 -0
- {aas_http_client-1.3.2 → aas_http_client-1.3.3}/tests/test_wrapper.py +0 -0
|
@@ -21,13 +21,18 @@ def decode_base_64(text: str) -> str:
|
|
|
21
21
|
return decoded.decode("utf-8")
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
def encode_base_64(text: str) -> str:
|
|
24
|
+
def encode_base_64(text: str, add_padding: bool = False) -> str:
|
|
25
25
|
"""Encode a string to Base64.
|
|
26
26
|
|
|
27
27
|
:param text: String to encode
|
|
28
|
+
:param add_padding: Whether to add padding to the encoded string
|
|
28
29
|
:return: Base64 encoded string
|
|
29
30
|
"""
|
|
30
|
-
encoded_bytes = base64.urlsafe_b64encode(text.encode("utf-8"))
|
|
31
|
+
encoded_bytes = base64.urlsafe_b64encode(text.encode("utf-8"))
|
|
32
|
+
|
|
33
|
+
if not add_padding:
|
|
34
|
+
encoded_bytes = encoded_bytes.rstrip(b"=")
|
|
35
|
+
|
|
31
36
|
return encoded_bytes.decode("utf-8")
|
|
32
37
|
|
|
33
38
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "aas-http-client"
|
|
7
|
-
version = "1.3.
|
|
7
|
+
version = "1.3.3"
|
|
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" }
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aas_http_client-1.3.2 → aas_http_client-1.3.3}/aas_http_client/classes/client/aas_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aas_http_client-1.3.2 → aas_http_client-1.3.3}/aas_http_client/classes/wrapper/attachment.py
RENAMED
|
File without changes
|
{aas_http_client-1.3.2 → aas_http_client-1.3.3}/aas_http_client/classes/wrapper/pagination.py
RENAMED
|
File without changes
|
{aas_http_client-1.3.2 → aas_http_client-1.3.3}/aas_http_client/classes/wrapper/sdk_wrapper.py
RENAMED
|
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
|
{aas_http_client-1.3.2 → aas_http_client-1.3.3}/aas_http_client.egg-info/dependency_links.txt
RENAMED
|
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
|