hyundai-kia-connect-api 3.3.2__py2.py3-none-any.whl → 3.3.4__py2.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.
- hyundai_kia_connect_api/KiaUvoApiCA.py +11 -29
- {hyundai_kia_connect_api-3.3.2.dist-info → hyundai_kia_connect_api-3.3.4.dist-info}/METADATA +1 -1
- {hyundai_kia_connect_api-3.3.2.dist-info → hyundai_kia_connect_api-3.3.4.dist-info}/RECORD +7 -7
- {hyundai_kia_connect_api-3.3.2.dist-info → hyundai_kia_connect_api-3.3.4.dist-info}/AUTHORS.rst +0 -0
- {hyundai_kia_connect_api-3.3.2.dist-info → hyundai_kia_connect_api-3.3.4.dist-info}/LICENSE +0 -0
- {hyundai_kia_connect_api-3.3.2.dist-info → hyundai_kia_connect_api-3.3.4.dist-info}/WHEEL +0 -0
- {hyundai_kia_connect_api-3.3.2.dist-info → hyundai_kia_connect_api-3.3.4.dist-info}/top_level.txt +0 -0
@@ -34,44 +34,26 @@ from .utils import (
|
|
34
34
|
get_index_into_hex_temp,
|
35
35
|
)
|
36
36
|
|
37
|
-
|
38
|
-
|
37
|
+
import ssl
|
38
|
+
import urllib3
|
39
39
|
|
40
|
-
CIPHERS = "DEFAULT
|
40
|
+
CIPHERS = "DEFAULT@SECLEVEL=1"
|
41
41
|
|
42
42
|
_LOGGER = logging.getLogger(__name__)
|
43
43
|
|
44
44
|
|
45
|
-
class cipherAdapter(HTTPAdapter):
|
45
|
+
class cipherAdapter(requests.adapters.HTTPAdapter):
|
46
46
|
"""
|
47
47
|
A HTTPAdapter that re-enables poor ciphers required by Hyundai.
|
48
48
|
"""
|
49
49
|
|
50
|
-
def init_poolmanager(self,
|
51
|
-
context =
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
kwargs["ssl_context"] = context
|
58
|
-
return super().proxy_manager_for(*args, **kwargs)
|
59
|
-
|
60
|
-
|
61
|
-
class cipherAdapter(HTTPAdapter):
|
62
|
-
"""
|
63
|
-
A HTTPAdapter that re-enables poor ciphers required by Hyundai.
|
64
|
-
"""
|
65
|
-
|
66
|
-
def init_poolmanager(self, *args, **kwargs):
|
67
|
-
context = create_urllib3_context(ciphers=CIPHERS)
|
68
|
-
kwargs["ssl_context"] = context
|
69
|
-
return super().init_poolmanager(*args, **kwargs)
|
70
|
-
|
71
|
-
def proxy_manager_for(self, *args, **kwargs):
|
72
|
-
context = create_urllib3_context(ciphers=CIPHERS)
|
73
|
-
kwargs["ssl_context"] = context
|
74
|
-
return super().proxy_manager_for(*args, **kwargs)
|
50
|
+
def init_poolmanager(self, connections, maxsize, block=False):
|
51
|
+
context = ssl.create_default_context()
|
52
|
+
context.set_ciphers(CIPHERS)
|
53
|
+
context.options |= 0x4
|
54
|
+
self.poolmanager = urllib3.poolmanager.PoolManager(
|
55
|
+
ssl_version=ssl.PROTOCOL_TLS,
|
56
|
+
ssl_context=context)
|
75
57
|
|
76
58
|
|
77
59
|
class KiaUvoApiCA(ApiImpl):
|
{hyundai_kia_connect_api-3.3.2.dist-info → hyundai_kia_connect_api-3.3.4.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: hyundai-kia-connect-api
|
3
|
-
Version: 3.3.
|
3
|
+
Version: 3.3.4
|
4
4
|
Summary: Python Boilerplate contains all the boilerplate you need to create a Python package.
|
5
5
|
Home-page: https://github.com/fuatakgun/hyundai_kia_connect_api
|
6
6
|
Author: Fuat Akgun
|
@@ -1,7 +1,7 @@
|
|
1
1
|
hyundai_kia_connect_api/ApiImpl.py,sha256=BdpZSWmfgG9HmLr-0VFKqBEZ43VJN_y4laYRK-b6Nk4,4626
|
2
2
|
hyundai_kia_connect_api/HyundaiBlueLinkAPIUSA.py,sha256=2jcoTHJs6bgQMFoag3APLtiaon1IgFfhmsW3lcSWJac,23907
|
3
3
|
hyundai_kia_connect_api/KiaUvoAPIUSA.py,sha256=NWQNOH3lQzxjyifeMIAjPfWamVzArqymZ8VgKP3_VMY,27449
|
4
|
-
hyundai_kia_connect_api/KiaUvoApiCA.py,sha256=
|
4
|
+
hyundai_kia_connect_api/KiaUvoApiCA.py,sha256=b-dMsfEb397iS05cD3Gb5DBRCva4w7zqJCC5cB149k0,29949
|
5
5
|
hyundai_kia_connect_api/KiaUvoApiCN.py,sha256=QmjevKCMt4GzhtF7ZZ5tfyV0rAqNTE9EHmhQr4u1Pgw,51311
|
6
6
|
hyundai_kia_connect_api/KiaUvoApiEU.py,sha256=TO7MZvc3BnnGMSflJH-MObBFfJI2YpPvd5M392iYiIM,53887
|
7
7
|
hyundai_kia_connect_api/Token.py,sha256=odHSR-D7CnL19hh6f6cc3rablchzqS0I2GXf7jWvsQE,369
|
@@ -11,9 +11,9 @@ hyundai_kia_connect_api/__init__.py,sha256=nHv9mufHuKHAwEZncS4EQRxYMohsR9NdLltOS
|
|
11
11
|
hyundai_kia_connect_api/const.py,sha256=Yb7yJtALZzsmnizzzqiKpdZbh1FTu4jc9tFj-tuB4rc,1690
|
12
12
|
hyundai_kia_connect_api/exceptions.py,sha256=pUKegYbLkRXmgfAW4ApW805xwyhcjOA6SEo1VVmwiDU,1228
|
13
13
|
hyundai_kia_connect_api/utils.py,sha256=u0F4PdWA0l_ikZaWJU_9WAwtW1t__KPOiHDef8Ka7ck,751
|
14
|
-
hyundai_kia_connect_api-3.3.
|
15
|
-
hyundai_kia_connect_api-3.3.
|
16
|
-
hyundai_kia_connect_api-3.3.
|
17
|
-
hyundai_kia_connect_api-3.3.
|
18
|
-
hyundai_kia_connect_api-3.3.
|
19
|
-
hyundai_kia_connect_api-3.3.
|
14
|
+
hyundai_kia_connect_api-3.3.4.dist-info/AUTHORS.rst,sha256=T77OE1hrQF6YyDE6NbdMKyL66inHt7dnjHAzblwuk2A,155
|
15
|
+
hyundai_kia_connect_api-3.3.4.dist-info/LICENSE,sha256=AsZwIRViAze7ObwO6V6IB0q4caXv6DJS2-3dsU1FWy8,1069
|
16
|
+
hyundai_kia_connect_api-3.3.4.dist-info/METADATA,sha256=rauglZpGsl130zzdKgTFBDSdl1LGFiryV54FHXFQW44,5714
|
17
|
+
hyundai_kia_connect_api-3.3.4.dist-info/WHEEL,sha256=a-zpFRIJzOq5QfuhBzbhiA1eHTzNCJn8OdRvhdNX0Rk,110
|
18
|
+
hyundai_kia_connect_api-3.3.4.dist-info/top_level.txt,sha256=otZ7J_fN-s3EW4jD-kAearIo2OIzhQLR8DNEHIaFfds,24
|
19
|
+
hyundai_kia_connect_api-3.3.4.dist-info/RECORD,,
|
{hyundai_kia_connect_api-3.3.2.dist-info → hyundai_kia_connect_api-3.3.4.dist-info}/AUTHORS.rst
RENAMED
File without changes
|
File without changes
|
File without changes
|
{hyundai_kia_connect_api-3.3.2.dist-info → hyundai_kia_connect_api-3.3.4.dist-info}/top_level.txt
RENAMED
File without changes
|