Tesla API Client
Project description
tesla_client
This library allows access to the unofficial Tesla API for reading data and issuing commands to Tesla vehicles.
Quick Start
import tesla_client
# Define an Account subclass of your own to provide an access_token
class MyTeslaAccount(tesla_client.Account):
def get_access_token(self) -> str:
return your_oauth_solution.get_up_to_date_access_token()
account = MyTeslaAccount()
# Access a vehicle in this account
vehicle = account.get_vehicles()[0]
# Fetch some data from the vehicle
vehicle.data_request('drive_state')
# Send a command to the vehicle
vehicle.command('honk_horn')
The Tesla API is not officially supported by Tesla, Inc. It may stop working at any time. For detailed documentation of API commands, see https://tesla-api.timdorr.com/. Thanks to Tim Dorr for his work in documenting the unofficial API.
Tesla, Inc. does not endorse or support this python library.
Versions
2.0.0
- Tesla removed support for grant_type=password. This version uses grant_type=authorization_code
1.0.0
- grant_type=password
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
tesla_client-2.0.0.tar.gz
(2.9 kB
view details)
Built Distribution
tesla_client-2.0.0-py3-none-any.whl
(483.4 kB
view details)
File details
Details for the file tesla_client-2.0.0.tar.gz
.
File metadata
- Download URL: tesla_client-2.0.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18dbad2b4e5aeb01a64f695fad4176f4bf8d165fe4103da2816b293a9806c89f |
|
MD5 | 0f1779c5631b34f9fa82a722b5e2957c |
|
BLAKE2b-256 | 195ea7659ea896b39d5677e298ea2daf5443162308d6c28b12b404b309dbd0b5 |
File details
Details for the file tesla_client-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: tesla_client-2.0.0-py3-none-any.whl
- Upload date:
- Size: 483.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfd8739752a0421f3f910caf3d2d1bcde4fabbced5900b5beaaab6acca70fd8e |
|
MD5 | 6058ed37f5b502bb536520feae72f318 |
|
BLAKE2b-256 | 775144075a17774c02ade41710f27acf437d05f2319b8b4c1d45c76e2533b354 |