Skip to main content

Python Tesla API wrapper

Project description

Tesla API wrapper

Installation

Use the package manager pip to install TeslaClient

pip install TeslaClient

Usage

Import TeslaClient

t = TeslaClient('email', 'password') # instantiates the client
t.connect() # connects to the api
v = t.vehicle('vehicle name') # creates an vehicle object based on case sensitive name
v.get_vehicle_data(*args) # accepts vehicle/climate/drive/charge_state or no parameter to collect all data. Loads data into a property dict of the same name
v.send_vehicle_command(command, data={}) # sends a command to vehicle, data parameter should contain any parameters required for command

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

teslaclient-0.0.5.tar.gz (2.8 kB view hashes)

Uploaded source

Built Distribution

teslaclient-0.0.5-py3-none-any.whl (4.5 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page