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_api 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
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.0.tar.gz.
File metadata
- Download URL: tplink_deco_api-1.1.0.tar.gz
- Upload date:
- Size: 34.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37d0726b95196352bfba87e2a3cda98c3ad5ab11fc22e3dc7681631ea57525ad
|
|
| MD5 |
c009e5602b24057b277e95c459b4aa1b
|
|
| BLAKE2b-256 |
1187f17de207eca51eaf45e86c3f9b35d541e493025ae5df23ca62e75fd71ab0
|
Provenance
The following attestation bundles were made for tplink_deco_api-1.1.0.tar.gz:
Publisher:
release.yml on roquerodrigo/tplink-deco-api
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tplink_deco_api-1.1.0.tar.gz -
Subject digest:
37d0726b95196352bfba87e2a3cda98c3ad5ab11fc22e3dc7681631ea57525ad - Sigstore transparency entry: 1501863547
- Sigstore integration time:
-
Permalink:
roquerodrigo/tplink-deco-api@0356992f986ef850ca0eb5a7c3284a04c365c595 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/roquerodrigo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0356992f986ef850ca0eb5a7c3284a04c365c595 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file tplink_deco_api-1.1.0-py3-none-any.whl.
File metadata
- Download URL: tplink_deco_api-1.1.0-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7e6cd2a27286ec199053701aa30258f3e595e0466e0687829d536491e146319
|
|
| MD5 |
0a88f072459d33fe66043919f211359b
|
|
| BLAKE2b-256 |
4f435e6a4d4f487d9ba8a2d9dc250669b72f30790929f76f282578328da4f1d9
|
Provenance
The following attestation bundles were made for tplink_deco_api-1.1.0-py3-none-any.whl:
Publisher:
release.yml on roquerodrigo/tplink-deco-api
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tplink_deco_api-1.1.0-py3-none-any.whl -
Subject digest:
a7e6cd2a27286ec199053701aa30258f3e595e0466e0687829d536491e146319 - Sigstore transparency entry: 1501863609
- Sigstore integration time:
-
Permalink:
roquerodrigo/tplink-deco-api@0356992f986ef850ca0eb5a7c3284a04c365c595 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/roquerodrigo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0356992f986ef850ca0eb5a7c3284a04c365c595 -
Trigger Event:
workflow_dispatch
-
Statement type: