Skip to main content

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("Logging in...")
    await client.login()

    print("Retrieving cars...")
    # Returns information about the cars registered to your account
    cars = await client.get_vehicles()

    print(await client.gather_all_information_json())

    statistics = await client.get_driving_statistics_from_date_json(cars[0]['vin'])

    print(statistics)

    statistics = await client.get_driving_statistics_from_week_json(cars[0]['vin'])

    print(statistics)

    statistics = await client.get_driving_statistics_from_month_json(cars[0]['vin'])

    print(statistics)

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

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

mytoyota-0.3.1.tar.gz (9.1 kB view hashes)

Uploaded Source

Built Distribution

mytoyota-0.3.1-py3-none-any.whl (10.0 kB view hashes)

Uploaded Python 3

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