speedtest-cli

pip install speedtest-cli

speedtest-cli
pip install speedtest-cli
Collecting speedtest-cli
  Downloading http://mirrors.aliyun.com/pypi/packages/c4/44/dfebd38c5fb35aae0a7279e2a3ffe33ca65edb449a586b93addc8d409a71/speedtest_cli-2.1.2-py2.py3-none-any.whl                            
Installing collected packages: speedtest-cli
Successfully installed speedtest-cli-2.1.2
You are using pip version 9.0.1, however version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

speedtest-clis
Retrieving speedtest.net configuration...
Testing from Hangzhou Alibaba Advertising Co.,Ltd. (47.98.117.71)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Beijing Unicom (Beijing) [1.67 km]: 31.03 ms
Testing download speed..............................................................................                                                                            
Download: 111.79 Mbit/s
Testing upload speed..............................................................................                                                                      
Upload: 4.83 Mbit/ss