Skip to main content

Python library and CLI for communicating with Porsche Connect API.

Project description

pyporscheconnectapi

A python library for Porsche Connect API

This library will let you access your car equipped with Porsche Connect. It does not work with the predecessor Porsche Car Connect. Porsche Connect is available for the following Porsche models:

  • Taycan
  • 911 (from 992)
  • Cayenne (from 2017, E3)
  • Panamera (from 2021, G2 PA)

You can also take a look here, select your model and see if your model has support for Porsche Connect: https://connect-store.porsche.com/

A Porsche Connect subscription alse needs to be active for it to work.

NOTE: This work is not officially supported by Porsche and functionality can stop working at any time without warning

Installation

The easiest method is to install using pip3/pip (venv is also a good idea)

pip install pyporscheconnectapi

to update to the latest version

pip install pyporscheconnectapi -U

Setup will add a cli under the name porschecli, see below for usage

CLI usage

A simple cli is provided with this library, it will cache tokens to a file to speed up invocations. It does not yet support the create/update/delete timer functionality which is present in the library.

If no email or password is supplied as input arguments and no config file with those details is found you will be prompted. Same goes for PIN (used to lock or unlock). The --nowait option will just request the action (or stored information) without waiting for confirmation.

usage: porschecli [-h] [-d] [-e EMAIL] [-p PASSWORD] [-s SESSION_FILE] [--nowait]
                  {list,token,capabilities,currentoverview,storedoverview,trip_statistics,pictures,location,climatise_on,climatise_off,direct_charge_on,direct_charge_off,flash_indicators,honk_and_flash,lock_vehicle,unlock_vehicle,vehicle_closed,doors_and_lids,tire_pressure_status,tire_pressures,chargingprofile}
                  ...

Porsche Connect CLI

positional arguments:
  {list,token,capabilities,currentoverview,storedoverview,trip_statistics,pictures,location,climatise_on,climatise_off,direct_charge_on,direct_charge_off,flash_indicators,honk_and_flash,lock_vehicle,unlock_vehicle,vehicle_closed,doors_and_lids,tire_pressure_status,tire_pressures,chargingprofile}
                        command help
    capabilities        Get vehicle capabilities
    currentoverview     Get stored overview for vehicle
    storedoverview      Poll vehicle for current overview
    trip_statistics     Get trip statistics from backend
    pictures            Get vehicle pictures url
    location            Show location of vehicle
    climatise_on        Start remote climatisation
    climatise_off       Stop remote climatisation
    direct_charge_on    Enable direct charging
    direct_charge_off   Disable direct charging
    flash_indicators    Flash indicators
    honk_and_flash      Flash indicators and sound the horn
    lock_vehicle        Lock vehicle
    unlock_vehicle      Unlock vehicle
    vehicle_closed      Check if all doors and lids are closed
    doors_and_lids      List status of all doors and lids
    tire_pressure_status
                        Check if tire pressure are ok
    tire_pressures      Get tire pressure readings
    chargingprofile     Update parameters in configured charging profile

options:
  -h, --help            show this help message and exit
  -d, --debug
  -e EMAIL, --email EMAIL
  -p PASSWORD, --password PASSWORD
  -s SESSION_FILE, --sessionfile SESSION_FILE
  --nowait

Config file (for CLI)

A config file is searched for in ~/.porscheconnect.cfg and ./.porscheconnect.cfg The format is:

[porsche]
email=<your email>
password=<your password>
session_file=<file to store session information>

Library usage

Install pyporscheconnectapi using pip (requires python > 3.6)

Example client usage

Please refer to the examples provided in the repository.

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

pyporscheconnectapi-0.2.0.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

pyporscheconnectapi-0.2.0-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

Details for the file pyporscheconnectapi-0.2.0.tar.gz.

File metadata

  • Download URL: pyporscheconnectapi-0.2.0.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pyporscheconnectapi-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0480a01fc3daac6fa3f8547453b0f5b1bca7ffa0987c76c2ecbba2fce8cf7a9a
MD5 74a1c74355b77d67a9f789628d224afc
BLAKE2b-256 21c49bef79b0ed10a4b492eb8e4fa98992cafdd773da3b31a705ee6eb8487c75

See more details on using hashes here.

File details

Details for the file pyporscheconnectapi-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pyporscheconnectapi-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3b15a64204c5230ec464e52fc8398992f6a3a134d1330204f2e46fcb5e9f9b69
MD5 e23a3abcd43068fb73c890b20915ad8d
BLAKE2b-256 adb47257c018adbadff61d01a4ddee7c0493f91f10d3aca3e6fa52bff8a79a4e

See more details on using hashes here.

Supported by

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