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.
Files changed (38) hide show
  1. {pycupra-0.1.5/pycupra.egg-info → pycupra-0.1.6}/PKG-INFO +1 -1
  2. {pycupra-0.1.5 → pycupra-0.1.6}/example/PyCupra.py +6 -5
  3. {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/__version__.py +1 -1
  4. {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/connection.py +1858 -1816
  5. pycupra-0.1.6/pycupra/firebase.py +90 -0
  6. {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/utilities.py +116 -116
  7. {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/vehicle.py +57 -10
  8. {pycupra-0.1.5 → pycupra-0.1.6/pycupra.egg-info}/PKG-INFO +1 -1
  9. pycupra-0.1.5/pycupra/firebase.py +0 -73
  10. {pycupra-0.1.5 → pycupra-0.1.6}/.gitignore +0 -0
  11. {pycupra-0.1.5 → pycupra-0.1.6}/LICENSE +0 -0
  12. {pycupra-0.1.5 → pycupra-0.1.6}/README.md +0 -0
  13. {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/__init__.py +0 -0
  14. {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/const.py +0 -0
  15. {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/dashboard.py +0 -0
  16. {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/exceptions.py +0 -0
  17. {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/firebase_messaging/__init__.py +0 -0
  18. {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/firebase_messaging/android_checkin.proto +0 -0
  19. {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/firebase_messaging/android_checkin_pb2.py +0 -0
  20. {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/firebase_messaging/android_checkin_pb2.pyi +0 -0
  21. {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/firebase_messaging/checkin.proto +0 -0
  22. {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/firebase_messaging/checkin_pb2.py +0 -0
  23. {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/firebase_messaging/checkin_pb2.pyi +0 -0
  24. {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/firebase_messaging/const.py +0 -0
  25. {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/firebase_messaging/fcmpushclient.py +0 -0
  26. {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/firebase_messaging/fcmregister.py +0 -0
  27. {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/firebase_messaging/mcs.proto +0 -0
  28. {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/firebase_messaging/mcs_pb2.py +0 -0
  29. {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/firebase_messaging/mcs_pb2.pyi +0 -0
  30. {pycupra-0.1.5 → pycupra-0.1.6}/pycupra/firebase_messaging/py.typed +0 -0
  31. {pycupra-0.1.5 → pycupra-0.1.6}/pycupra.egg-info/SOURCES.txt +0 -0
  32. {pycupra-0.1.5 → pycupra-0.1.6}/pycupra.egg-info/dependency_links.txt +0 -0
  33. {pycupra-0.1.5 → pycupra-0.1.6}/pycupra.egg-info/requires.txt +0 -0
  34. {pycupra-0.1.5 → pycupra-0.1.6}/pycupra.egg-info/top_level.txt +0 -0
  35. {pycupra-0.1.5 → pycupra-0.1.6}/pycupra_credentials.json.demo +0 -0
  36. {pycupra-0.1.5 → pycupra-0.1.6}/requirements.txt +0 -0
  37. {pycupra-0.1.5 → pycupra-0.1.6}/setup.cfg +0 -0
  38. {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.5
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())
@@ -3,4 +3,4 @@ pycupra - A Python 3 library for interacting with the My Cupra/My Seat portal.
3
3
 
4
4
  For more details and documentation, visit the github page at https://github.com/WulfgarW/pycupra
5
5
  """
6
- __version__ = "0.1.5"
6
+ __version__ = "0.1.6"