Skip to main content

Library for interaction with the MySkoda APIs.

Project description

Version PyPi Downloads PyPi Docs Discord Coverage Status

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 the script:

python scripts/gen_fixtures.py \
    --user user@example.com \
    --password super_secret \
    --name name_of_your_test \
    --description "This is an initial test case for this vehicle. The vehicle was in motion"

This will call all 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

myskoda-0.7.3.tar.gz (30.4 kB view details)

Uploaded Source

Built Distribution

myskoda-0.7.3-py3-none-any.whl (39.4 kB view details)

Uploaded Python 3

File details

Details for the file myskoda-0.7.3.tar.gz.

File metadata

  • Download URL: myskoda-0.7.3.tar.gz
  • Upload date:
  • Size: 30.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for myskoda-0.7.3.tar.gz
Algorithm Hash digest
SHA256 8a2b559ab24f16f1c5ab89827b0f2b44816f45ab89959b8a4d012aed235b4087
MD5 a5bf50f17ce793a837d4da231c262844
BLAKE2b-256 480d93226659d4f5dc3d0541193fb9f1b0e141d27d39af75dd7d4d8c95996938

See more details on using hashes here.

File details

Details for the file myskoda-0.7.3-py3-none-any.whl.

File metadata

  • Download URL: myskoda-0.7.3-py3-none-any.whl
  • Upload date:
  • Size: 39.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for myskoda-0.7.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a2b4e507c3b1d2bbb63784c2eea3685a2c0f71b73f3ba9de9df8e6c0d6a2e47b
MD5 db19d0efcdc4739b3bc85b1ea07d22f7
BLAKE2b-256 fb6ab74dc5aa2fefd23ca7a4e6c99320f38b273099bd18170adf8d7531393d8a

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