Python client for Toyota Connected Services.
Project description
Toyota Connected Services Python module
[!] This is still in beta
Description
Python 3 package to communicate with Toyota Connected Services.
Installation
This package can be installed through pip
.
pip install mytoyota
Usage
import asyncio
from mytoyota.client import MyT
username = "jane@doe.com"
password = "MyPassword"
locale = "da-dk"
client = MyT(username=username, password=password, locale=locale, region="europe")
async def get_information():
print("Performing login...")
print(await client.get_token())
print(client.get_uuid())
print("Retrieving cars...")
# Returns information about the cars registered to your account
cars = await client.gather_information_json()
print(cars)
loop = asyncio.get_event_loop()
loop.run_until_complete(get_information())
loop.close()
Docs
Coming soon...
Contributing
This python module uses poetry 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.
Note
As I @DurgNomis-drol is not a professional programmer. I will be 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.