Wrapper for access the Connected Cars API - an AVL/data collection service installed in most new danish vehicles from Audi, Volkswagen, Skoda and SEAT.
Project description
Python wrapper for the ConnectedCars REST API
Connected Cars is an AVL/data collection service installed in most new danish vehicles from Audi, Volkswagen, Skoda and SEAT. The service has an API that is using GraphQL. This is a thin python wrapper for that API which handles authentication and refresh of access tokens. It allows the direct execution of GraphQL queries, but also includes some predefined queries that returns pyton objects for convenience.
Installation
pip install connectedcars
Data available
Depends on the car, but examples includes:
- gps position
- fuel level
- odometer
Usage
from connectedcars import ConnectedCarsClient
client = ConnectedCarsClient(username = 'XXX', password = 'XXX')
vehicles = client.vehicles_overview()
for vehicle in vehicles:
print(vehicle.make, vehicle.model, vehicle.fuelLevel.liter)
Could output something like:
Volkswagen Golf 38.0
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
Built Distribution
Hashes for connectedcars-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8300fd93e2d7e018c5ff37d9039c0d092e26e749f53d0d850c5f1880148eb379 |
|
MD5 | 859564920e561d146963035b1969bdf9 |
|
BLAKE2b-256 | 393073240a451b9344588c1340e782534ba09cc4f2c484b95da90ab6d73df434 |