SDK Python para controle de roteadores TP-Link Deco via API HTTP interna
Project description
tplink-deco-api
SDK Python para controle de roteadores TP-Link Deco (mesh Wi-Fi) via API HTTP interna.
Instalação
pip install tplink-deco-api
Uso
from tplink_deco import DecoClient
with DecoClient("192.168.68.1", "admin", "sua-senha") as deco:
for client in deco.get_client_list():
print(client.name, client.ip, client.connection_type)
Métodos disponíveis
| Método | Retorno |
|---|---|
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] |
Modelos
Todos os métodos retornam dataclasses tipadas — sem dicionários genéricos.
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 # "Minha Rede"
wlan.band2_4.guest.password # "senha-visitas"
perf.cpu_usage # 0.03
perf.mem_usage # 0.42
Requisitos
- Python 3.11+
- Roteador TP-Link Deco acessível na rede local
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.0.0.tar.gz
(35.9 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.0.0.tar.gz.
File metadata
- Download URL: tplink_deco_api-1.0.0.tar.gz
- Upload date:
- Size: 35.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38b0105f1b7144e509d236c7e471b13dd8f90196f9af5a601a9b974ce2038ac3
|
|
| MD5 |
bba96368e572e1d095c76acb2c15a0d1
|
|
| BLAKE2b-256 |
ed93bc575fbd5cf7c130141e08414122143d5c6723b3def876b075ddc653838f
|
File details
Details for the file tplink_deco_api-1.0.0-py3-none-any.whl.
File metadata
- Download URL: tplink_deco_api-1.0.0-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec0038a94a54fef47636bd4959696796709369d5a5b861a8bb918a9e3b29297d
|
|
| MD5 |
8b768e0517886b5b6dba1950da8c3043
|
|
| BLAKE2b-256 |
45392afa2f7a3f29dedffb84cf07005b88d25baf50669422e5ea1af765bdb1cc
|