asusrouter
API wrapper for communication with ASUSWRT-powered routers using HTTP protocol
What it is and what it does
Asusrouter is a Python library that wraps the HTTP API of ASUSWRT-powered routers, enabling programmatic access to router configuration, status, and control functions. It uses async/await patterns via aiohttp to communicate with routers over HTTP or HTTPS, parsing responses with xmltodict. The library is designed primarily for Home Assistant integrations but can be used standalone in any async Python application that needs to interact with ASUS routers.
The package supports a wide range of ASUS router models across WiFi standards (WiFi 6, 6e, and 7), with both stock ASUSWRT and AsusWRT-Merlin firmware. It abstracts away the low-level HTTP protocol details and XML parsing, exposing a simple async API for querying network data and managing router settings. Installation is straightforward with minimal dependencies, and the codebase is actively maintained.
Use it for:
- Monitor network status and connected device information from an ASUS router in a Home Assistant automation.
- Query WiFi performance metrics and signal strength data for reporting or alerting systems.
- Programmatically reboot or reconfigure ASUS router settings from a custom network management tool.
- Build a dashboard that aggregates real-time router statistics and client connection logs.
- Integrate ASUS router telemetry into a broader IoT monitoring platform using async Python.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Asynchronous API wrapper for querying and controlling ASUSWRT-powered routers over HTTP(S), supporting both stock firmware and AsusWRT-Merlin variants.
Yes, if you own an ASUS router and need programmatic access to it from Python. Low install friction, active maintenance, permissive license, and no known vulnerabilities make it a safe choice. The async design fits well into modern Python applications. Verify that your specific router model and firmware version are supported before relying on it for production automation.
Install
asusrouter on PyPI
pip
pip install asusrouteruv
uv add asusrouterpoetry
poetry add asusrouterInstalling asusrouter
Before you install
Low install friction; pure Python wheel with three common async/HTTP dependencies (aiohttp, urllib3, xmltodict). Actively maintained with recent commits; requires Python 3.11 or later.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most integration and automation scenarios.
Quickstart
pip install asusrouter
import aiohttp
import asyncio
from asusrouter import AsusRouter, AsusData
loop = asyncio.new_event_loop()
session = aiohttp.ClientSession(loop=loop)
router = AsusRouter(hostname="router.my.address", username="admin", password="password", session=session)
loop.run_until_complete(router.async_connect())
data = loop.run_until_complete(router.async_get_data(AsusData.NETWORK))
loop.run_until_complete(router.async_disconnect())
loop.run_until_complete(session.close())
Requires Python 3.11 or later; must provide valid router hostname, username, and password; aiohttp event loop and session management required.
Verify before relying
- Whether all ASUSWRT device models are actually supported or only those explicitly listed in documentation.
- Performance characteristics and timeout behavior under high-frequency polling or large data queries.
- Compatibility with custom firmware versions beyond the tested firmware versions shown in the device tables.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.11.0) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — aiohttp, urllib3, xmltodict |
| Maintenance | actively maintained — 248 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 73,745/month — #14,935 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: asusrouter-1.21.3-py3-none-any.whl
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
aioasuswrtAsync Python wrapper for querying ASUS router…
permissive · top 15,000 on PyPI
aiopnsenseAn async Python client library that wraps…
permissive · top 15,000 on PyPI
pynetgearpyNetgear provides a Python API to communicate…
permissive · top 15,000 on PyPI
fritzconnectionCommunicate with AVM FRITZ!Box routers via…
permissive · top 15,000 on PyPI
axisEstablishes connections to Axis Communications…
permissive · top 15,000 on PyPI
python-otbr-apiProvides a Python client to interact with an…
permissive · top 15,000 on PyPI
sfrbox-apiProvides an async Python client for interacting…
permissive · top 15,000 on PyPI
pydaikinPyDaikin provides a Python library and CLI for…
copyleft · top 15,000 on PyPI
pyvesyncAsynchronous Python library to discover,…
permissive · top 15,000 on PyPI
pyprusalinkAsync Python client for the PrusaLink HTTP API,…
permissive · top 15,000 on PyPI