{"id":13424525,"url":"https://github.com/sivel/speedtest-cli","last_synced_at":"2025-05-12T10:49:18.252Z","repository":{"id":4610962,"uuid":"5754504","full_name":"sivel/speedtest-cli","owner":"sivel","description":"Command line interface for testing internet bandwidth using speedtest.net","archived":false,"fork":false,"pushed_at":"2024-07-20T16:58:27.000Z","size":312,"stargazers_count":13774,"open_issues_count":71,"forks_count":1923,"subscribers_count":304,"default_branch":"master","last_synced_at":"2025-05-11T10:08:35.975Z","etag":null,"topics":["python","python-library","python-script","speedtest"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sivel.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-09-10T19:17:53.000Z","updated_at":"2025-05-10T23:20:54.000Z","dependencies_parsed_at":"2023-07-05T18:31:21.373Z","dependency_job_id":"cc22404d-641a-465f-a524-985244531316","html_url":"https://github.com/sivel/speedtest-cli","commit_stats":{"total_commits":288,"total_committers":10,"mean_commits":28.8,"dds":0.04861111111111116,"last_synced_commit":"22210ca35228f0bbcef75a7c14587c4ecb875ab4"},"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sivel%2Fspeedtest-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sivel%2Fspeedtest-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sivel%2Fspeedtest-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sivel%2Fspeedtest-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sivel","download_url":"https://codeload.github.com/sivel/speedtest-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253547229,"owners_count":21925546,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python","python-library","python-script","speedtest"],"created_at":"2024-07-31T00:00:55.602Z","updated_at":"2025-05-11T10:08:41.389Z","avatar_url":"https://github.com/sivel.png","language":"Python","readme":"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 \u003chttps://github.com/sivel/speedtest-cli/wiki\u003e`_.\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","funding_links":[],"categories":["Utilities","Python","\u003ca id=\"tag-internet\" href=\"#tag-internet\"\u003eInternet\u003c/a\u003e","Networking","python","Command Line Tools","Python (1887)","语言资源库","网络信息服务","tools","Network","Linux","Uncategorized"],"sub_categories":["Internet Speedtest","TOPs","python","网络协议","NetServices","Tools","Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsivel%2Fspeedtest-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsivel%2Fspeedtest-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsivel%2Fspeedtest-cli/lists"}