Skip to main content

Api wrapper for Asuswrt

Project description

Small wrapper for asuswrt. Python package

How to run tests

python test


@mvn23 @halkeye @maweki @quarcko @wdullaer


There are many different versions of asuswrt and sometimes they just dont work in current implementation. If you have a problem with your specific router open an issue, but please add as much info as you can and atleast:

  • Version of router
  • Version of Asuswrt

Known issues


You can always create an issue in this tracker. To test and give us the information needed you could run:

#!/usr/bin/env python
import asyncio
import logging

import sys

from aioasuswrt.asuswrt import AsusWrt

component = AsusWrt('', 22, username='****', password='****')
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)
logger = logging.getLogger(__name__)

async def print_data():
    logger.debug(await component.connection.async_run_command('for dev in `nvram get wl_ifnames`; do wl -i $dev assoclist; done'))
    dev = await component.async_get_wl()
    logger.debug(await component.connection.async_run_command('arp -n'))
    dev.update(await component.async_get_arp())
    logger.debug(await component.connection.async_run_command('ip neigh'))
    dev.update(await component.async_get_neigh(dev))
    logger.debug(await component.connection.async_run_command('cat /var/lib/misc/dnsmasq.leases'))
    dev.update(await component.async_get_leases(dev))

loop = asyncio.get_event_loop()


Coffeefund: 1Huz6vNN6drX3Fq1sU98wPqNSdMPvkMBJG

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for aioasuswrt, version 1.4.0
Filename, size File type Python version Upload date Hashes
Filename, size aioasuswrt-1.4.0.tar.gz (12.1 kB) File type Source Python version None Upload date Hashes View
Filename, size aioasuswrt-1.4.0-py3-none-any.whl (12.1 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page