Skip to content Skip to sidebar Skip to footer

Python Speedtest.net, Or Equivalent

Is there a library for python that implements the SpeedTest.net test, or an equivalent test of internet connection speed?

Solution 1:

There is a project on GitHub called SpeedCheck. It will go and fetch a given URL (defaults to SoftLayer) and reports the average transfer rate in bytes per second.

When I run it:

python SpeedCheck.py
http://speedtest.wdc01.softlayer.com/downloads/test500.zip60010240.5NoneTrueFalse6.16535544395e-05 , 10240.179219538346 , 5190290.131760507822 , 10380580.218291172758 , 20761160.623112553731 , 41522320.0 , 41522323323051.00679

This means that my average speed was 3323051 B/s, or 3.169 MB/s. Checking my network transfer rate while the test was running, it looks correct.

This is for download speeds only. You could probably do something similar for uploading, but you would need to find a well-distributed server that allows posting test uploads to measure the speed. I'm not aware of any.

Post a Comment for "Python Speedtest.net, Or Equivalent"