Library for interaction with the MySkoda APIs.
Project description
MySkoda
This Python library can be used to work with the MySkoda API.
Get In Touch
We have an active community in our discord. Feel free to join.
If you have any issues, please report them in our issue tracker.
Quick Start
The MySkoda package is published to Pypi and can be found here.
It can be installed the usual way:
pip install myskoda
Basic example
from aiohttp import ClientSession
from myskoda import MySkoda
session = ClientSession()
myskoda = MySkoda(session)
await myskoda.connect(email, password)
for vin in await myskoda.list_vehicle_vins():
print(vin)
myskoda.disconnect()
await session.close()
Documentation
Detailed documentation is available at read the docs:
As Library
MySkoda relies on aiohttp which must be installed.
A ClientSession
must be opened and passed to MySkoda
upon initialization.
After connecting, operations can be performed, events can be subscribed to and data can be loaded from the API.
Don't forget to close the session and disconnect MySkoda after you're done.
As CLI
The MySkoda package features a CLI.
You will have to install it with extras cli
:
pip install myskoda[cli]
Afterwards, the CLI is available in your current environment by invoking myskoda
.
Username and password must be provided to the CLI for every request as options, before selecting a sub command:
myskoda --user "user@example.com" --password "super secret" list-vehicles
Help can be accessed the usual way:
myskoda --help
Contribute your Fixtures
Please contribute fixtures for our tests by running this command:
# Export all endpoints for all vehicles.
myskoda \
--user user \
--password password \
gen-fixtures \
--name my_cars \
--description "My cars in no specific state."
--vehicle all \
get all
It is also possible to just contribute a single vehicle:
# Export all endpoints for a specific vehicle.
myskoda \
--user user \
--password password \
gen-fixtures \
--name my_favorite_car \
--description "My favorite car in no specific state."
--vehicle TMOCKAA0AA000000 \
get all
Or even narrow down to an inidividual endpoint for an individual vehicle:
# Export a specific endpoint for a specific vehicle.
myskoda \
--user user \
--password password \
gen-fixtures \
--name my_favorite_car_info \
--description "Info for my favorite car in no specific state."
--vehicle TMOCKAA0AA000000 \
get info
This will call all the selected get-routes and load all data from your vehicles (no actions will be performed).
The data will be anonymized (vin and personal data are replaced) and serves as unit tests.
Please create a pull request with the resulting data to help us cover more vehicles.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file myskoda-0.8.2.tar.gz
.
File metadata
- Download URL: myskoda-0.8.2.tar.gz
- Upload date:
- Size: 34.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb5561a0e04e16b24411f07ba614917d18dfdc57e5da1148e8414eede36500b0 |
|
MD5 | 734382653a436fb345ff4a10e9cac00d |
|
BLAKE2b-256 | 127a29da386dafeef5a63295a5da1523bc8d92f18dbe8389615a79ca450caa2d |
File details
Details for the file myskoda-0.8.2-py3-none-any.whl
.
File metadata
- Download URL: myskoda-0.8.2-py3-none-any.whl
- Upload date:
- Size: 45.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f1aeac514a3710449bbae44e07ff2afae6081d14231ad943c9076240450d53e |
|
MD5 | 74eef8acab8e2ea8bb1d9dc313284e9b |
|
BLAKE2b-256 | 4827e2603d3cfe85d5925e88b861d242469703072f0fac040017fa4e5c530add |