Skip to main content

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

!!! Important information !!!

Due to the API changes on June 8th 2026, PyCupra is blocked by most of the API endpoints, because it is lacking an appcheck_token, that it cannot generate itself. The pycupra package catches the http-403 error and raises an exception.

As long as that happens, you cannot use the pycupra package.

What's the main functionality of PyCupra?

Retrieve information about your Cupra/Seat vehicle from the Cupra/Seat portal.

Breaking changes

  • The method vehicle.update(updateType) supports 3 different update types:

    • 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.
    • updateType=1: Full update (nearly all get-methods are called. The model images and the capabilitites are refreshed only every 2 hours.)
    • updateType=2: Like updateType=0, but ignoring the nightly update reduction
  • 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.

  • PyCupra can ask the Cupra/Seat 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 ....

  • PyCupra read files from the EUDA portal of VW group, if the user has registered there and set up an ongoing data request. (This is still experimental.)

  • As the API no longer provides the complete tripstatistics history, PyCupra builds its own history and stores it in the pycupra_data folder.

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
  • sdb9696 for the firebase-messaging package that is used in PyCupra with only minor modifications

Example

For an extensive example, please use the code found in example/PyCupra.py. Use the doLogin method, and it will sign in 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. When logged in, the 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 pycupra_credentials.json.demo explains the data structure of the credentials file.

Metadata

Release files for pycupra 0.2.42

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pycupra 0.2.42
File Size Uploaded Provenance Actions
pycupra-0.2.42.tar.gz 128.6 kB Without provenance Details for pycupra-0.2.42.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pycupra 0.2.42
File Interpreter ABI Platform Actions
pycupra-0.2.42-py3-none-any.whl Python 3 none any Details for pycupra-0.2.42-py3-none-any.whl

Total release size: 902.7 kB

Release files / pycupra-0.2.42.tar.gz

Download URL pycupra-0.2.42.tar.gz
Size 128.6 kB
Tags Source
SHA-256 checksum
How to use checksums
12ddea6f3c674a8e82a7ad50068ffbb5fcfab224e965226b08be553dd8b162da
BLAKE2b-256 checksum
How to use checksums
d3d1dc2fef947903b80b22600c0aea11002d4512341080b0aede98fb0a56d4b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / pycupra-0.2.42-py3-none-any.whl

Download URL pycupra-0.2.42-py3-none-any.whl
Size 774.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dccc67aa82136dbb6bf753fd1eed8f5d7c92a033abcef0b0d8a6431e2490cbc2
BLAKE2b-256 checksum
How to use checksums
228e071fee0c2c3748d5c1605bd2768ad2f63e32f5c8b784aa3593fd53b30806
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for pycupra 0.2.42

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.42 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page