hyundai-kia-connect-api 3.3.2__py2.py3-none-any.whl → 3.3.3__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.
@@ -34,44 +34,25 @@ from .utils import (
34
34
  get_index_into_hex_temp,
35
35
  )
36
36
 
37
- from requests.adapters import HTTPAdapter
38
- from requests.packages.urllib3.util.ssl_ import create_urllib3_context
37
+ import ssl
38
+ import urllib3
39
39
 
40
- CIPHERS = "DEFAULT:!aNULL:!eNULL:!MD5:!3DES:!DES:!RC4:!IDEA:!SEED:!aDSS:!SRP:!PSK"
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, *args, **kwargs):
51
- context = create_urllib3_context(ciphers=CIPHERS)
52
- kwargs["ssl_context"] = context
53
- return super().init_poolmanager(*args, **kwargs)
54
-
55
- def proxy_manager_for(self, *args, **kwargs):
56
- context = create_urllib3_context(ciphers=CIPHERS)
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
+ self.poolmanager = urllib3.poolmanager.PoolManager(
54
+ ssl_version=ssl.PROTOCOL_TLS,
55
+ ssl_context=context)
75
56
 
76
57
 
77
58
  class KiaUvoApiCA(ApiImpl):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hyundai-kia-connect-api
3
- Version: 3.3.2
3
+ Version: 3.3.3
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=N-fDcgN5yKfgC5En_WQT24bY_-6B3JtcOY8WIhTEdW0,30696
4
+ hyundai_kia_connect_api/KiaUvoApiCA.py,sha256=9Of8jFy2lBFap4dXvV-yOH7ujNxJoY8NYD8VIaMQL3Q,29918
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.2.dist-info/AUTHORS.rst,sha256=T77OE1hrQF6YyDE6NbdMKyL66inHt7dnjHAzblwuk2A,155
15
- hyundai_kia_connect_api-3.3.2.dist-info/LICENSE,sha256=AsZwIRViAze7ObwO6V6IB0q4caXv6DJS2-3dsU1FWy8,1069
16
- hyundai_kia_connect_api-3.3.2.dist-info/METADATA,sha256=AsajfASSaq4zDJGyVD_6Lcmnae6mpQGK7U6cT6YTqNs,5714
17
- hyundai_kia_connect_api-3.3.2.dist-info/WHEEL,sha256=a-zpFRIJzOq5QfuhBzbhiA1eHTzNCJn8OdRvhdNX0Rk,110
18
- hyundai_kia_connect_api-3.3.2.dist-info/top_level.txt,sha256=otZ7J_fN-s3EW4jD-kAearIo2OIzhQLR8DNEHIaFfds,24
19
- hyundai_kia_connect_api-3.3.2.dist-info/RECORD,,
14
+ hyundai_kia_connect_api-3.3.3.dist-info/AUTHORS.rst,sha256=T77OE1hrQF6YyDE6NbdMKyL66inHt7dnjHAzblwuk2A,155
15
+ hyundai_kia_connect_api-3.3.3.dist-info/LICENSE,sha256=AsZwIRViAze7ObwO6V6IB0q4caXv6DJS2-3dsU1FWy8,1069
16
+ hyundai_kia_connect_api-3.3.3.dist-info/METADATA,sha256=SKhc6E6s-lawFZRjoXQJ2S2gb2L4jlBnUkLdFySSNMA,5714
17
+ hyundai_kia_connect_api-3.3.3.dist-info/WHEEL,sha256=a-zpFRIJzOq5QfuhBzbhiA1eHTzNCJn8OdRvhdNX0Rk,110
18
+ hyundai_kia_connect_api-3.3.3.dist-info/top_level.txt,sha256=otZ7J_fN-s3EW4jD-kAearIo2OIzhQLR8DNEHIaFfds,24
19
+ hyundai_kia_connect_api-3.3.3.dist-info/RECORD,,