pycupra 0.1.12__py3-none-any.whl → 0.1.14__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.
@@ -0,0 +1,63 @@
1
+ Metadata-Version: 2.4
2
+ Name: pycupra
3
+ Version: 0.1.14
4
+ Summary: A library to read and send vehicle data via Cupra/Seat portal using the same API calls as the MyCupra/MySeat mobile app.
5
+ License-Expression: Apache-2.0
6
+ Requires-Python: >=3.12
7
+ Description-Content-Type: text/markdown
8
+ License-File: LICENSE
9
+ Requires-Dist: aiohttp
10
+ Requires-Dist: beautifulsoup4
11
+ Requires-Dist: cryptography
12
+ Requires-Dist: lxml
13
+ Requires-Dist: PyJWT
14
+ Requires-Dist: xmltodict
15
+ Requires-Dist: pandas
16
+ Requires-Dist: pillow
17
+ Requires-Dist: protobuf
18
+ Requires-Dist: http-ece
19
+ Requires-Dist: requests-oauthlib
20
+ Dynamic: license-file
21
+
22
+ # PyCupra
23
+
24
+ A library to read and send vehicle data via Cupra/Seat portal using the same API calls as the MyCupra/MySeat mobile app.
25
+
26
+ Fork of https://github.com/Farfar/seatconnect which in turn is a fork of:
27
+ Fork of https://github.com/lendy007/skodaconnect which in turn is a fork of:
28
+ https://github.com/robinostlund/volkswagencarnet
29
+
30
+ ## Information
31
+
32
+ Retrieve statistics about your Cupra/Seat from the Cupra/Seat Connect online service
33
+
34
+ No licence, public domain, no guarantees, feel free to use for anything. Please contribute improvements/bugfixes etc.
35
+
36
+ ## Breaking changes
37
+
38
+ - The method vehicle.update(updateType) supports 3 different update types:
39
+ - updateType=0: Small update (=only get_basiccardata() and get_statusreport are called). If the last full update is more than 1100 seconds ago, then a full update is performed.
40
+ - updateType=1: Full update (nearly all get-methods are called. The model images and the capabilitites are refreshed only every 2 hours.)
41
+ - updateType=2: Like updateType=0, but ignoring the nightly update reduction
42
+
43
+ - Nightly update reduction: If nightly reduction is activated and the current time is within the time frame between 22:00 and 05:00, then vehicle.update(0) performs a full update, if the last full update is more than 1700 seconds ago. If that's not the case, vehicle.update(0) does nothing.
44
+
45
+ - PyCupra can ask the Seat/Cupra portal to send push notifications to PyCupra if the charging status or the climatisation status has changed or when the API has finished a request like lock or unlock vehicle, start or stop charging or change departure timers or ....
46
+
47
+ ## Thanks to
48
+
49
+ - [RobinostLund](https://github.com/robinostlund/volkswagencarnet) for initial project for Volkswagen Carnet I was able to fork
50
+ - [Farfar](https://github.com/Farfar) for modifications related to electric engines
51
+ - [tanelvakker](https://github.com/tanelvakker) for modifications related to correct SPIN handling for various actions and using correct URLs also for MY2021
52
+ - [sdb9696](https://github.com/sdb9696) for the firebase-messaging package that is used in PyCupra with only minor modifications
53
+
54
+ ### Example
55
+
56
+ For an extensive example, please use the code found in example/PyCupra.py.
57
+ When logged in the library will automatically create a vehicle object for every car registered to the account. Initially no data is fetched at all. Use the doLogin method and it will signin with the credentials used for the class constructor. After a successful login, the tokens are stored in a json file. Later doLogin calls can use the token file instead of the credentials.
58
+ Method get_vehicles will fetch vehicle basic information and create Vehicle class objects for all associated vehicles in account.
59
+ To update all available data use the update_all method of the Connect class. This will call the update function for all registered vehicles, which in turn will fetch data from all available API endpoints.
60
+
61
+ The file *pycupra_credentials.json.demo* explains the data structure of the credentials file.
62
+
63
+
@@ -1,28 +1,29 @@
1
+ example/PyCupra.py,sha256=rlI6jx7cRgNJswii4ZR1gCdpkO4Lw4vkHU2rjSfbJbc,27078
2
+ example/PyCupra_ExportDrivingData.py,sha256=h2a8OPgEBEU-XpJFfuECnHqW-hThN7GUOkEDIvom4q4,4961
1
3
  pycupra/__init__.py,sha256=p0880jPkLqOErX3u3qaLboBLOsEHFpe44axApdaGeqI,231
2
- pycupra/__version__.py,sha256=kEdT9rmuTn8dHldRpejGUjHjJ4l1riwWOihc1cu1NyQ,208
3
- pycupra/connection.py,sha256=-wfamvOPP0gDGo5Picd2zx9pHGs90vVqqCxp6SFn6PQ,93278
4
+ pycupra/connection.py,sha256=UrTxsN9fE_A19UoYM1cJddHaW4d16WXgDkJJpyBlDQk,94426
4
5
  pycupra/const.py,sha256=5b4uuNUE1AGZHmqQfIZv-76Ad20mJTXXQPGI8TU6FfY,10631
5
- pycupra/dashboard.py,sha256=_8qlVr1k_L3_7A7dDc9ugzpGK_Dg6UZgv_Pp-1pPaPE,45337
6
+ pycupra/dashboard.py,sha256=uB-yLKlBGAMYpsG4JwYxfRRar8XK4H8Oa8EvOEhKsIA,45624
6
7
  pycupra/exceptions.py,sha256=Nq_F79GP8wjHf5lpvPy9TbSIrRHAJrFMo0T1N9TcgSQ,2917
7
- pycupra/firebase.py,sha256=lmI4a8f5VAlmHAqP2OiJWZhn7dmhyHkIBxL252qdtkA,3454
8
- pycupra/utilities.py,sha256=6sDxWP13-XtxmqhuBJBGdVbkj48BQ9AxFMrBPxH0J7g,2679
9
- pycupra/vehicle.py,sha256=svuZ9xabbHa67saOQ1yGJcB8WCxV3zJmp32LFl8f_kQ,164254
8
+ pycupra/firebase.py,sha256=x8Evtg-I6HKDexTGWjjmWMFdLT0d6FI5A7LU1WsC7QE,3562
9
+ pycupra/utilities.py,sha256=vImZwz-cBGbI6cpcWB3aEFM_5IZUoG_RQ9e4WCYW8WE,1952
10
+ pycupra/vehicle.py,sha256=eWuwvg3rtUCPKYRDqeDZg5ePLPL6FNfGfZVdmuHq2ao,167580
10
11
  pycupra/firebase_messaging/__init__.py,sha256=oerLHWvEf4qRqu3GxSX6SLY_OYI430ydAiAhKtzyMEM,666
11
12
  pycupra/firebase_messaging/android_checkin.proto,sha256=AW1Ew0iU3NdZpFCocNsG3MxFhEsoRcQH0yMpKhkj0Zg,3109
12
13
  pycupra/firebase_messaging/android_checkin_pb2.py,sha256=-U1oGroFt3KRuGDieae3iTcux6mAfx1TFkE1Q35ul2E,2849
13
- pycupra/firebase_messaging/android_checkin_pb2.pyi,sha256=7KL-zQIz2Zz7uftcLkv57Podzu-yk6trn50FN4X4A8E,9379
14
+ pycupra/firebase_messaging/android_checkin_pb2.pyi,sha256=3ZOH0c4aUujdeCLshpwslQ1DDzdLNzzp7_JV3yOGQYg,9636
14
15
  pycupra/firebase_messaging/checkin.proto,sha256=bTIfw9ffqmNRgOLmJjpCrbJsOPLb5jEcy58EH_CsGaY,6265
15
16
  pycupra/firebase_messaging/checkin_pb2.py,sha256=lFzCIAkYz9NFUpRbVuW-2kM_EaYKVWHeifHS1PV2eHQ,2795
16
17
  pycupra/firebase_messaging/checkin_pb2.pyi,sha256=mHOqbedt5jZDI20jcyFrTMSnQ0f_tq4zkIlHiaSC3xI,14626
17
18
  pycupra/firebase_messaging/const.py,sha256=XMy8kJ37uBSkTpVpdLeSjxk5UIPuvDuo-rxYdgmo2G8,1191
18
- pycupra/firebase_messaging/fcmpushclient.py,sha256=5kAp6rnl9EJqVPn9OfHFKUfFDRWA9LAVbfiL-pLRSqo,30550
19
- pycupra/firebase_messaging/fcmregister.py,sha256=yZngC-0ZfTygtjfdzg03OW_3xk2n_uSQQ3Lrash5Y_E,18091
19
+ pycupra/firebase_messaging/fcmpushclient.py,sha256=91UBo69o6kRiosab0gKrCBLn9xxlPxBi38X19rSemRE,30549
20
+ pycupra/firebase_messaging/fcmregister.py,sha256=04uGq7RvjkqrewkK183MOuR3x2yvKSJbp_G33zY9gFo,18087
20
21
  pycupra/firebase_messaging/mcs.proto,sha256=HUgnx-KTQiXIER1bJ0swpCt1W0BILru3lxhwmBezj-A,8265
21
22
  pycupra/firebase_messaging/mcs_pb2.py,sha256=nwXY7IDgLYPxgpSGs6wyTSyYDdomQsyGqH8R8EgODLg,7733
22
23
  pycupra/firebase_messaging/mcs_pb2.pyi,sha256=HfIhInC3wRg8_caKwUm-V3knE2jTdEQvBy6uXgQ5rHY,33959
23
24
  pycupra/firebase_messaging/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
- pycupra-0.1.12.dist-info/licenses/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
25
- pycupra-0.1.12.dist-info/METADATA,sha256=MSKr9mmmWw0m9UOiIkCrE6MUTU1BDtIw4XA_x7RSkWc,302
26
- pycupra-0.1.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
27
- pycupra-0.1.12.dist-info/top_level.txt,sha256=9Lbj_jG4JvpGwt6K3AwhWFc0XieDnuHFOP4x44wSXSQ,8
28
- pycupra-0.1.12.dist-info/RECORD,,
25
+ pycupra-0.1.14.dist-info/licenses/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
26
+ pycupra-0.1.14.dist-info/METADATA,sha256=YlElaOaKu5Yidsl-PyUFdTIdVweCE58WqiI_Pi7CcDQ,3684
27
+ pycupra-0.1.14.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
28
+ pycupra-0.1.14.dist-info/top_level.txt,sha256=9WIFIp_UVGiU7u96_gEPwY2c4EtS48SLcMEWJmoLypw,21
29
+ pycupra-0.1.14.dist-info/RECORD,,
@@ -0,0 +1,3 @@
1
+ dist
2
+ example
3
+ pycupra
pycupra/__version__.py DELETED
@@ -1,6 +0,0 @@
1
- """
2
- pycupra - A Python 3 library for interacting with the My Cupra/My Seat portal.
3
-
4
- For more details and documentation, visit the github page at https://github.com/WulfgarW/pycupra
5
- """
6
- __version__ = "0.1.12"
@@ -1,13 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: pycupra
3
- Version: 0.1.12
4
- Requires-Python: >=3.10
5
- License-File: LICENSE
6
- Requires-Dist: aiohttp
7
- Requires-Dist: beautifulsoup4
8
- Requires-Dist: cryptography
9
- Requires-Dist: lxml
10
- Requires-Dist: PyJWT
11
- Requires-Dist: xmltodict
12
- Requires-Dist: pandas
13
- Dynamic: license-file
@@ -1 +0,0 @@
1
- pycupra