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
Release files for tesla-client 3.0.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-3.0.0.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tesla_client-3.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 488.3 kB
Release files / tesla_client-3.0.0.tar.gz
| Download URL | tesla_client-3.0.0.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0d085c392dfbc983faca68feb5b73061cf385e277c278bf90903fea6ec7c33e
|
|
BLAKE2b-256 checksum How to use checksums |
890115b443311d9d52982139fff1489b70a5bde4e06facae49d3c9f41f2c779e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / tesla_client-3.0.0-py3-none-any.whl
| Download URL | tesla_client-3.0.0-py3-none-any.whl |
|---|---|
| Size | 483.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fb444ab690cd16c07437f02ddc95c879fd5a2db163abcc0b76d7705861416dc3
|
|
BLAKE2b-256 checksum How to use checksums |
3e538fa85e0469cf8433025cba60e94766e7e941f45b4de9de0ec2780acfc4ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|