Tesla Fleet API library for Python
Project description
tesla_fleet_api
Python library for Tesla Fleet API and Teslemetry
Currently does not support the End to End encrypted Telemetry or Command API.
Based on Tesla Developer documentation.
import asyncio
import aiohttp
from tesla_fleet_api import TeslaFleetApi, TeslaFleetError
async def main():
async with aiohttp.ClientSession() as session:
api = TeslaFleetApi(
access_token="<access_token>",
session=session,
region="na",
raise_for_status=True,
)
try:
data = await api.vehicle.list()
print(data)
except TeslaFleetError.Base as e:
print(e.message, e.error)
asyncio.run(main())
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_fleet_api-0.0.1.tar.gz
(15.2 kB
view hashes)
Built Distribution
Close
Hashes for tesla_fleet_api-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d700790f8787789c0867f3fa3475cc0b70ed530cc4cd7ea4c1f6da0cce2a1a5 |
|
MD5 | 0d5744b7360bcdcb6e10ccdfe3b6f892 |
|
BLAKE2b-256 | ce030d25db4c78a7fb87076f54b9d95467407c4047b376ddc52b06e4952d70d0 |