pycupra 0.1.5__tar.gz → 0.1.6__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.
- {pycupra-0.1.5/pycupra.egg-info → pycupra-0.1.6}/PKG-INFO +1 -1
- {pycupra-0.1.5 → pycupra-0.1.6}/example/PyCupra.py +6 -5
- {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/__version__.py +1 -1
- {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/connection.py +1858 -1816
- pycupra-0.1.6/pycupra/firebase.py +90 -0
- {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/utilities.py +116 -116
- {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/vehicle.py +57 -10
- {pycupra-0.1.5 → pycupra-0.1.6/pycupra.egg-info}/PKG-INFO +1 -1
- pycupra-0.1.5/pycupra/firebase.py +0 -73
- {pycupra-0.1.5 → pycupra-0.1.6}/.gitignore +0 -0
- {pycupra-0.1.5 → pycupra-0.1.6}/LICENSE +0 -0
- {pycupra-0.1.5 → pycupra-0.1.6}/README.md +0 -0
- {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/__init__.py +0 -0
- {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/const.py +0 -0
- {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/dashboard.py +0 -0
- {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/exceptions.py +0 -0
- {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/firebase_messaging/__init__.py +0 -0
- {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/firebase_messaging/android_checkin.proto +0 -0
- {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/firebase_messaging/android_checkin_pb2.py +0 -0
- {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/firebase_messaging/android_checkin_pb2.pyi +0 -0
- {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/firebase_messaging/checkin.proto +0 -0
- {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/firebase_messaging/checkin_pb2.py +0 -0
- {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/firebase_messaging/checkin_pb2.pyi +0 -0
- {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/firebase_messaging/const.py +0 -0
- {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/firebase_messaging/fcmpushclient.py +0 -0
- {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/firebase_messaging/fcmregister.py +0 -0
- {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/firebase_messaging/mcs.proto +0 -0
- {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/firebase_messaging/mcs_pb2.py +0 -0
- {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/firebase_messaging/mcs_pb2.pyi +0 -0
- {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/firebase_messaging/py.typed +0 -0
- {pycupra-0.1.5 → pycupra-0.1.6}/pycupra.egg-info/SOURCES.txt +0 -0
- {pycupra-0.1.5 → pycupra-0.1.6}/pycupra.egg-info/dependency_links.txt +0 -0
- {pycupra-0.1.5 → pycupra-0.1.6}/pycupra.egg-info/requires.txt +0 -0
- {pycupra-0.1.5 → pycupra-0.1.6}/pycupra.egg-info/top_level.txt +0 -0
- {pycupra-0.1.5 → pycupra-0.1.6}/pycupra_credentials.json.demo +0 -0
- {pycupra-0.1.5 → pycupra-0.1.6}/requirements.txt +0 -0
- {pycupra-0.1.5 → pycupra-0.1.6}/setup.cfg +0 -0
- {pycupra-0.1.5 → pycupra-0.1.6}/setup.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: pycupra
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.6
|
4
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
5
|
Home-page: https://github.com/WulfgarW/pycupra
|
6
6
|
Author: WulfgarW
|
@@ -384,11 +384,11 @@ async def main():
|
|
384
384
|
raise
|
385
385
|
async with ClientSession(headers={'Connection': 'keep-alive'}) as session:
|
386
386
|
print('')
|
387
|
-
print('
|
388
|
-
print('# Logging on to seat.cloud.vwgroup.com #')
|
389
|
-
print('
|
390
|
-
print(f"Initiating new session to Seat Cloud with {credentials.get('username')} as username")
|
391
|
-
connection = Connection(session, BRAND, credentials.get('username'), credentials.get('password'), PRINTRESPONSE, nightlyUpdateReduction=False)
|
387
|
+
print('######################################################')
|
388
|
+
print('# Logging on to ola.prod.code.seat.cloud.vwgroup.com #')
|
389
|
+
print('######################################################')
|
390
|
+
print(f"Initiating new session to Cupra/Seat Cloud with {credentials.get('username')} as username")
|
391
|
+
connection = Connection(session, BRAND, credentials.get('username'), credentials.get('password'), PRINTRESPONSE, nightlyUpdateReduction=False, anonymise=True)
|
392
392
|
print("Attempting to login to the Seat Cloud service")
|
393
393
|
print(datetime.now())
|
394
394
|
if await connection.doLogin(tokenFile=TOKEN_FILE_NAME_AND_PATH, apiKey=credentials.get('apiKey',None)):
|
@@ -485,6 +485,7 @@ async def main():
|
|
485
485
|
#print(f"Sleeping for {INTERVAL} seconds")
|
486
486
|
#await asyncio.sleep(INTERVAL)
|
487
487
|
|
488
|
+
await connection.terminate()
|
488
489
|
for vehicle in connection.vehicles:
|
489
490
|
"""print('')
|
490
491
|
print(datetime.now())
|