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 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
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 pytoyoda-2.3.1.tar.gz
.
File metadata
- Download URL: pytoyoda-2.3.1.tar.gz
- Upload date:
- Size: 32.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
740a40e8f323b6939ffdb780ff6f08ed2ae3d9136cfec7f7e6e9f967977d6e26
|
|
MD5 |
02adeb1d00111897e70c41bff206ac88
|
|
BLAKE2b-256 |
eda7b3f95ce0dd64706a4acd03977d540db517a3a0df6fb8fd425249284fd276
|
Provenance
The following attestation bundles were made for pytoyoda-2.3.1.tar.gz
:
Publisher:
python-publish.yml
on pytoyoda/pytoyoda
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
pytoyoda-2.3.1.tar.gz
-
Subject digest:
740a40e8f323b6939ffdb780ff6f08ed2ae3d9136cfec7f7e6e9f967977d6e26
- Sigstore transparency entry: 176365363
- Sigstore integration time:
-
Permalink:
pytoyoda/pytoyoda@12443dfd5d4fb24b058b1f65d8a9118514e2b99f
-
Branch / Tag:
refs/tags/v2.3.1
- Owner: https://github.com/pytoyoda
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
python-publish.yml@12443dfd5d4fb24b058b1f65d8a9118514e2b99f
-
Trigger Event:
release
-
Statement type:
File details
Details for the file pytoyoda-2.3.1-py3-none-any.whl
.
File metadata
- Download URL: pytoyoda-2.3.1-py3-none-any.whl
- Upload date:
- Size: 44.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
643b8540062be1364f12a0f9e67197100027f43e3214604e9cc34202bd6c72d4
|
|
MD5 |
a3ddca7e3d36ee0e13696984f8383456
|
|
BLAKE2b-256 |
d2e93cba48641fd449039d8b9e17e74e27e704f67b8dbe2f79916365c11ec6c6
|
Provenance
The following attestation bundles were made for pytoyoda-2.3.1-py3-none-any.whl
:
Publisher:
python-publish.yml
on pytoyoda/pytoyoda
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
pytoyoda-2.3.1-py3-none-any.whl
-
Subject digest:
643b8540062be1364f12a0f9e67197100027f43e3214604e9cc34202bd6c72d4
- Sigstore transparency entry: 176365368
- Sigstore integration time:
-
Permalink:
pytoyoda/pytoyoda@12443dfd5d4fb24b058b1f65d8a9118514e2b99f
-
Branch / Tag:
refs/tags/v2.3.1
- Owner: https://github.com/pytoyoda
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
python-publish.yml@12443dfd5d4fb24b058b1f65d8a9118514e2b99f
-
Trigger Event:
release
-
Statement type: