teslajsonpy
A library to work with Tesla API.
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 teslajsonpyuv
uv add teslajsonpypoetry
poetry add teslajsonpyInstalling 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
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
tesla-fleet-apiProvides Python bindings to Tesla's Fleet API…
permissive · top 15,000 on PyPI
AlexaPyalexapy provides programmatic control of Amazon…
permissive · top 15,000 on PyPI
hyundai-kia-connect-apiProvides a Python API to authenticate with and…
permissive · top 15,000 on PyPI
python-openevse-httpA Python library for asynchronous communication…
permissive · top 15,000 on PyPI
myskodaMySkoda is an async Python library that…
unclear · top 15,000 on PyPI
subarulinkInteract with Subaru's MySubaru Connected…
permissive · top 15,000 on PyPI
pydeconzPython library that wraps the deCONZ REST API…
permissive · top 15,000 on PyPI
simplisafe-pythonAn async Python interface to the SimpliSafe API…
permissive · top 15,000 on PyPI
aiohasupervisorAsynchronous Python client library for…
permissive · top 15,000 on PyPI
aiopvapiAsync Python API client for PowerView motorized…
permissive · top 15,000 on PyPI