Skip to main content

Python client for Toyota Connected Services.

Project description

License PyPI version PyPI - Python Version Github Actions Build Code Coverage CodeQL

Toyota Connected Services Europe Python module

🚨 Breaking changes ahead 🚨

Version 1.0.0 only supports the new ctpa-oneapi API endpoints that were introduced with the new MyToyota app. Some functions are not yet implemented and must first be determined due to the lack of API documentation.

Users of the old MyT app should use a mytoyota python module version < 1.0.0.

⚠️ This is still in beta

⚠️ Only EU is supported, other regions are not possible so far. See this for North America

Description

Python 3 package to communicate with Toyota Connected Europe Services. This is an unofficial package and Toyota can change their API at any point without warning.

Installation

This package can be installed through pip.

pip install pytoyoda

Usage

For a quick start on how to use the package take a look at the simple_client_example.py file contained in the report. You can also use and execute this file directly by using the following commands:

python -m venv pytoyoda
source pytoyoda/bin/activate
python -m pip install "pytoyoda@git+https://github.com/pytoyoda/pytoyoda@main"
curl -LO https://raw.githubusercontent.com/pytoyoda/pytoyoda/main/simple_client_example.py
# Create a credentials.json file with {"username":"your@mail.tld","password":"yourpassword"}
python simple_client_example.py

Known issues

  • Statistical endpoint will return None if no trip have been performed in the requested timeframe. This problem will often happen at the start of each week, month or year. Also daily stats will of course also be unavailable if no trip have been performed.
  • Currently, it is only possible to get various vehicle information. Functions for controlling and setting vehicle properties have not yet been implemented.

Docs

Coming soon...

Contributing

This python module uses poetry (>= 2.0.0) and pre-commit.

To start contributing, fork this repository and run poetry install. Then create a new branch. Before making a PR, please run pre-commit poetry run pre-commit run --all-files and make sure that all tests passes locally first by running pytest tests/.

Note

This is a friendly community fork of the original project by @DurgNomis-drol, to ease up on maintenance and the bus factor for this project.

Credits

Special thanks go @DurgNomis-drol for starting this project! A huge thanks go to @calmjm for making tojota.

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

pytoyoda-2.4.0.tar.gz (36.2 kB view details)

Uploaded Source

Built Distribution

pytoyoda-2.4.0-py3-none-any.whl (49.4 kB view details)

Uploaded Python 3

File details

Details for the file pytoyoda-2.4.0.tar.gz.

File metadata

  • Download URL: pytoyoda-2.4.0.tar.gz
  • Upload date:
  • Size: 36.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pytoyoda-2.4.0.tar.gz
Algorithm Hash digest
SHA256 7f58f96bcda897e809247ebdaff8a7ecb810f83a173f9f628a47d79bb81b2470
MD5 be97cf13d15238c1d9faf74700de1aea
BLAKE2b-256 9fe9913791a6ecb84dc4eb04cdc3a0163bd0413475210dc21db4d078e5d48f91

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytoyoda-2.4.0.tar.gz:

Publisher: python-publish.yml on pytoyoda/pytoyoda

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytoyoda-2.4.0-py3-none-any.whl.

File metadata

  • Download URL: pytoyoda-2.4.0-py3-none-any.whl
  • Upload date:
  • Size: 49.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pytoyoda-2.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4fbddbd0209e278cc3f13974c7ece6e0aaa69bb74b3f356301f2955953d57559
MD5 eca4d598572ba375cb2707e38ded0870
BLAKE2b-256 81524b1cc1f0f09b5cd3471b5a30e4c85abff11518b779dfb95174323c6a9a65

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytoyoda-2.4.0-py3-none-any.whl:

Publisher: python-publish.yml on pytoyoda/pytoyoda

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page