No project description provided
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
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
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-4.2.0.tar.gz
(15.6 kB
view details)
Built Distribution
File details
Details for the file tesla_client-4.2.0.tar.gz
.
File metadata
- Download URL: tesla_client-4.2.0.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.11.4 Linux/6.5.0-25-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9fa08427656758888b5f90109ab836274af5225fa45b5fe94cf7348d8dcab64 |
|
MD5 | eb886656e61a4890b742eefde2e701ae |
|
BLAKE2b-256 | eb0152d7c863517d65c977b2f5832419962b60a2112beb41d475a93af3b0d6d0 |
File details
Details for the file tesla_client-4.2.0-py3-none-any.whl
.
File metadata
- Download URL: tesla_client-4.2.0-py3-none-any.whl
- Upload date:
- Size: 17.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.11.4 Linux/6.5.0-25-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9e60af332360b40860968564a8f142b7b55c48a3cbf39e9c45151f0cff46b83 |
|
MD5 | 7db9f11344680cca36994da2da8c75cb |
|
BLAKE2b-256 | 4b7bee5136da6bb2897b1eb61eece8547ceafd9d3f21a20f624f4d8190987757 |