Skip to main content

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

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

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-6.1.0.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tesla_client-6.1.0-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file tesla_client-6.1.0.tar.gz.

File metadata

  • Download URL: tesla_client-6.1.0.tar.gz
  • Upload date:
  • Size: 16.3 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

Hashes for tesla_client-6.1.0.tar.gz
Algorithm Hash digest
SHA256 496a83c59d74c606dc1523e3b9a8d4fb18f1257f03078c4f7c41eed56bb4df3a
MD5 e148ee675dfd842b5630c827c93d55f6
BLAKE2b-256 e72ed500a57937963c26e94de334701f408fe7bb7f1a728f650a1adc5b43af71

See more details on using hashes here.

File details

Details for the file tesla_client-6.1.0-py3-none-any.whl.

File metadata

  • Download URL: tesla_client-6.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.8 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

Hashes for tesla_client-6.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 92750cb144fad11132c6f5ad8111d905ea2411e51a35305e622be4b4f06f4210
MD5 417c92f4c5cf7ed274143d52f5d3ca8f
BLAKE2b-256 94c37af9f63203c163d144280b8ba5780f0a786ded650e9f9f2002fb49991315

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page