Network speed test — server with web UI and CLI client for measuring ping, download, and upload
Project description
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 runs on stdlib only — zero external 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 — measure download throughput (configurable size)
- Upload test — measure upload throughput
- Web UI — dark-themed single-page app with animated gauge and live progress
- API endpoints — programmatic access for custom integrations
- Zero dependencies — stdlib only, no external packages required
- Coloured output — TTY-aware ANSI colours for CLI results
- Cross-platform — works on macOS, Linux, and Windows
Requirements
- Python 3.12+
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
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 (default 25 MB, max 100 MB) |
/api/upload |
POST | Accepts a body of data and returns size/duration |
/api/info |
GET | Returns server version metadata |
Development
# Set up development environment
make dev
# Run linting and type checking
make check
# Auto-format code
make format
# Build wheel and docs
make build
Licence
Released under the Unlicense — public domain.
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 Distributions
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 web_speedtest-1.0.0b3-py3-none-any.whl.
File metadata
- Download URL: web_speedtest-1.0.0b3-py3-none-any.whl
- Upload date:
- Size: 29.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
145e46efcc3d1779b4c408541885a04ff820e31b10d330394e6448ea503e0658
|
|
| MD5 |
7e895ea3adcab54822b53a782f91242c
|
|
| BLAKE2b-256 |
ac0dc3cce99b9400ad94562d1c77511d56357a9569358b4cd96602e131ed5839
|