Updated README and help string added example-server.json
This commit is contained in:
parent
67985db684
commit
5166310277
20
README.rst
20
README.rst
|
@ -75,12 +75,13 @@ Usage
|
||||||
::
|
::
|
||||||
|
|
||||||
$ speedtest-cli -h
|
$ speedtest-cli -h
|
||||||
usage: speedtest-cli [-h] [--no-download] [--no-upload] [--single] [--bytes]
|
usage: speedtest.py [-h] [--no-download] [--no-upload] [--single] [--bytes]
|
||||||
[--share] [--simple] [--csv]
|
[--share] [--simple] [--csv]
|
||||||
[--csv-delimiter CSV_DELIMITER] [--csv-header] [--json]
|
[--csv-delimiter CSV_DELIMITER] [--csv-header] [--json]
|
||||||
[--list] [--server SERVER] [--exclude EXCLUDE]
|
[--load-servers-from-json SERVERS_JSON] [--list]
|
||||||
[--mini MINI] [--source SOURCE] [--timeout TIMEOUT]
|
[--server SERVER] [--exclude EXCLUDE] [--mini MINI]
|
||||||
[--secure] [--no-pre-allocate] [--version]
|
[--source SOURCE] [--timeout TIMEOUT] [--secure]
|
||||||
|
[--no-pre-allocate] [--version]
|
||||||
|
|
||||||
Command line interface for testing internet bandwidth using speedtest.net.
|
Command line interface for testing internet bandwidth using speedtest.net.
|
||||||
--------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
|
@ -108,10 +109,12 @@ Usage
|
||||||
--json Suppress verbose output, only show basic information
|
--json Suppress verbose output, only show basic information
|
||||||
in JSON format. Speeds listed in bit/s and not
|
in JSON format. Speeds listed in bit/s and not
|
||||||
affected by --bytes
|
affected by --bytes
|
||||||
|
--load-servers-from-json SERVERS_JSON
|
||||||
|
Load servers from json file for static testing
|
||||||
--list Display a list of speedtest.net servers sorted by
|
--list Display a list of speedtest.net servers sorted by
|
||||||
distance
|
distance
|
||||||
--server SERVER Specify a server ID to test against. Can be supplied
|
--server SERVER Specify a server ID from --list servers to test
|
||||||
multiple times
|
against. Can be supplied multiple times
|
||||||
--exclude EXCLUDE Exclude a server from selection. Can be supplied
|
--exclude EXCLUDE Exclude a server from selection. Can be supplied
|
||||||
multiple times
|
multiple times
|
||||||
--mini MINI URL of the Speedtest Mini server
|
--mini MINI URL of the Speedtest Mini server
|
||||||
|
@ -126,6 +129,7 @@ Usage
|
||||||
--version Show the version number and exit
|
--version Show the version number and exit
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Python API
|
Python API
|
||||||
----------
|
----------
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
"313.8447559412203": [
|
||||||
|
{
|
||||||
|
"url": "http://speedtest.glasfaser-ostbayern.de:8080/speedtest/upload.php",
|
||||||
|
"lat": "49.0167",
|
||||||
|
"lon": "12.0833",
|
||||||
|
"name": "Regensburg",
|
||||||
|
"country": "Germany",
|
||||||
|
"cc": "DE",
|
||||||
|
"sponsor": "R-KOM GmbH & Co. KG",
|
||||||
|
"id": "4404",
|
||||||
|
"host": "speedtest.glasfaser-ostbayern.de:8080",
|
||||||
|
"d": 313.8447559412203
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -1753,12 +1753,12 @@ def parse_args():
|
||||||
'information in JSON format. Speeds listed in '
|
'information in JSON format. Speeds listed in '
|
||||||
'bit/s and not affected by --bytes')
|
'bit/s and not affected by --bytes')
|
||||||
parser.add_argument('--load-servers-from-json', dest='servers_json', type=PARSER_TYPE_STR,
|
parser.add_argument('--load-servers-from-json', dest='servers_json', type=PARSER_TYPE_STR,
|
||||||
help='Serverlist for static testing in json Format')
|
help='Load servers from json file for static testing')
|
||||||
parser.add_argument('--list', action='store_true',
|
parser.add_argument('--list', action='store_true',
|
||||||
help='Display a list of speedtest.net servers '
|
help='Display a list of speedtest.net servers '
|
||||||
'sorted by distance')
|
'sorted by distance')
|
||||||
parser.add_argument('--server', type=PARSER_TYPE_INT, action='append',
|
parser.add_argument('--server', type=PARSER_TYPE_INT, action='append',
|
||||||
help='Specify a server ID to test against. Can be '
|
help='Specify a server ID from --list servers to test against. Can be '
|
||||||
'supplied multiple times')
|
'supplied multiple times')
|
||||||
parser.add_argument('--exclude', type=PARSER_TYPE_INT, action='append',
|
parser.add_argument('--exclude', type=PARSER_TYPE_INT, action='append',
|
||||||
help='Exclude a server from selection. Can be '
|
help='Exclude a server from selection. Can be '
|
||||||
|
|
Loading…
Reference in New Issue