• Login
  • Register
Saturday, July 18, 2026
Generate QR Codes
Free PDF Tools
Free Web Audit 360
TechSansar.com
  • Services
  • Top Posts
  • Nepali IT
  • Startups
  • Tech News
  • Categories
    • News
      • Tech
No Result
View All Result
TechSansar.com
  • Services
  • Top Posts
  • Nepali IT
  • Startups
  • Tech News
  • Categories
    • News
      • Tech
No Result
View All Result
TechSansar.com

Test Internet Speed using Python

TechSansar Editor by TechSansar Editor
October 25, 2020
in How To, Tips & Tricks, Tutorials
A A
1
speed test with python

Python should be installed on the machine prior to the execution of the following codes. Download Python.

Python is a high-level, object-oriented programming language. Guido van Rossum was the creator of Python and he first released it in 1991. Python programming language is a good starter language for beginners to start with and can pursue their careers with Python in different sectors. Python has been a popular and go-to language all over the globe and it has started gaining some momentum in the context of Nepal as compared to other languages.

For the purpose of testing the speed of the internet, we will be using a Python module called speedtest-cli.

Installation

Related Post

6 things you can do to speed up your Windows 11 computer

Speed up your Windows 11 computer by reducing startup time, here is how to

How to reduce background noise during Microsoft Teams or Zoom meetings

6 simple yet effect ways to speed up your Windows 10 computer

pip / easy_install

pip install speedtest-cli

or

easy_install speedtest-cli
Github
pip install git+https://github.com/sivel/speedtest-cli.git

or

git clone https://github.com/sivel/speedtest-cli.git
cd speedtest-cli
python setup.py install

once the installation is completed successfully, do ensure with the version check using the following command.

speedtest-cli --version

You should see something like this in your terminal.

speedtest-cli-version check

With the installation of the speedtest-cli module now we can simply test the speed of the internet by the following command.

speedtest-cli

You should see something like this in your terminal.

speedtest cli

As the above screenshot shows the test is done in MegaBit. We can easily test in bytes by using the following command.

speedtest-cli --bytes

speed test bytes 1

We even can get a sharable link of the internet speed test using the following command.

speedtest-cli --share

speed test sharable 1

We should now paste the URL to the browser and a screenshot of the result will arise like below.

speed test browser

We can even preview only the basic aspects of the test i.e. PING, DOWNLOAD, and UPLOAD using the following command.

speedtest-cli --simple

speed test simple

Besides all the test stuff, we can check all the available offerings from the command below.

speedtest-cli -h

speed test available offerings

In addition to that, we can look for help when need using the following command.

speedtest-cli --help

speed test help

Tags: InternetPythonSpeed Test
Share214Tweet133Send
Previous Post

Head to head comparison: OnePlus 8T vs Samsung Galaxy S20 FE

Next Post

Create Watermark of image using PHP

Related Posts

CPU utilization in Windows 11
Computing

6 things you can do to speed up your Windows 11 computer

Got a that resourceful computer with a decent amount of memory, SSD storage and latest generation of that Intel chipsets;...

by tsGeek
July 24, 2024
Speedup your Windows 11 Computer
How To

Speed up your Windows 11 computer by reducing startup time, here is how to

Startup times vary and depend on how many apps you have installed, the speed of your processor, and the kind...

by tsGeek
July 24, 2024

Comments 1

  1. Rajesh Thapa says:
    6 years ago

    Great tutorial, perfect for people like me who is always in command line.

Recent News

Gen Z Protest Kathmandu 2025

July 4, 2026
The Launch That Moved Syuchatar: YetiCloud.AI and the Night Nepal’s Compute Policy Went Public

The Launch That Moved Syuchatar: YetiCloud.AI and the Night Nepal’s Compute Policy Went Public

July 4, 2026
Illustrating Sovereign AI Compute in Nepal Syuchatar with circuitary

Syuchatar in Regional Context: A Policy Commentary on Sovereign AI Compute

May 31, 2026
Technical explainer on Nepal's announced Sovereign AI Compute Center at Syuchatar. What Budget 2083/84 specified, what it didn't, and the four design questions that decide its outcome.

Nepal’s Sovereign AI Compute Center at Syuchatar: A Technical Explainer

May 30, 2026
Hostinger
  • News
  • Tech
  • Event
Generate free QR Codes with QRSansar

TechSansar.com, ICT For Media Pvt Ltd, Regd #249079/077/078, VAT #609868175.
By continuing to use this site, you agree to our cookies and privacy policies.
Here is our Do Not Track (DNT) Guide. Hosted on a VPS and uses this free PDF tool. You can also subscribe to our newsletter.
Creating tech contents for the b̶o̶t̶s̶ humans since 2009 • Team TechSansar • ICT4M with ❤ from Nepal

Welcome Back!

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Fill the forms below to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • Home page
  • Shop peripherals
  • Buy software
  • Featured articles
  • My account

TechSansar.com, ICT For Media Pvt Ltd, Regd #249079/077/078, VAT #609868175.
By continuing to use this site, you agree to our cookies and privacy policies.
Here is our Do Not Track (DNT) Guide. Hosted on a VPS and uses this free PDF tool. You can also subscribe to our newsletter.
Creating tech contents for the b̶o̶t̶s̶ humans since 2009 • Team TechSansar • ICT4M with ❤ from Nepal