skillfed

asusrouter

API wrapper for communication with ASUSWRT-powered routers using HTTP protocol

asusrouter v1.21.3 73.7K downloads/30d#14,935 on PyPI124
Permissive license Apache-2.0 Active released

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 asusrouter

uv

uv add asusrouter

poetry

poetry add asusrouter

Installing 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

Development Status :: 3 - AlphaIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Software Development :: Libraries

Tags

asus router api wrapperasuswrt http clientrouter network managementasync asus router controlasuswrt device communicationhome automation router integrationasus wifi router api
home-automationasync-httpnetwork-management

More Libraries packages