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', namespace = '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
Namespaces
You will need to provide a namespace corresponding to your login. Known namespaces are:
semler:minvolkswagen
Metadata
Release files for connectedcars 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| connectedcars-0.1.5.tar.gz | 4.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| connectedcars-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.0 kB
Release files / connectedcars-0.1.5.tar.gz
| Download URL | connectedcars-0.1.5.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2fb12cb5ffb9e4cfe43a4ae3cd121dd8fe75272fd224a09c2c653945ff20a57e
|
|
BLAKE2b-256 checksum How to use checksums |
ec6794049055e5ad628c49eb8afe7242371372fb700ab5d3b35dd913f6ec6cc8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.6
|
Release files / connectedcars-0.1.5-py3-none-any.whl
| Download URL | connectedcars-0.1.5-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9311c8d9da718d4226f2e63834f9b82897f57ad78e3d48b1fc7b350a9b30ec16
|
|
BLAKE2b-256 checksum How to use checksums |
e73820b9c6e05c6a2974f585da58bb16ad4e243231eccc257271ad0f83419702
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.6
|