speedtest-cli


Namespeedtest-cli JSON
Version 2.1.3 PyPI version JSON
download
home_pagehttps://github.com/sivel/speedtest-cli
SummaryCommand line interface for testing internet bandwidth using speedtest.net
upload_time2021-04-08 13:51:33
maintainer
docs_urlNone
authorMatt Martz
requires_python
licenseApache License, Version 2.0
keywords speedtest speedtest.net
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            speedtest-cli
=============

Command line interface for testing internet bandwidth using
speedtest.net

.. image:: https://img.shields.io/pypi/v/speedtest-cli.svg
        :target: https://pypi.python.org/pypi/speedtest-cli/
        :alt: Latest Version
.. image:: https://img.shields.io/travis/sivel/speedtest-cli.svg
        :target: https://pypi.python.org/pypi/speedtest-cli/
        :alt: Travis
.. image:: https://img.shields.io/pypi/l/speedtest-cli.svg
        :target: https://pypi.python.org/pypi/speedtest-cli/
        :alt: License

Versions
--------

speedtest-cli works with Python 2.4-3.7

.. image:: https://img.shields.io/pypi/pyversions/speedtest-cli.svg
        :target: https://pypi.python.org/pypi/speedtest-cli/
        :alt: 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 <https://github.com/sivel/speedtest-cli/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.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/sivel/speedtest-cli",
    "name": "speedtest-cli",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "speedtest speedtest.net",
    "author": "Matt Martz",
    "author_email": "matt@sivel.net",
    "download_url": "https://files.pythonhosted.org/packages/85/d2/32c8a30768b788d319f94cde3a77e0ccc1812dca464ad8062d3c4d703e06/speedtest-cli-2.1.3.tar.gz",
    "platform": "",
    "description": "speedtest-cli\n=============\n\nCommand line interface for testing internet bandwidth using\nspeedtest.net\n\n.. image:: https://img.shields.io/pypi/v/speedtest-cli.svg\n        :target: https://pypi.python.org/pypi/speedtest-cli/\n        :alt: Latest Version\n.. image:: https://img.shields.io/travis/sivel/speedtest-cli.svg\n        :target: https://pypi.python.org/pypi/speedtest-cli/\n        :alt: Travis\n.. image:: https://img.shields.io/pypi/l/speedtest-cli.svg\n        :target: https://pypi.python.org/pypi/speedtest-cli/\n        :alt: License\n\nVersions\n--------\n\nspeedtest-cli works with Python 2.4-3.7\n\n.. image:: https://img.shields.io/pypi/pyversions/speedtest-cli.svg\n        :target: https://pypi.python.org/pypi/speedtest-cli/\n        :alt: Versions\n\nInstallation\n------------\n\npip / easy\\_install\n~~~~~~~~~~~~~~~~~~~\n\n::\n\n    pip install speedtest-cli\n\nor\n\n::\n\n    easy_install speedtest-cli\n\nGithub\n~~~~~~\n\n::\n\n    pip install git+https://github.com/sivel/speedtest-cli.git\n\nor\n\n::\n\n    git clone https://github.com/sivel/speedtest-cli.git\n    cd speedtest-cli\n    python setup.py install\n\nJust download (Like the way it used to be)\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n    wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py\n    chmod +x speedtest-cli\n\nor\n\n::\n\n    curl -Lo speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py\n    chmod +x speedtest-cli\n\nUsage\n-----\n\n::\n\n    $ speedtest-cli -h\n    usage: speedtest-cli [-h] [--no-download] [--no-upload] [--single] [--bytes]\n                         [--share] [--simple] [--csv]\n                         [--csv-delimiter CSV_DELIMITER] [--csv-header] [--json]\n                         [--list] [--server SERVER] [--exclude EXCLUDE]\n                         [--mini MINI] [--source SOURCE] [--timeout TIMEOUT]\n                         [--secure] [--no-pre-allocate] [--version]\n\n    Command line interface for testing internet bandwidth using speedtest.net.\n    --------------------------------------------------------------------------\n    https://github.com/sivel/speedtest-cli\n\n    optional arguments:\n      -h, --help            show this help message and exit\n      --no-download         Do not perform download test\n      --no-upload           Do not perform upload test\n      --single              Only use a single connection instead of multiple. This\n                            simulates a typical file transfer.\n      --bytes               Display values in bytes instead of bits. Does not\n                            affect the image generated by --share, nor output from\n                            --json or --csv\n      --share               Generate and provide a URL to the speedtest.net share\n                            results image, not displayed with --csv\n      --simple              Suppress verbose output, only show basic information\n      --csv                 Suppress verbose output, only show basic information\n                            in CSV format. Speeds listed in bit/s and not affected\n                            by --bytes\n      --csv-delimiter CSV_DELIMITER\n                            Single character delimiter to use in CSV output.\n                            Default \",\"\n      --csv-header          Print CSV headers\n      --json                Suppress verbose output, only show basic information\n                            in JSON format. Speeds listed in bit/s and not\n                            affected by --bytes\n      --list                Display a list of speedtest.net servers sorted by\n                            distance\n      --server SERVER       Specify a server ID to test against. Can be supplied\n                            multiple times\n      --exclude EXCLUDE     Exclude a server from selection. Can be supplied\n                            multiple times\n      --mini MINI           URL of the Speedtest Mini server\n      --source SOURCE       Source IP address to bind to\n      --timeout TIMEOUT     HTTP timeout in seconds. Default 10\n      --secure              Use HTTPS instead of HTTP when communicating with\n                            speedtest.net operated servers\n      --no-pre-allocate     Do not pre allocate upload data. Pre allocation is\n                            enabled by default to improve upload performance. To\n                            support systems with insufficient memory, use this\n                            option to avoid a MemoryError\n      --version             Show the version number and exit\n\n\nPython API\n----------\n\nSee the `wiki <https://github.com/sivel/speedtest-cli/wiki>`_.\n\n\nInconsistency\n-------------\n\nIt is not a goal of this application to be a reliable latency reporting tool.\n\nLatency reported by this tool should not be relied on as a value indicative of ICMP\nstyle latency. It is a relative value used for determining the lowest latency server\nfor performing the actual speed test against.\n\nThere is the potential for this tool to report results inconsistent with Speedtest.net.\nThere are several concepts to be aware of that factor into the potential inconsistency:\n\n1. Speedtest.net has migrated to using pure socket tests instead of HTTP based tests\n2. This application is written in Python\n3. Different versions of Python will execute certain parts of the code faster than others\n4. CPU and Memory capacity and speed will play a large part in inconsistency between\n   Speedtest.net and even other machines on the same network\n\nIssues relating to inconsistencies will be closed as wontfix and without\nadditional reason or context.\n\n\n",
    "bugtrack_url": null,
    "license": "Apache License, Version 2.0",
    "summary": "Command line interface for testing internet bandwidth using speedtest.net",
    "version": "2.1.3",
    "project_urls": {
        "Homepage": "https://github.com/sivel/speedtest-cli"
    },
    "split_keywords": [
        "speedtest",
        "speedtest.net"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9f3965259b7054368b370d3183762484fa2c779ddc41633894d895f9d1720f45",
                "md5": "324f3f9dd7d5425c523f8496d3116607",
                "sha256": "75ff32c91af9ac1ce2b905476d6e92bd9eb2c0783f9e7d1939d74605c7d0b9ea"
            },
            "downloads": -1,
            "filename": "speedtest_cli-2.1.3-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "324f3f9dd7d5425c523f8496d3116607",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 23973,
            "upload_time": "2021-04-08T13:51:32",
            "upload_time_iso_8601": "2021-04-08T13:51:32.028222Z",
            "url": "https://files.pythonhosted.org/packages/9f/39/65259b7054368b370d3183762484fa2c779ddc41633894d895f9d1720f45/speedtest_cli-2.1.3-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "85d232c8a30768b788d319f94cde3a77e0ccc1812dca464ad8062d3c4d703e06",
                "md5": "4bd1cf455e210ce47be1a3290988160b",
                "sha256": "5e2773233cedb5fa3d8120eb7f97bcc4974b5221b254d33ff16e2f1d413d90f0"
            },
            "downloads": -1,
            "filename": "speedtest-cli-2.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "4bd1cf455e210ce47be1a3290988160b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 24721,
            "upload_time": "2021-04-08T13:51:33",
            "upload_time_iso_8601": "2021-04-08T13:51:33.627769Z",
            "url": "https://files.pythonhosted.org/packages/85/d2/32c8a30768b788d319f94cde3a77e0ccc1812dca464ad8062d3c4d703e06/speedtest-cli-2.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-04-08 13:51:33",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sivel",
    "github_project": "speedtest-cli",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "tox": true,
    "lcname": "speedtest-cli"
}
        
Elapsed time: 0.14411s