skillfed

teslajsonpy

A library to work with Tesla API.

teslajsonpy v3.13.2 89.0K downloads/30d#13,690 on PyPI58
Permissive license Apache-2.0 Active released

What it is and what it does

teslajsonpy is an async Python wrapper around the Tesla API, built to enable Home Assistant and other home automation platforms to control and monitor Tesla vehicles. It abstracts the HTTP communication layer, handling authentication, request formatting, and response parsing so that integrations can work with Tesla vehicles without reimplementing API details. The library depends on aiohttp for async HTTP, tenacity for retry logic, beautifulsoup4 for parsing, and several other utilities for authentication and JSON handling.

The package is in Alpha status but actively maintained, with support across Python 3.7–3.13. It carries no known security vulnerabilities and is permissively licensed under Apache-2.0. It is primarily used by Home Assistant users and developers building Tesla integrations, though the exact scope of real-world adoption beyond that ecosystem is not documented in the fact sheet.

Use it for:

  • Build Home Assistant automations that lock/unlock Tesla vehicles, control climate, or trigger charging.
  • Monitor Tesla vehicle state (battery, location, temperature) from a custom Python application.
  • Integrate Tesla vehicle data into a home automation dashboard or notification system.
  • Develop a third-party tool that queries Tesla API without reimplementing authentication and request handling.
  • Create scheduled tasks to check vehicle status or perform maintenance checks via async Python.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

An async Python library for interacting with the Tesla API, designed to enable integration with Home Assistant and other automation platforms.

Yes, if you are building a Home Assistant integration or custom automation around Tesla vehicles. The library is actively maintained, has low install friction, carries no known vulnerabilities, and is permissively licensed. The Alpha status and modest GitHub presence (58 stars) suggest it is stable enough for its primary use case but not yet a de facto standard; verify that the API surface matches your integration needs before committing.

Install

teslajsonpy on PyPI

pip

pip install teslajsonpy

uv

uv add teslajsonpy

poetry

poetry add teslajsonpy

Installing teslajsonpy

Before you install

Low install friction with a pure-Python wheel distribution. Actively maintained with a recent commit on 2026-08-10 and a release from 2025-09-26. Supports Python 3.7 through 3.13.

License in practice

Licensed under Apache-2.0 (permissive), allowing commercial and private use with attribution. Contributions are accepted under the same license.

Quickstart

pip install teslajsonpy

import asyncio
from teslajsonpy import TeslaAPI

async def main():
    api = TeslaAPI(email, password)
    vehicles = await api.list_vehicles()

asyncio.run(main())

Requires Python 3.7 or later and async/await support; Tesla account credentials needed for API access.

Verify before relying

  • Whether the package handles Tesla API authentication changes or rate limiting transparently.
  • Current status of Home Assistant integration—whether it remains the primary use case or if broader adoption has emerged.
  • Whether authcaptureproxy dependency is required for CAPTCHA handling in all scenarios or only specific auth flows.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (<4.0,>=3.7)
Install friction low — pure-Python wheel
Runtime dependencies 7 — aiohttp, tenacity, beautifulsoup4, wrapt, authcaptureproxy, httpx, orjson
Maintenance actively maintained — 322 days since the last release
Last repo commit
First released
Downloads 88,952/month — #13,690 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: teslajsonpy-3.13.2-py3-none-any.whl

Development Status :: 3 - AlphaEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python Modules

Tags

tesla api python asynctesla home automation librarytesla vehicle control pythonasync tesla api clienttesla home assistant integrationtesla json api wrappertesla vehicle data access
tesla-apihome-automationasync-http

More Python Modules packages