API wrapper for communication with ASUSWRT-powered routers using HTTP protocol
Project description
AsusRouter
AsusRouter is an API wrapper for communication with ASUSWRT-powered routers using HTTP(S) protocols. The library supports both the stock AsusWRT firmware and AsusWRT-Merlin.
Up till now, it is only used for the custom AsusRouter Home Assistant integration. But I am always open to making it suitable for any other use.
Installation
Installation of the latest release is available from PyPI:
pip install asusrouter
Usage
Once installed, you can import the AsusRouter class from the module. Example shows the default parameters except for host, username and password.
from asusrouter import AsusRouter
router = AsusRouter(host = "router.my.address", #required - both IP and URL supported
username = "admin", #required
password = "password", #required
port = None, #optional - default port would be selected based on use_ssl parameter
use_ssl = False, #optional
cache_time = 5) #optional
Supported devices
AsusRouter supports virtually every AsusWRT-powered device.
WiFi 7 | 802.11be
| Model | Status | Tested firmware | Find it on Amazon[^amazon] |
|---|---|---|---|
| GT-BE98 | ๐ Expected to work | find it | |
| RT-BE96U | ๐ Expected to work | find it |
WiFi 6e | 802.11axe
| Model | Status | Tested firmware | Find it on Amazon[^amazon] |
|---|---|---|---|
| GT-AXE11000 | ๐ Expected to work | find it | |
| GT-AXE16000 | ๐ Confirmed | Stock:388.21617 |
find it |
| RT-AXE7800 | ๐ Confirmed | Stock:388_22068 |
find it |
| ZenWiFi ET8 | ๐ Expected to work | find it | |
| ZenWiFi Pro ET12 | ๐ Expected to work | find it |
WiFi 6 | 802.11ax
| Model | Status | Tested firmware | Find it on Amazon[^amazon] |
|---|---|---|---|
| DSL-AX82U | ๐ Confirmed | Merlin:386.07_0-gnuton0_beta2 |
find it |
| GT-AX11000 | ๐ Confirmed | Merlin:386.7_2388.1_0 |
find it |
| GT-AX11000 Pro | ๐ Expected to work | find it | |
| GT-AX6000 | ๐ Expected to work | find it | |
| GT6 | ๐ Expected to work | find it | |
| RT-AX55 | ๐ Confirmed | Stock:386.50410 |
find it |
| RT-AX56U | ๐ Confirmed | Merlin:386.7_2 |
find it |
| RT-AX57 | ๐ Expected to work | find it | |
| RT-AX58U | ๐ Confirmed | Stock:386.49674388.22237386.7_2388.1_0 |
find it |
| RT-AX59U | ๐ Expected to work | find it | |
| RT-AX68U | ๐ Confirmed | Stock:388.21732 |
find it |
| RT-AX82U | ๐ Confirmed | Stock:386.48664386.49674 |
find it |
| RT-AX86S | ๐ Confirmed | Stock:386.46061386.48260386.49447388.22525386.7_2 |
find it |
| RT-AX86U | ๐ Confirmed | Stock:386.46061386.48260386.49447388.22525386.7_2 |
find it |
| RT-AX86U Pro | ๐ Confirmed | Stock:388.23565 |
find it |
| RT-AX88U | ๐ Confirmed | Stock:386.45934386.48631386.5_2386.8_0388.1_0388.2_0388.4_0 |
find it |
| RT-AX88U Pro | ๐ Expected to work | find it | |
| RT-AX89X | ๐ Confirmed | find it | |
| RT-AX92U | ๐ Confirmed | Stock:386.46061 |
find it |
| TUF-AX3000 V2 | ๐ Confirmed | Stock:388.23785 |
find it |
| TUF-AX4200 | ๐ Expected to work | find it | |
| TUF-AX5400 | ๐ Confirmed | Stock:386.50224388.21224388.22525 |
find it |
| TUF-AX6000 | ๐ Confirmed | Stock:388.32432 |
find it |
| ZenWiFi AX (XT8) | ๐ Confirmed | Stock:386.48706386.7_2-gnuton1 |
find it |
| ZenWiFi AX Hybrid (XP4) | ๐ Expected to work | find it | |
| ZenWiFi AX Mini (XD4) | ๐ Confirmed | Stock:386.48790386.49599 |
find it |
| ZenWiFi Pro XT12 | ๐ Confirmed | Stock:388.22127 |
find it |
| ZenWiFi XD4 Plus | ๐ Expected to work | find it | |
| ZenWiFi XD4S | ๐ Expected to work | find it | |
| ZenWiFi XD5 | ๐ Expected to work | find it | |
| ZenWiFi XD6 | ๐ Confirmed | Stock:388.21380 |
find it |
| ZenWiFi XD6S | ๐ Confirmed | Stock:388.21380 |
find it |
| ZenWiFi XT9 | ๐ Confirmed | Stock:388_23285 |
find it |
WiFi 5 | 802.11ac
| Model | Status | Tested firmware | Find it on Amazon[^amazon] |
|---|---|---|---|
| 4G-AC55U | ๐ Confirmed | find it | |
| DSL-AC68U | ๐ Confirmed | Stock:386.47534386.50117386.4-gnuton2386.7_2-gnuton1 |
find it |
| RT-AC51U | ๐ Confirmed | Stock:380.8591 |
find it |
| RT-AC52U B1 | ๐ Confirmed | find it | |
| RT-AC5300 | ๐ Confirmed | Merlin:386.7_2 |
find it |
| RT-AC57U V3 | ๐ Confirmed | Stock:386.21649 |
find it |
| RT-AC58U | ๐ Confirmed | find it | |
| RT-AC66U | ๐ Confirmed | Merlin:380.70_0 |
find it |
| RT-AC66U B1 | ๐ Confirmed | Stock:386.51255 |
find it |
| RT-AC68U | ๐ Confirmed | Stock:386.49703386.5_2386.7_0 |
find it |
| RT-AC85P | ๐ Confirmed | Stock:382.52516 |
find it |
| RT-AC86U | ๐ Confirmed | Stock:386.48260386.49709386.7_0386.7_2386.9_0 |
find it |
| RT-AC87U | ๐ Confirmed | Merlin:384.13_10 |
find it |
| RT-AC88U | ๐ Confirmed | Stock:386.48260386.7_beta1 |
find it |
| RT-ACRH17 | ๐ Confirmed | Stock:382.52517 |
find it |
| ZenWiFi AC Mini(CD6) | ๐ Expected to work | find it |
WiFi 4 | 802.11n
| Model | Status | Tested firmware | Find it on Amazon[^amazon] |
|---|---|---|---|
| RT-N66U | ๐ Confirmed | find it |
Support the library
Issues and Pull requests
If you have found an issue working with the library or just want to ask for a new feature, please fill in a new issue.
You are also welcome to submit pull requests to the repository!
Check it with your device
Testing the library with different devices would help a lot in the development process. Unfortunately, currently, I have only one device available, so your help would be much appreciated.
Other support
This library is a free-time project. If you like it, you can support me by buying a coffee.
[^amazon]: As an Amazon Associate I earn from qualifying purchases. Not like I ever got anything yet (:
Project details
Release history Release notifications | RSS feed
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 asusrouter-1.0.0b3.tar.gz.
File metadata
- Download URL: asusrouter-1.0.0b3.tar.gz
- Upload date:
- Size: 52.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1d9a8f4c55ecb7eddf1c72cccbea6bcaaa7cc217dae2fce26f1f9043f3f876c
|
|
| MD5 |
4c461f981473132ffe9c445197a25249
|
|
| BLAKE2b-256 |
ddcb931a1431a2e457dd2bfcec9cafc8a510df8e78eade4b8a4260fc774b2014
|
File details
Details for the file asusrouter-1.0.0b3-py3-none-any.whl.
File metadata
- Download URL: asusrouter-1.0.0b3-py3-none-any.whl
- Upload date:
- Size: 68.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4378fdb448bfdeb74d49917a8ef231a9245d606ec3ff2cb7ea1b06f7f114cee7
|
|
| MD5 |
34a507259415157f174852301c3213aa
|
|
| BLAKE2b-256 |
513e5b6d2c2994ff4d0d7a681668134ef2e3cc8949dc44b37525418b5cd1513e
|