• Stars
    star
    12,974
  • Rank 2,357 (Top 0.05 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created almost 12 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Command line interface for testing internet bandwidth using speedtest.net

speedtest-cli

Command line interface for testing internet bandwidth using speedtest.net

Latest Version Travis License

Versions

speedtest-cli works with Python 2.4-3.7

Versions

Installation

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

Just download (Like the way it used to be)

wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
chmod +x speedtest-cli

or

curl -Lo speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
chmod +x speedtest-cli

Usage

$ speedtest-cli -h
usage: speedtest-cli [-h] [--no-download] [--no-upload] [--single] [--bytes]
                     [--share] [--simple] [--csv]
                     [--csv-delimiter CSV_DELIMITER] [--csv-header] [--json]
                     [--list] [--server SERVER] [--exclude EXCLUDE]
                     [--mini MINI] [--source SOURCE] [--timeout TIMEOUT]
                     [--secure] [--no-pre-allocate] [--version]

Command line interface for testing internet bandwidth using speedtest.net.
--------------------------------------------------------------------------
https://github.com/sivel/speedtest-cli

optional arguments:
  -h, --help            show this help message and exit
  --no-download         Do not perform download test
  --no-upload           Do not perform upload test
  --single              Only use a single connection instead of multiple. This
                        simulates a typical file transfer.
  --bytes               Display values in bytes instead of bits. Does not
                        affect the image generated by --share, nor output from
                        --json or --csv
  --share               Generate and provide a URL to the speedtest.net share
                        results image, not displayed with --csv
  --simple              Suppress verbose output, only show basic information
  --csv                 Suppress verbose output, only show basic information
                        in CSV format. Speeds listed in bit/s and not affected
                        by --bytes
  --csv-delimiter CSV_DELIMITER
                        Single character delimiter to use in CSV output.
                        Default ","
  --csv-header          Print CSV headers
  --json                Suppress verbose output, only show basic information
                        in JSON format. Speeds listed in bit/s and not
                        affected by --bytes
  --list                Display a list of speedtest.net servers sorted by
                        distance
  --server SERVER       Specify a server ID to test against. Can be supplied
                        multiple times
  --exclude EXCLUDE     Exclude a server from selection. Can be supplied
                        multiple times
  --mini MINI           URL of the Speedtest Mini server
  --source SOURCE       Source IP address to bind to
  --timeout TIMEOUT     HTTP timeout in seconds. Default 10
  --secure              Use HTTPS instead of HTTP when communicating with
                        speedtest.net operated servers
  --no-pre-allocate     Do not pre allocate upload data. Pre allocation is
                        enabled by default to improve upload performance. To
                        support systems with insufficient memory, use this
                        option to avoid a MemoryError
  --version             Show the version number and exit

Python API

See the wiki.

Inconsistency

It is not a goal of this application to be a reliable latency reporting tool.

Latency reported by this tool should not be relied on as a value indicative of ICMP style latency. It is a relative value used for determining the lowest latency server for performing the actual speed test against.

There is the potential for this tool to report results inconsistent with Speedtest.net. There are several concepts to be aware of that factor into the potential inconsistency:

  1. Speedtest.net has migrated to using pure socket tests instead of HTTP based tests
  2. This application is written in Python
  3. Different versions of Python will execute certain parts of the code faster than others
  4. CPU and Memory capacity and speed will play a large part in inconsistency between Speedtest.net and even other machines on the same network

Issues relating to inconsistencies will be closed as wontfix and without additional reason or context.

More Repositories

1

flask-lambda

Python module to make Flask compatible with AWS Lambda for creating RESTful applications
Python
108
star
2

ansible-template-ui

Web UI for testing ansible templates
Python
100
star
3

bonding

A script used to configure bonding on Linux machines, and to determine which interface groups (peers) are available for bonding.
Python
51
star
4

go-speedtest

An experimental Go command line interface for testing internet bandwidth using speedtest.net
Go
50
star
5

mu

Python module and CLI to package and upload python lambda functions to AWS Lambda
Python
25
star
6

github-notify

Email Notifier for GitHub Issues and Pull Requests
Python
22
star
7

ansible-training-content

Official Ansible Training Content
Python
22
star
8

bistory

Bash history search tool
Python
19
star
9

toiletwater

You might be able to drink it in an emergency, but you might still die
Python
19
star
10

powerline-shell-go

Attempted fork of powerline-shell into Go
Go
17
star
11

syncat

Command line interface similar to cat with syntax highlighting
Python
13
star
12

ansible-testing

Python module to help test or validate Ansible, specifically ansible modules
Python
11
star
13

travaul-toggle

Angular Directive to Provide Toggle Buttons
CSS
9
star
14

amanda

A simple web application, to mimic the V2 API endpoints for Ansible Galaxy Collections, with no database, just a directory with artifacts
Python
9
star
15

travis-encrypt

Go
8
star
16

ansible-playbooks

Ansible Playbooks for my personal stuff
Python
8
star
17

keyster

An SSH authorized key store for use with OpenSSH AuthorizedKeysCommand
Go
8
star
18

requisitor

Simple Python HTTP library utilizing only Python stdlib
Python
7
star
19

gohaste

Go implementation of a concurrent Rackspace CloudFiles Upload/Download/Delete application
Go
5
star
20

overseer

Simple monitoring server written in Go, similar to pingdom but with no UI
Go
4
star
21

ipython-reload

IPython magic command to reload modules on demand
Python
4
star
22

dockersshell

Login shell that spawns a docker instance and initiates an SSH connection with it
Go
4
star
23

ansible-pulp-galaxy-ng

Playbook to create a working pulp/pulp_ansible/galaxy_ng container via ansible
3
star
24

sai

A simple API utility for invoking Ansible playbooks
Python
3
star
25

raxdyndns

Dynamic DNS Updater for Rackspace Cloud DNS
Python
3
star
26

libselinux-python-wheels

POC Ansible playbooks to build wheel files for libselinux-python
Python
3
star
27

pyaxel

Multithreaded Download accelerator with resume support implemented in python
Python
3
star
28

gus

Simple webpage listing all of a persons "assigned" GitHub items. Issues/Pull Requests/Requested Reviews
JavaScript
2
star
29

docker-images

Docker Images
Dockerfile
2
star
30

scripts

Shell
2
star
31

prmove

Github Pull Request Mover, specifically for the Ansible repo consolidation
Python
2
star
32

httptester

HTTP Test container
Shell
2
star
33

go-coreutils

My playground for GNU coreutils written in Go
Go
2
star
34

pypi-cloudfiles

A setuptools wrapper script for uploading packages to Rackspace CloudFiles and building a PyPI compatible index.
Python
2
star
35

happymongo

Python module for making it easy and consistent to connect to MongoDB via PyMongo either in Flask or in a non-flask application
Python
2
star
36

rax-api-challenge

Rackspace API Challenges
Python
1
star
37

ansible-openssh

Ansible role to install and configure openssh
1
star
38

perky

Stripped down version of droopy written in Go
Go
1
star
39

tmhi

Python Library for T-Mobile Home Internet (Work in Progress)
Python
1
star
40

el5-python26-rpm

Patches for EL5 RPMs to support the python rpm and yum modules to work with EPEL installed python2.6
1
star
41

iter_tar

Python library to iterate through a tar file
Python
1
star
42

ansible-tests

Ansible playbooks and such for testing the functionality of Ansible functionality
1
star
43

ovpn2onc

Convert OPVN client files to ONC format
Python
1
star
44

ansible-collection-jinja2

Exposes updated jinja2 filters and tests via an Ansible collection
Python
1
star
45

sivel.net

sivel.net, what else?
CSS
1
star
46

barter

Docker Machine Import/Export
Python
1
star
47

python-apt-wheel

Ansible playbooks to build wheel files for python-apt
Python
1
star
48

spinclass

Demo app to spin up a specified number of OpenStack Compute instances, monitor and time their build status
Go
1
star
49

ansible-memory-profiler

Docker image to aid in memory profiling an ansible playbook using cgroups
Python
1
star