aas-http-client 0.3.5__py3-none-any.whl → 0.3.6__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.
Potentially problematic release.
This version of aas-http-client might be problematic. Click here for more details.
- aas_http_client/client.py +4 -1
- aas_http_client/wrapper/sdk_wrapper.py +3 -0
- {aas_http_client-0.3.5.dist-info → aas_http_client-0.3.6.dist-info}/METADATA +1 -1
- {aas_http_client-0.3.5.dist-info → aas_http_client-0.3.6.dist-info}/RECORD +7 -7
- {aas_http_client-0.3.5.dist-info → aas_http_client-0.3.6.dist-info}/WHEEL +0 -0
- {aas_http_client-0.3.5.dist-info → aas_http_client-0.3.6.dist-info}/licenses/LICENSE +0 -0
- {aas_http_client-0.3.5.dist-info → aas_http_client-0.3.6.dist-info}/top_level.txt +0 -0
aas_http_client/client.py
CHANGED
|
@@ -80,7 +80,7 @@ class AasHttpClient(BaseModel):
|
|
|
80
80
|
time_out: int = 200
|
|
81
81
|
connection_time_out: int = 100
|
|
82
82
|
ssl_verify: bool = True
|
|
83
|
-
trust_env: bool =
|
|
83
|
+
trust_env: bool = True
|
|
84
84
|
_session: Session = PrivateAttr(default=None)
|
|
85
85
|
|
|
86
86
|
def initialize(self, password: str):
|
|
@@ -602,6 +602,7 @@ def create_client_by_url(
|
|
|
602
602
|
time_out: int = 200,
|
|
603
603
|
connection_time_out: int = 60,
|
|
604
604
|
ssl_verify: str = True, # noqa: FBT002
|
|
605
|
+
trust_env: bool = True, # noqa: FBT001, FBT002
|
|
605
606
|
) -> AasHttpClient | None:
|
|
606
607
|
"""Create a HTTP client for a AAS server connection from the given parameters.
|
|
607
608
|
|
|
@@ -613,6 +614,7 @@ def create_client_by_url(
|
|
|
613
614
|
:param time_out: Timeout for the API calls, defaults to 200
|
|
614
615
|
:param connection_time_out: Timeout for the connection to the API, defaults to 60
|
|
615
616
|
:param ssl_verify: Whether to verify SSL certificates, defaults to True
|
|
617
|
+
:param trust_env: Whether to trust environment variables for proxy settings, defaults to True
|
|
616
618
|
:return: An instance of Http client initialized with the provided parameters.
|
|
617
619
|
"""
|
|
618
620
|
logger.info(f"Create AAS server http client from URL '{base_url}'")
|
|
@@ -624,6 +626,7 @@ def create_client_by_url(
|
|
|
624
626
|
config_dict["time_out"] = time_out
|
|
625
627
|
config_dict["connection_time_out"] = connection_time_out
|
|
626
628
|
config_dict["ssl_verify"] = ssl_verify
|
|
629
|
+
config_dict["trust_env"] = trust_env
|
|
627
630
|
return create_client_by_dict(config_dict, password)
|
|
628
631
|
|
|
629
632
|
|
|
@@ -335,6 +335,7 @@ def create_wrapper_by_url(
|
|
|
335
335
|
time_out: int = 200,
|
|
336
336
|
connection_time_out: int = 60,
|
|
337
337
|
ssl_verify: str = True, # noqa: FBT002
|
|
338
|
+
trust_env: bool = True, # noqa: FBT001, FBT002
|
|
338
339
|
) -> SdkWrapper | None:
|
|
339
340
|
"""Create a wrapper for a AAS server connection from the given parameters.
|
|
340
341
|
|
|
@@ -346,6 +347,7 @@ def create_wrapper_by_url(
|
|
|
346
347
|
:param time_out: timeout for the API calls, defaults to 200
|
|
347
348
|
:param connection_time_out: timeout for the connection to the API, defaults to 60
|
|
348
349
|
:param ssl_verify: whether to verify SSL certificates, defaults to True
|
|
350
|
+
:param trust_env: Whether to trust environment variables for proxy settings, defaults to True
|
|
349
351
|
:return: An instance of SdkWrapper initialized with the provided parameters.
|
|
350
352
|
"""
|
|
351
353
|
logger.info(f"Create AAS server wrapper from URL '{base_url}'")
|
|
@@ -357,6 +359,7 @@ def create_wrapper_by_url(
|
|
|
357
359
|
config_dict["time_out"] = time_out
|
|
358
360
|
config_dict["connection_time_out"] = connection_time_out
|
|
359
361
|
config_dict["ssl_verify"] = ssl_verify
|
|
362
|
+
config_dict["trust_env"] = trust_env
|
|
360
363
|
return create_wrapper_by_dict(config_dict, password)
|
|
361
364
|
|
|
362
365
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: aas-http-client
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.6
|
|
4
4
|
Summary: Generic python HTTP client for communication with various types of AAS servers
|
|
5
5
|
Author-email: Daniel Klein <daniel.klein@em.ag>
|
|
6
6
|
License: # :em engineering methods AG Software License
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
aas_http_client/__init__.py,sha256=cAr1mQzWp0G0LKtkAOYzc9t95OY3jM3Aj4bKnxx0Dso,901
|
|
2
|
-
aas_http_client/client.py,sha256=
|
|
2
|
+
aas_http_client/client.py,sha256=7D6Ue_hmlpYm7YjZZccbFZY44NpCdaw58Gb8S98OVtM,27221
|
|
3
3
|
aas_http_client/core/encoder.py,sha256=FS7P0FPakzFsGz70eRFDHQZFA_2nlKLlWIxavtnFrPg,660
|
|
4
4
|
aas_http_client/core/version_check.py,sha256=721Zs3xSRrJTYZtAxkaUWg9LLKtpU7oFM62DzQHZdE4,705
|
|
5
5
|
aas_http_client/demo/demo_process.py,sha256=J-f5CEvCQYfqDoMzM2EgQhHFfTXdZDgbmIus8dB8iiQ,3299
|
|
6
6
|
aas_http_client/utilities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
aas_http_client/utilities/model_builder.py,sha256=EUqVvKgXiyJNtyUeFrL6ronfF4hiF1KCipxSaLj6EiE,4465
|
|
8
|
-
aas_http_client/wrapper/sdk_wrapper.py,sha256=
|
|
9
|
-
aas_http_client-0.3.
|
|
10
|
-
aas_http_client-0.3.
|
|
11
|
-
aas_http_client-0.3.
|
|
12
|
-
aas_http_client-0.3.
|
|
13
|
-
aas_http_client-0.3.
|
|
8
|
+
aas_http_client/wrapper/sdk_wrapper.py,sha256=mL3Syj7g5btDcwVrZ1ZFlKTsBkHjuMJTM1jp-L5mbu8,15388
|
|
9
|
+
aas_http_client-0.3.6.dist-info/licenses/LICENSE,sha256=ayt4HY-Tjoe1Uvj47j6UdNq8mEufKcKFangurChIHxQ,5990
|
|
10
|
+
aas_http_client-0.3.6.dist-info/METADATA,sha256=NpZM_yLtBHun9DYeJ-uRH82h7GKuCFTpKHWjuoacNQw,10467
|
|
11
|
+
aas_http_client-0.3.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
12
|
+
aas_http_client-0.3.6.dist-info/top_level.txt,sha256=vzvoz2vjeTLwpuz-Y-eEfoQ7T3byoaKshVlFMFH5NaM,16
|
|
13
|
+
aas_http_client-0.3.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|