web-speedtest
A network speed test with a web UI and CLI client — measure ping, download, and upload speeds.
web-speedtest provides two modes: a server that hosts a beautiful browser-based speed test, and a CLI client for quick terminal-based measurements. Both use the same API, and the entire tool is a single statically-linked binary — zero runtime dependencies.
Features
- Server mode — HTTP server with a web UI for browser-based speed testing
- Client mode — CLI tool for terminal-based speed measurements
- Ping test — measure round-trip latency
- Download test — time-based download throughput measurement (configurable duration)
- Upload test — time-based upload throughput measurement
- Web UI — dark-themed single-page app with animated gauges and live progress
- API endpoints — programmatic access for custom integrations
- Zero dependencies — single statically-linked Go binary
- Coloured output — TTY-aware ANSI colours for CLI results
- Cross-platform — works on macOS, Linux, and Windows
Installation
pip install web-speedtest
Or run directly with uv:
uvx web-speedtest
Quick Start
Start the server
# Start on default port 8080
web-speedtest server
# Start on a custom port
web-speedtest server --port 3000
# Bind to a specific address
web-speedtest server --host 127.0.0.1 --port 8080
# Set a custom test duration (default is 8 seconds per phase)
web-speedtest server --duration 15
Then open http://localhost:8080 in your browser to run a speed test.
Run a CLI speed test
# Test against a local server
web-speedtest client localhost:8080
# Test against a remote server
web-speedtest client http://speedtest.example.com:8080
API Endpoints
The server provides these endpoints for programmatic access:
| Endpoint | Method | Description |
|---|---|---|
/api/ping |
GET | Returns a small JSON payload for latency measurement |
/api/download?size=N |
GET | Streams N bytes of random data (max 100 MB per request; client loops until time is up) |
/api/upload |
POST | Accepts a body of data and returns size/duration |
/api/info |
GET | Returns server metadata including test_duration (seconds) |
Development
# Set up development environment
make dev
# Run linting and format checking
make check
# Auto-format code
make format
# Build wheel and docs
make build
Licence
Released under the Unlicense — public domain.
Metadata
Release files for web-speedtest 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| web_speedtest-1.1.0-py3-none-win_arm64.whl | Python 3 | none | Windows ARM64 | Details for web_speedtest-1.1.0-py3-none-win_arm64.whl |
| web_speedtest-1.1.0-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for web_speedtest-1.1.0-py3-none-win_amd64.whl |
| web_speedtest-1.1.0-py3-none-manylinux_2_17_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details for web_speedtest-1.1.0-py3-none-manylinux_2_17_x86_64.whl |
| web_speedtest-1.1.0-py3-none-manylinux_2_17_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details for web_speedtest-1.1.0-py3-none-manylinux_2_17_aarch64.whl |
| web_speedtest-1.1.0-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details for web_speedtest-1.1.0-py3-none-macosx_11_0_arm64.whl |
| web_speedtest-1.1.0-py3-none-macosx_10_9_x86_64.whl | Python 3 | none | macOS 10.9+ x86-64 | Details for web_speedtest-1.1.0-py3-none-macosx_10_9_x86_64.whl |
Total release size: 17.7 MB
Release files / web_speedtest-1.1.0-py3-none-win_arm64.whl
| Download URL | web_speedtest-1.1.0-py3-none-win_arm64.whl |
|---|---|
| Size | 2.8 MB |
| Tags | Python 3 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
e07415d8d6ba2355b33f3c5eda1c5c375da9365e4ffb238c6163e3214f85947f
|
|
BLAKE2b-256 checksum How to use checksums |
cb65c8b5855b9522cfba871678b1a653b40fbcf9f6376d9aea64e2d44baeae06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.15.2
|
Release files / web_speedtest-1.1.0-py3-none-win_amd64.whl
| Download URL | web_speedtest-1.1.0-py3-none-win_amd64.whl |
|---|---|
| Size | 3.1 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
2cc2291f0b1ff81546d15a105981dd43e6ab0ad2fedd13bea9e91ba99a670b60
|
|
BLAKE2b-256 checksum How to use checksums |
d727ba18bedcbbc24010c63c574719ce8039a0d3984be2f2f5011efe7a1ef69c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.15.2
|
Release files / web_speedtest-1.1.0-py3-none-manylinux_2_17_x86_64.whl
| Download URL | web_speedtest-1.1.0-py3-none-manylinux_2_17_x86_64.whl |
|---|---|
| Size | 3.1 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
f9ce0f5dd6d085f36155b00998bee16f53558239054ee25dd3746417bd7bd3da
|
|
BLAKE2b-256 checksum How to use checksums |
852348dda2e943d91f8948e6055fbfa223402e0a97d857e9194d00ef246650c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.15.2
|
Release files / web_speedtest-1.1.0-py3-none-manylinux_2_17_aarch64.whl
| Download URL | web_speedtest-1.1.0-py3-none-manylinux_2_17_aarch64.whl |
|---|---|
| Size | 2.8 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
1096fa6c2ea5986a484c27f15d7d5b473bc43aa5bb25b37f260dac836bb8accb
|
|
BLAKE2b-256 checksum How to use checksums |
405614365626f340c96a6d86add1929c7f1c9237a4692a350bee5e6de90c3abe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.15.2
|
Release files / web_speedtest-1.1.0-py3-none-macosx_11_0_arm64.whl
| Download URL | web_speedtest-1.1.0-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.9 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
0280a684cc151a2485a106f80d43c5f150eeb171d648f6fae24e82a796dc367c
|
|
BLAKE2b-256 checksum How to use checksums |
4933e09ce0681a197a59c96ed032217816c2940ed4a0b6b627ed359633d35812
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.15.2
|
Release files / web_speedtest-1.1.0-py3-none-macosx_10_9_x86_64.whl
| Download URL | web_speedtest-1.1.0-py3-none-macosx_10_9_x86_64.whl |
|---|---|
| Size | 3.1 MB |
| Tags | Python 3 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
9897fcbcd1b2b7e64a45a43116e4f7720a648a82798bb490abf04e540ce240d5
|
|
BLAKE2b-256 checksum How to use checksums |
684f9900948d8fbe042e7ace9abb814d57a04b09a4cc627c24e03f3a1f2bed1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.15.2
|
Security for web-speedtest 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.