Python SDK for controlling TP-Link Deco routers via the internal HTTP API
Project description
tplink-deco-api
Python SDK for controlling TP-Link Deco mesh Wi-Fi routers via the internal HTTP API.
Installation
pip install tplink-deco-api
Usage
from tplink_deco_api import DecoClient
with DecoClient("192.168.68.1", "admin", "your-password") as deco:
for client in deco.get_client_list():
print(client.name, client.ip, client.connection_type)
Available methods
| Method | Returns |
|---|---|
login() |
LoginResult |
get_device_list() |
list[Device] |
get_device_mode() |
DeviceMode |
get_wlan_config() |
WlanConfig |
get_performance() |
Performance |
get_client_list(deco_mac?) |
list[ClientDevice] |
Models
Every method returns typed dataclasses — no generic dictionaries.
client.mac # "AA:BB:CC:DD:EE:FF"
client.name # "MacBook Pro"
client.ip # "192.168.68.10"
client.connection_type # "band6"
client.online # True
device.device_model # "BE65"
device.software_ver # "1.2.10 Build 20251229"
wlan.band2_4.host.ssid # "My Network"
wlan.band2_4.guest.password # "guest-password"
perf.cpu_usage # 0.03
perf.mem_usage # 0.42
Requirements
- Python 3.11+
- TP-Link Deco router reachable on the local network
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
tplink_deco_api-1.1.2.tar.gz
(69.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tplink_deco_api-1.1.2.tar.gz.
File metadata
- Download URL: tplink_deco_api-1.1.2.tar.gz
- Upload date:
- Size: 69.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d2fcaa6a544afc3eeb7a60983eca88bedfb2f0df08ad778de94ba95bc8857fa
|
|
| MD5 |
aa775a3af2169d7eacd869175eefc21b
|
|
| BLAKE2b-256 |
d10f798c3ea8bd730d054f0b559c367a84e9454390cc1ae9354c4d6699970347
|
File details
Details for the file tplink_deco_api-1.1.2-py3-none-any.whl.
File metadata
- Download URL: tplink_deco_api-1.1.2-py3-none-any.whl
- Upload date:
- Size: 21.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45415ab0f0b9f11ba616e17527cd6eb3793c76e627a073f431993c613d3251af
|
|
| MD5 |
4055e9742999cc081dba6ef7ab3d37da
|
|
| BLAKE2b-256 |
037dfeafd1b7ded6fd09fd1617c2cbad40bb42d5c0ceb204dbebddb08f337ac8
|