Skip to main content

A library to read and send vehicle data via Cupra/Seat portal using the same API calls as the MyCupra/MySeat mobile app.

Project description

PyCupra

A library to read and send vehicle data via Cupra/Seat portal using the same API calls as the MyCupra/MySeat mobile app.

Fork of https://github.com/Farfar/seatconnect which in turn is a fork of: Fork of https://github.com/lendy007/skodaconnect which in turn is a fork of: https://github.com/robinostlund/volkswagencarnet

Information

Retrieve statistics about your Cupra/Seat from the Cupra/Seat Connect online service

No licence, public domain, no guarantees, feel free to use for anything. Please contribute improvements/bugfixes etc.

Breaking changes

Thanks to

  • RobinostLund for initial project for Volkswagen Carnet I was able to fork
  • Farfar for modifications related to electric engines
  • tanelvakker for modifications related to correct SPIN handling for various actions and using correct URLs also for MY2021

Example

For an extensive example, please use the code found in example/PyCupra.py. 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. Method get_vehicles will fetch vehicle basic information and create Vehicle class objects for all associated vehicles in account. 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.

The file cupra_credentials.json.demo explains the data structure of the credentials file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pycupra-0.0.14.tar.gz (56.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pycupra-0.0.14-py3-none-any.whl (51.2 kB view details)

Uploaded Python 3

File details

Details for the file pycupra-0.0.14.tar.gz.

File metadata

  • Download URL: pycupra-0.0.14.tar.gz
  • Upload date:
  • Size: 56.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.5

File hashes

Hashes for pycupra-0.0.14.tar.gz
Algorithm Hash digest
SHA256 447e434e746771d92ff52b5cc753c7544a9f3edbf9a6fa699852f1ad2c473599
MD5 119c39fe91ceb050af3eb67791824269
BLAKE2b-256 5f00a967d85f3c2227b3d393182f6ceacd63dbe2d4c7a14b4ea2f238d914ce38

See more details on using hashes here.

File details

Details for the file pycupra-0.0.14-py3-none-any.whl.

File metadata

  • Download URL: pycupra-0.0.14-py3-none-any.whl
  • Upload date:
  • Size: 51.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.5

File hashes

Hashes for pycupra-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 836463bc89e5e660d356ac3e661da2300cf767117770f7642572cb6f160d01b9
MD5 d1169b7e3447bdad85e507de138baa22
BLAKE2b-256 8306bb9c8eb76b9aaeb1b1c8f73098923dbc56720dd0c3ad3141dec85f21a83c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page