python-kasa/python-kasa
🏠🤖 Python API for TP-Link smarthome products observed · 2026-08-28
Health v2 · maintenance only
76/100
- Activity 93
- Release rhythm 40
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 15
- age_days: 2485
- days_rel: 567
- days_push: 46
- n_releases_24m: 12
Adoption not part of the score
1737 stars · 301 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Python library and accompanying CLI for controlling TP-Link Kasa and Tapo smart home devices such as plugs, switches, power strips, and bulbs. It supports device discovery over the local network, authentication, and state control via an asyncio-based API.
Use cases
- control TP-Link Kasa plugs from Python
- discover Tapo smart bulbs on my network
- turn smart switches on and off from the command line
- read energy and device state from Kasa power strips
- integrate TP-Link smarthome devices into home automation scripts
- provision a new Tapo device with wifi credentials
When to choose
- you want programmatic or CLI control of TP-Link Kasa/Tapo devices
- you are building home automation integrations in Python
- you need local-network device discovery without the vendor cloud app
When to avoid
- you need official vendor support or a guarantee of compatibility with the newest firmware
- you control smart home devices from other brands
- you need a graphical mobile app rather than a library or CLI
Facets
library · maturity active
sdk cli workflow-automation iot developer-tools python windows cli tplink kasa tapo smarthome asyncio device-control automation linux macos
2 sources
- readme: https://github.com/python-kasa/python-kasa · fetched 2026-08-28 · e3218510a4c7
- registry_pypi: https://pypi.org/pypi/python-kasa/json · fetched 2026-08-29 · 07928e192b5c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| python-kasa/python-kasa | main | 76 |
For agents
markdown · JSON · MCP: product_card(name="python-kasa/python-kasa")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem