Tespeed-Python tool for testing network speed
Many computer geeks know that they can use some speed measurement websites to test the network speed, but this cannot give you enough control in the test. Linux users like to enter commands in the terminal to complete the task, at least I do.
Tespeed is a python tool with many features. It can test the network speed on the terminal. According to the documentation, it uses the speedtest.net server, but you can manually specify it.
Initially, the author wrote the tespeed tool in php and proved that the network provided by the ISP is much lower than what it said in its advertisement. But this is not what they always think, so the author transplanted his php script to python, and his tool already has 180 stars in github.
It means alot.
How to test tespeed in linux
Before running this python program on your computer, make sure that the system has satisfied the dependency of this tool. Tespeed depends on the following two packages:
You can use the pip package management system to install lxml. You only need to use the following command.
pip install lxml
Now we need to enter the following command to download and install SocksiPy.
wget http://sourceforge.net/projects/socksipy/files/socksipy/SocksiPy%201.00/SocksiPy.zip/
After the download is complete, decompress socksipy.zip and run the following command to clone the tespeed repository to your local machine.
git clone https://github.com/Janhouse/tespeed.git
Then, put the SocksiPy folder in the cloned tespeed project. Now we want to create an empty file named init. py in SocksiPy like that.
Now we have solved the project dependency problem. We can run the following command.
python tespeed.py
Next, some amazing things will happen. The program will test your download and upload speed and display it in beautiful colors on your terminal.
There are many options in tespeed, such as-ls to list servers,-p to specify proxy servers, and-s to block debugging (STDERR) output. There are many other options we will explore in this tutorial.
If you want to display the result in MB, you can connect the option-mib after python tespeed. py.
python tespeed.py -mib
After you use the-mib option, you can see that the unit of the metering network speed has changed.
One of my favorite options is-w, which converts standard output to CSV format.
python tespeed.py -w
Use the following command to list servers.
python tespeed -ls
After running the preceding command, you will see a list of servers that can be used to test the upload and download speeds. My list is very long, so I will not share it in the tutorial.
Summary
Tespeed is indeed a high-performance python script that helps you test the upload and download speeds on your terminal. It supports many options and you can specify the server you want to use in the list. Continue to use tespeed and write down your experience in the message area.
This article permanently updates the link address: