Audi Connect API
This library provides access to the Audi Connect API. It allows easy access to all vehicle relevant data.
The API does automatic session caching and tries to keep the original service names as found in the audi connect app.
Some services require special permissions or certain origin countries of the car to be accessible.
Note: Not all services are fully implemented due to missing permissions as mentioned above.
Installing
pip install audiapi
Examples
Login credentials
credentials.json
{
"user": "yourUser@mail.com",
"pass": "yourPassword"
}
List all vehicles under your account
The auth tokens will be cached in the working directory
api = API()
logon_service = LogonService(api)
if not logon_service.restore_token():
with open('credentials.json') as data_file:
data = json.load(data_file)
logon_service.login(data['user'], data['pass'])
car_service = CarService(api)
car_service.get_vehicles()
Response
{
"csid": "-----",
"vin": "-----",
"registered": "2017-02-15T18:06:39.000+01:00"
}
Get details about the embedded SIM
mgmt_service = VehicleManagementService(api, vehicle)
mgmt_service.get_information()
Response
{
"vehicleData": {
"requestId": "--",
"vin": "--",
"country": "DE",
"isConnect": "true",
"brand": "Audi",
"vehicleDevices": {
"vehicleDevice": [
{
"ecuGeneration": "MIB2high",
"deviceType": "INFOTAINMENT"
},
{
"deviceId": "----",
"embeddedSim": {
"identification": {
"content": "----",
"type": "ICCID"
},
"imei": "----",
"mno": "vodafone"
},
"ecuGeneration": "cGW",
"deviceType": "TELEMATICS"
}
]
},
"isConnectSorglosReady": "true",
"systemId": "XID_APP_AUDI"
}
}
Dependencies
- Python 3
- Requests library
Metadata
Release files for audiapi 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| audiapi-1.0.1.tar.gz | 9.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| audiapi-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.4 kB
Release files / audiapi-1.0.1.tar.gz
| Download URL | audiapi-1.0.1.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e5aee01adc256dd75d5478fb01052eb3701ff1d2c1fbdb2eb7bff9528349686
|
|
BLAKE2b-256 checksum How to use checksums |
e6a87618c83fad60294e997e9194ffb2f327fd8c724d2e969ace5d0216c4e870
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.6.5
|
Release files / audiapi-1.0.1-py3-none-any.whl
| Download URL | audiapi-1.0.1-py3-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dce3d1bda2e243321273c32dadfbe6a1de21c67a72c2f11211db22b1b9932e1d
|
|
BLAKE2b-256 checksum How to use checksums |
88eec52c945c03489d72031f9fafc98fb6924d44a0ced31dd7d2f7eaa2aaeebc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.6.5
|