python-asuswrt-speedtest
Programatically run internet speedtests on your AsusWRT-powered routers.
It uses the pyasuswrt package to make http(s) requests to the router.
Confirmed to be working with AsusWRTMerlin. It should work for other AsusWRT-powered routers with the Internet Spedtest function available, but this has not been tested. Use at your own risk.
Usage
Config
Configuration is stored in the config/config.ini file.
[asus_router]
host =
port = 8443
use_https = true
username =
password =
[speedtest]
timeout = 120
poll_frequency = 15
history_limit = 10
Script
The following will run a speedtest on your router. The results will be available on the Internet Speed page
- Clone the repository
- Copy config/config.example.ini to config/config.ini
- Update the config/config.ini file with your router credentials and desired settings
- Run
python3 ./run_speedtest.py
Package
The latest package release is available on PyPI
pip install asuswrtspeedtest
Example of how to use this package in your own project:
import asyncio
import configparser
from asuswrtspeedtest import SpeedtestClient
config = configparser.ConfigParser()
config.read('config/config.ini')
async def run_speedtest():
async with SpeedtestClient(config) as speedtest_client:
await speedtest_client.run()
asyncio.run(run_speedtest())
Metadata
Release files for asuswrtspeedtest 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| asuswrtspeedtest-0.2.1.tar.gz | 23.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| asuswrtspeedtest-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.0 kB
Release files / asuswrtspeedtest-0.2.1.tar.gz
| Download URL | asuswrtspeedtest-0.2.1.tar.gz |
|---|---|
| Size | 23.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f9ae5fbee66afaa0cde79dcf1e4cfd4fb066db5f6b90bd21e0d212be67e7f02
|
|
BLAKE2b-256 checksum How to use checksums |
15fa5ea42724125a5565823ea39e6693152a19b851b7f19e2d5889ba329cc6f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.3
|
Release files / asuswrtspeedtest-0.2.1-py3-none-any.whl
| Download URL | asuswrtspeedtest-0.2.1-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
403e0d5219b153aed1d3b6b53649834edfa6cfbb424549be411ecc9cc46b8139
|
|
BLAKE2b-256 checksum How to use checksums |
40338310563807782899a49087084e93225fda723a3e123b423b1b3b8fcb61df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.3
|
Security for asuswrtspeedtest 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.