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.
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e98c7e2bf0f58199c1b20784ac8f247b10d981ea9a98d3f860c1aa71fd1452f
|
|
| MD5 |
f1dfa6ba3f349f08dac60b15408448a4
|
|
| BLAKE2b-256 |
794da612cb02f33916eba4e1e4eb4868332c169a055e24f235454a2582c64388
|
Provenance
The following attestation bundles were made for aioasuswrt-2.2.0.tar.gz:
Publisher:
python-publish.yml on kennedyshead/aioasuswrt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aioasuswrt-2.2.0.tar.gz -
Subject digest:
6e98c7e2bf0f58199c1b20784ac8f247b10d981ea9a98d3f860c1aa71fd1452f - Sigstore transparency entry: 926954927
- Sigstore integration time:
-
Permalink:
kennedyshead/aioasuswrt@f0733a2f371e50a7fb63ca82b428526bcbef6797 -
Branch / Tag:
refs/tags/v2.2.0 - Owner: https://github.com/kennedyshead
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@f0733a2f371e50a7fb63ca82b428526bcbef6797 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
335d0502106e30c6f858365cfacf73d50b7ff6c9983a57f63bad110dca0bcf8d
|
|
| MD5 |
de8e58ae7d050685bddc7549d8bfa785
|
|
| BLAKE2b-256 |
3a8c67c205a328a8da318ce3d51148dff221b722a58cdc09a8339b69b6a29cd6
|
Provenance
The following attestation bundles were made for aioasuswrt-2.2.0-py3-none-any.whl:
Publisher:
python-publish.yml on kennedyshead/aioasuswrt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aioasuswrt-2.2.0-py3-none-any.whl -
Subject digest:
335d0502106e30c6f858365cfacf73d50b7ff6c9983a57f63bad110dca0bcf8d - Sigstore transparency entry: 926954932
- Sigstore integration time:
-
Permalink:
kennedyshead/aioasuswrt@f0733a2f371e50a7fb63ca82b428526bcbef6797 -
Branch / Tag:
refs/tags/v2.2.0 - Owner: https://github.com/kennedyshead
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@f0733a2f371e50a7fb63ca82b428526bcbef6797 -
Trigger Event:
release
-
Statement type: