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
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.2.0.tar.gz
(3.3 kB
view hashes)
Built Distribution
tesla_client-2.2.0-py3-none-any.whl
(483.8 kB
view hashes)
Close
Hashes for tesla_client-2.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b255210c0460e48a49e6848dee83a81bcc9c54f417ac6f44b2dac2e4c7ae7302 |
|
MD5 | 3066be08b910ec2d6ebdba996a4cc747 |
|
BLAKE2b-256 | 7f450b0ce76d5d29986b3e781ff4fb4a5df257d1ce6be1cac6b8fbbc6847f5a2 |