Official cross-platform collection
speedtest
Measure current internet download speed and latency.
Install#
Install just this package:
lesysbot tools install lesysbot/lesysbot-packages-official/tools/speedtestOr take the whole Official packages collection at once:
lesysbot install lesysbot/lesysbot-packages-officialTools#
This package exposes 1 tool.
speedtest(size_mb=10.0)#
Download a test payload from Cloudflare and report throughput and latency.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
size_mb | float | 10.0 | Size of the test download in megabytes. Larger samples are more accurate on fast links; smaller ones finish sooner on slow ones. |
Notes#
- Marked tier: extra — it runs everywhere but deliberately moves tens of megabytes per call, so a bare collection install skips it; --only speedtest or --all installs it.
- Uses Cloudflare's public speed-test endpoints over the standard library: no binary, no pip dependency, just outbound HTTPS.
Source#
Every package is a folder holding a README.md and a tool.py. Read this one on GitHub: lesysbot/lesysbot-packages-official/tools/speedtest.
To write your own, see Writing tools.