Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
speedtest_cli.egg-info/ | H | 03-May-2022 | - | 184 | 143 | |
LICENSE | H A D | 05-Feb-2018 | 11.1 KiB | 203 | 169 | |
MANIFEST.in | H A D | 05-Feb-2018 | 35 | 3 | 2 | |
PKG-INFO | H A D | 08-Apr-2021 | 7.9 KiB | 184 | 143 | |
README.rst | H A D | 11-Mar-2019 | 5.5 KiB | 155 | 115 | |
setup.cfg | H A D | 08-Apr-2021 | 61 | 8 | 5 | |
setup.py | H A D | 12-Mar-2019 | 3.2 KiB | 97 | 62 | |
speedtest.py | H A D | 08-Apr-2021 | 63.6 KiB | 2,005 | 1,608 |
README.rst
1speedtest-cli 2============= 3 4Command line interface for testing internet bandwidth using 5speedtest.net 6 7.. image:: https://img.shields.io/pypi/v/speedtest-cli.svg 8 :target: https://pypi.python.org/pypi/speedtest-cli/ 9 :alt: Latest Version 10.. image:: https://img.shields.io/travis/sivel/speedtest-cli.svg 11 :target: https://pypi.python.org/pypi/speedtest-cli/ 12 :alt: Travis 13.. image:: https://img.shields.io/pypi/l/speedtest-cli.svg 14 :target: https://pypi.python.org/pypi/speedtest-cli/ 15 :alt: License 16 17Versions 18-------- 19 20speedtest-cli works with Python 2.4-3.7 21 22.. image:: https://img.shields.io/pypi/pyversions/speedtest-cli.svg 23 :target: https://pypi.python.org/pypi/speedtest-cli/ 24 :alt: Versions 25 26Installation 27------------ 28 29pip / easy\_install 30~~~~~~~~~~~~~~~~~~~ 31 32:: 33 34 pip install speedtest-cli 35 36or 37 38:: 39 40 easy_install speedtest-cli 41 42Github 43~~~~~~ 44 45:: 46 47 pip install git+https://github.com/sivel/speedtest-cli.git 48 49or 50 51:: 52 53 git clone https://github.com/sivel/speedtest-cli.git 54 cd speedtest-cli 55 python setup.py install 56 57Just download (Like the way it used to be) 58~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 59 60:: 61 62 wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py 63 chmod +x speedtest-cli 64 65or 66 67:: 68 69 curl -Lo speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py 70 chmod +x speedtest-cli 71 72Usage 73----- 74 75:: 76 77 $ speedtest-cli -h 78 usage: speedtest-cli [-h] [--no-download] [--no-upload] [--single] [--bytes] 79 [--share] [--simple] [--csv] 80 [--csv-delimiter CSV_DELIMITER] [--csv-header] [--json] 81 [--list] [--server SERVER] [--exclude EXCLUDE] 82 [--mini MINI] [--source SOURCE] [--timeout TIMEOUT] 83 [--secure] [--no-pre-allocate] [--version] 84 85 Command line interface for testing internet bandwidth using speedtest.net. 86 -------------------------------------------------------------------------- 87 https://github.com/sivel/speedtest-cli 88 89 optional arguments: 90 -h, --help show this help message and exit 91 --no-download Do not perform download test 92 --no-upload Do not perform upload test 93 --single Only use a single connection instead of multiple. This 94 simulates a typical file transfer. 95 --bytes Display values in bytes instead of bits. Does not 96 affect the image generated by --share, nor output from 97 --json or --csv 98 --share Generate and provide a URL to the speedtest.net share 99 results image, not displayed with --csv 100 --simple Suppress verbose output, only show basic information 101 --csv Suppress verbose output, only show basic information 102 in CSV format. Speeds listed in bit/s and not affected 103 by --bytes 104 --csv-delimiter CSV_DELIMITER 105 Single character delimiter to use in CSV output. 106 Default "," 107 --csv-header Print CSV headers 108 --json Suppress verbose output, only show basic information 109 in JSON format. Speeds listed in bit/s and not 110 affected by --bytes 111 --list Display a list of speedtest.net servers sorted by 112 distance 113 --server SERVER Specify a server ID to test against. Can be supplied 114 multiple times 115 --exclude EXCLUDE Exclude a server from selection. Can be supplied 116 multiple times 117 --mini MINI URL of the Speedtest Mini server 118 --source SOURCE Source IP address to bind to 119 --timeout TIMEOUT HTTP timeout in seconds. Default 10 120 --secure Use HTTPS instead of HTTP when communicating with 121 speedtest.net operated servers 122 --no-pre-allocate Do not pre allocate upload data. Pre allocation is 123 enabled by default to improve upload performance. To 124 support systems with insufficient memory, use this 125 option to avoid a MemoryError 126 --version Show the version number and exit 127 128 129Python API 130---------- 131 132See the `wiki <https://github.com/sivel/speedtest-cli/wiki>`_. 133 134 135Inconsistency 136------------- 137 138It is not a goal of this application to be a reliable latency reporting tool. 139 140Latency reported by this tool should not be relied on as a value indicative of ICMP 141style latency. It is a relative value used for determining the lowest latency server 142for performing the actual speed test against. 143 144There is the potential for this tool to report results inconsistent with Speedtest.net. 145There are several concepts to be aware of that factor into the potential inconsistency: 146 1471. Speedtest.net has migrated to using pure socket tests instead of HTTP based tests 1482. This application is written in Python 1493. Different versions of Python will execute certain parts of the code faster than others 1504. CPU and Memory capacity and speed will play a large part in inconsistency between 151 Speedtest.net and even other machines on the same network 152 153Issues relating to inconsistencies will be closed as wontfix and without 154additional reason or context. 155