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
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.1.tar.gz.
File metadata
- Download URL: tplink_deco_api-1.1.1.tar.gz
- Upload date:
- Size: 55.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d65631c1a20e474d386e3c4df70c6190aa3686eea9520679a7cfdcf6b84d6f2e
|
|
| MD5 |
6df06c264266e8b0b7fc0cd9dfbf03fb
|
|
| BLAKE2b-256 |
5007d1a0115865f7b8dbefd8270ad3dd438ab409538ff6f2f3c13fec10ad937e
|
Provenance
The following attestation bundles were made for tplink_deco_api-1.1.1.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.1.tar.gz -
Subject digest:
d65631c1a20e474d386e3c4df70c6190aa3686eea9520679a7cfdcf6b84d6f2e - Sigstore transparency entry: 1536521367
- Sigstore integration time:
-
Permalink:
roquerodrigo/tplink-deco-api@e97c1e82a083c8819def5f20d003e4dbcdaa826b -
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@e97c1e82a083c8819def5f20d003e4dbcdaa826b -
Trigger Event:
push
-
Statement type:
File details
Details for the file tplink_deco_api-1.1.1-py3-none-any.whl.
File metadata
- Download URL: tplink_deco_api-1.1.1-py3-none-any.whl
- Upload date:
- Size: 20.9 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 |
79513de7a8886b7ba29910c411b160c7dc7b2087642d9b2821ed09e6585fc90a
|
|
| MD5 |
1d43cab107b433b974e3dea31099efe8
|
|
| BLAKE2b-256 |
954ba3a5db9caf9454a948416ec013ec2fe2bd27210bc289f191aa878093811a
|
Provenance
The following attestation bundles were made for tplink_deco_api-1.1.1-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.1-py3-none-any.whl -
Subject digest:
79513de7a8886b7ba29910c411b160c7dc7b2087642d9b2821ed09e6585fc90a - Sigstore transparency entry: 1536521532
- Sigstore integration time:
-
Permalink:
roquerodrigo/tplink-deco-api@e97c1e82a083c8819def5f20d003e4dbcdaa826b -
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@e97c1e82a083c8819def5f20d003e4dbcdaa826b -
Trigger Event:
push
-
Statement type: