Back in early 2012 I found the need to test my VPS speed and speedtest.net seemed like a decent service (still is). There was no CLI for it, so I made pyspeedtest. Since then a lot of other great options came up such as https://github.com/sivel/speedtest-cli or https://github.com/zpeters/speedtest which are better maintained (and even got higher visibility).
Now back to your original README content…
Python script to test network bandwidth using Speedtest.net servers
This package is available from PyPI so you can easily install it with:
Or only for your user
In a terminal:
$ pyspeedtest -h
usage: pyspeedtest [OPTION]...
Test your bandwidth speed using Speedtest.net servers.
optional arguments:
-d L, --debug L set http connection debug level (default is 0)
-m M, --mode M test mode: 1 - download
2 - upload
4 - ping
1 + 2 + 4 = 7 - all (default)
-r N, --runs N use N runs (default is 2)
-s H, --server H use specific server
-v, --verbose output additional information
--version show program's version number and exit
From a python script: