Command-line internet speed test using Cloudflare
Project description
cf_speedtest
A simple internet speed test tool/library, which uses https://speed.cloudflare.com (provided by Cloudflare)
Installation:
$ pip install -U cf-speedtest
Basic CLI usage:
-
Running a normal speedtest:
cf_speedtest
-
Without verifying SSL:
cf_speedtest --verifyssl=false
-
Specify a percentile of measurements to be considered your speed (default 90):
cf_speedtest --percentile 80
-
Output measurements to a CSV file:
cf_speedtest --output speed_data.csv
-
Specify a SOCKS/HTTP proxy to use (with or without authentication):
cf_speedtest --proxy socks5://127.0.0.1:1080cf_speedtest --proxy socks5://admin:admin@127.0.0.1:1080cf_speedtest --proxy http://127.0.0.1:8181cf_speedtest --proxy http://admin:admin@127.0.0.1:8181cf_speedtest --proxy 127.0.0.1:8181
Programmatic usage:
- TODO
TODO:
- Programmatic usage
- Multi-threaded speedtest
- Continuous mode
Disclaimers:
- This library is purely single-threaded
- This library works entirely over HTTP(S), which has some overhead
- Latency is measured with HTTP requests
- Cloudflare has a global network, but you may be connected to a distant PoP due to ISP peering and other factors
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cf_speedtest-0.2.0.tar.gz
(16.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cf_speedtest-0.2.0.tar.gz.
File metadata
- Download URL: cf_speedtest-0.2.0.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38005d2937923ea4bbeaac875acb8162d49090eefc33d2bb4930624800f56789
|
|
| MD5 |
dc65e1e8d4f15201aba0efe566eab6e6
|
|
| BLAKE2b-256 |
152e31ae9f480477ec481d1593c17728fc1e21099ff860731004f231d843c1f7
|
File details
Details for the file cf_speedtest-0.2.0-py3-none-any.whl.
File metadata
- Download URL: cf_speedtest-0.2.0-py3-none-any.whl
- Upload date:
- Size: 16.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a8c95420fb7331269a4d051d3ebb9526b54e7f52f2cf41fa774eb8ddcdb3b3e
|
|
| MD5 |
778a0a5185507e41c15946a9eed50f26
|
|
| BLAKE2b-256 |
04de57b6a1ef1490927bcaf47ea45953dc7972295ac4c91ce55ad03b32a1a810
|