Skip to main content

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


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 details)

Uploaded Source

Built Distribution

tesla_fleet_api-0.0.1-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file tesla_fleet_api-0.0.1.tar.gz.

File metadata

  • Download URL: tesla_fleet_api-0.0.1.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for tesla_fleet_api-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5e2d3beed18afd50f51c3f1bc9fa8f8643a209960b48273528f539965f8ad1df
MD5 9c666924e14dedbf5756287d0b0cf887
BLAKE2b-256 df83e517607bee0271b183d7a073912d8872195915399e3486133b9695633b35

See more details on using hashes here.

Provenance

File details

Details for the file tesla_fleet_api-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for tesla_fleet_api-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8d700790f8787789c0867f3fa3475cc0b70ed530cc4cd7ea4c1f6da0cce2a1a5
MD5 0d5744b7360bcdcb6e10ccdfe3b6f892
BLAKE2b-256 ce030d25db4c78a7fb87076f54b9d95467407c4047b376ddc52b06e4952d70d0

See more details on using hashes here.

Provenance

Supported by

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