Skip to main content

Api wrapper for Asuswrt https://www.asus.com/ASUSWRT/

Project description

AioAsusWRT

Moving

I have come to the decision that I do not want to use github for my projects going forward, there is just to much corporate (closed source) AI going on. I will prepare a move and as soon as I am done I will update with links and more information.

Python package Upload Python Package Small wrapper for asuswrt.

Setup

pipenv install --dev
pre-commit install

Run lint/tests

pre-commit run --all-files
pytest .

Credits:

@mvn23 @halkeye @maweki @quarcko @wdullaer

Info

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

Bugs

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

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

import sys

from aioasuswrt.asuswrt import AsusWrt

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


async def print_data():
    dev = {}
    await component.async_get_wl(dev)
    await component.async_get_arp(dev)
    dev.update(await component.async_get_neigh(dev))
    dev.update(await component.async_get_leases(dev))
    dev.update(await component.async_filter_dev_list(dev))
    await component.async_get_connected_devices(dev)
    __import__("pprint").pprint(dev)

    i = 0
    while True:
        print(await component.async_current_transfer_human_readable())
        await asyncio.sleep(10)
        i += 1
        if i > 6:
            break



loop = asyncio.get_event_loop()

loop.run_until_complete(print_data())
loop.close()

Documentation

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

aioasuswrt-2.2.0.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aioasuswrt-2.2.0-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file aioasuswrt-2.2.0.tar.gz.

File metadata

  • Download URL: aioasuswrt-2.2.0.tar.gz
  • Upload date:
  • Size: 19.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aioasuswrt-2.2.0.tar.gz
Algorithm Hash digest
SHA256 6e98c7e2bf0f58199c1b20784ac8f247b10d981ea9a98d3f860c1aa71fd1452f
MD5 f1dfa6ba3f349f08dac60b15408448a4
BLAKE2b-256 794da612cb02f33916eba4e1e4eb4868332c169a055e24f235454a2582c64388

See more details on using hashes here.

Provenance

The following attestation bundles were made for aioasuswrt-2.2.0.tar.gz:

Publisher: python-publish.yml on kennedyshead/aioasuswrt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aioasuswrt-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: aioasuswrt-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aioasuswrt-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 335d0502106e30c6f858365cfacf73d50b7ff6c9983a57f63bad110dca0bcf8d
MD5 de8e58ae7d050685bddc7549d8bfa785
BLAKE2b-256 3a8c67c205a328a8da318ce3d51148dff221b722a58cdc09a8339b69b6a29cd6

See more details on using hashes here.

Provenance

The following attestation bundles were made for aioasuswrt-2.2.0-py3-none-any.whl:

Publisher: python-publish.yml on kennedyshead/aioasuswrt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page