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
7.1.0
- Add support for LocatedAtHome tracking
7.0.0
- Make account accessible from Vehicle
6.1.1
- Raise exception on wake up failure
6.0.1
- Remove fleet telemetry support checking by version
6.0.0
- Fleet telemetry status checking capabilities
4.0.2
- Relax python version requirement to 3.9
4.0.1
- Increase wait time for vehicle wake up
- Make sure navigation requests use direct API host instead of vcmd proxy
4.0.0
- Refactor with clearer and better typed interface for use by AI Agents
3.1.0
- Support Vehicle Command SDK
3.0.0
- Use official Tesla Fleet API
2.0.0
- Tesla removed support for grant_type=password. This version uses grant_type=authorization_code
1.0.0
- grant_type=password
Release files for tesla-client 7.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tesla_client-7.1.0.tar.gz | 16.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tesla_client-7.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 34.5 kB
Release files / tesla_client-7.1.0.tar.gz
| Download URL | tesla_client-7.1.0.tar.gz |
|---|---|
| Size | 16.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
81849622985c63fedd6a0ff4b4d657ec5283ae743a0953b4ace1afca21bf3008
|
|
BLAKE2b-256 checksum How to use checksums |
4df0e852a059a9b2a8819c2e4c1a88985a7fb8dddffb904e1d26fcaf8b16872c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.1 CPython/3.11.4 Linux/6.5.0-25-generic
|
Release files / tesla_client-7.1.0-py3-none-any.whl
| Download URL | tesla_client-7.1.0-py3-none-any.whl |
|---|---|
| Size | 18.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fc7e696b11107873bd9f4ed2d5a39f0563f2ef0270c07924073820f17c43530c
|
|
BLAKE2b-256 checksum How to use checksums |
137d5c6a608679dbda49c47a6ea9de00f7a56b441498429f275b9bc42c65eff9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.1 CPython/3.11.4 Linux/6.5.0-25-generic
|