Python client for Toyota Connected Services.
Project description
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 mytoyota
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 mytoyota
source mytoyota/bin/activate
python -m pip install "mytoyota @ git+https://github.com/DurgNomis-drol/mytoyota@master"
curl -LO https://raw.githubusercontent.com/GitOldGrumpy/mytoyota/master/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 (>= 1.2.2) 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
As I @DurgNomis-drol am not a professional programmer. I will try to maintain it as best as I can. If someone is interested in helping with this, they are more the welcome to message me to be a collaborator on this project.
Credits
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 mytoyota-2.2.0.tar.gz
.
File metadata
- Download URL: mytoyota-2.2.0.tar.gz
- Upload date:
- Size: 32.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.0 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11f5197343a4761d9d5a82019b95b4af25a0ea657644b8af381bd630a1070e8b |
|
MD5 | f834f370726ffb1ca2d134f275818aaf |
|
BLAKE2b-256 | 9d9c312b22f14a90f3afbfa8bbe64bb13e32d27638f87e0af7b67d10f09f9b45 |
File details
Details for the file mytoyota-2.2.0-py3-none-any.whl
.
File metadata
- Download URL: mytoyota-2.2.0-py3-none-any.whl
- Upload date:
- Size: 43.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.0 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a4d18be129722602f58f0df2a94afd3a5d701707c71e729d4fa444fe1ef576a |
|
MD5 | cf050c2069464bb23ac571b7d6814710 |
|
BLAKE2b-256 | de2792c7f1a9a50cdec568a438ed4abf7166491c28cee97b04c0528bc791dd98 |