Code Monkey home page Code Monkey logo

pyspeedtest's Introduction

********** Not Discontinued!********** I came across the original repo and it met my needs. The maintainer claimed there are better testers but I had trouble with using them in Kivy so I will keep this one alive. The rest of the readme will be from the OP (For now).

Back in early 2012 I found the need to test my VPS speed and speedtest.net seemed like a decent service (still is). There was no CLI for it, so I made pyspeedtest. Since then a lot of other great options came up such as https://github.com/sivel/speedtest-cli or https://github.com/zpeters/speedtest which are better maintained (and even got higher visibility).

Now back to your original README content…

pyspeedtest

Build Status

PyPI Version

PyPI Python Versions

Python script to test network bandwidth using Speedtest.net servers

Installation

This package is available from PyPI so you can easily install it with:

sudo pip install pyspeedtest

Or only for your user

$ pip install --user pyspeedtest

Usage

In a terminal:

$ pyspeedtest -h
usage: pyspeedtest [OPTION]...

Test your bandwidth speed using Speedtest.net servers.

optional arguments:
  -d L, --debug L   set http connection debug level (default is 0)
  -m M, --mode M    test mode: 1 - download
                               2 - upload
                               4 - ping
                               1 + 2 + 4 = 7 - all (default)
  -r N, --runs N    use N runs (default is 2)
  -s H, --server H  use specific server
  -v, --verbose     output additional information
  --version         show program's version number and exit
$ pyspeedtest
Using server: speedtest.serv.pt
Ping: 9 ms
Download speed: 148.17 Mbps
Upload speed: 18.56 Mbps

From a python script:

>>> import pyspeedtest
>>> st = pyspeedtest.SpeedTest()
>>> st.ping()
9.306252002716064
>>> st.download()
42762976.92544772
>>> st.upload()
19425388.307319913

pyspeedtest's People

Contributors

brbsix avatar fopina avatar sirgrigio avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.