Skip to main content

Network speed test — server with web UI and CLI client

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 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

web_speedtest-1.0.1-py3-none-win_arm64.whl (2.5 MB view details)

Uploaded Python 3Windows ARM64

web_speedtest-1.0.1-py3-none-win_amd64.whl (2.8 MB view details)

Uploaded Python 3Windows x86-64

web_speedtest-1.0.1-py3-none-manylinux_2_17_x86_64.whl (2.8 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

web_speedtest-1.0.1-py3-none-manylinux_2_17_aarch64.whl (2.5 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

web_speedtest-1.0.1-py3-none-macosx_11_0_arm64.whl (2.6 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

web_speedtest-1.0.1-py3-none-macosx_10_9_x86_64.whl (2.8 MB view details)

Uploaded Python 3macOS 10.9+ x86-64

File details

Details for the file web_speedtest-1.0.1-py3-none-win_arm64.whl.

File metadata

File hashes

Hashes for web_speedtest-1.0.1-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 cc64c06694c023ae7a6c8cb06e7cd71ecfb35417d9bae00c951f9ae56ee6458d
MD5 5049300b0a015498a474d6de433167b5
BLAKE2b-256 378249c96d6768687f411b7ed474eee5d4d6d1e4d96f7e7a5bd4a6d1cd4f8489

See more details on using hashes here.

File details

Details for the file web_speedtest-1.0.1-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for web_speedtest-1.0.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 631591572e5ef6f4acafaa3ee9059ca71e03b708c2c99d61ac2a4223b7b7cfee
MD5 84220af3f85ee32ce3dc903d15b57377
BLAKE2b-256 07185d7fbf3baf9f076aecc04e89dbe251b5c6c85fa2b162c7c031f57d269c12

See more details on using hashes here.

File details

Details for the file web_speedtest-1.0.1-py3-none-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for web_speedtest-1.0.1-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 f7b440d934b09dbf97cc7b10e31456544d7754cdb2e1e219a6043efb3b0c68a1
MD5 9509b9178bf32a545d3fe10c69a55c8c
BLAKE2b-256 0ec3fcfe63a55a48796eb8a66fdbd8ae38d5c564406b4057024e6760b26b2f29

See more details on using hashes here.

File details

Details for the file web_speedtest-1.0.1-py3-none-manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for web_speedtest-1.0.1-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 48120e9d4da43b3eb4eefe60c3c407fb307987185ae521eb7d3467b71219443e
MD5 d9e5f877916bd0f19fbe5e5af9b4317e
BLAKE2b-256 84411808a8470676c9641a7b181e26fc34d14204e0439aed0cbe975c198fe7dd

See more details on using hashes here.

File details

Details for the file web_speedtest-1.0.1-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for web_speedtest-1.0.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1a9480069e827e0b03fbad688bea03df2d7f3a2df78f845b7b0ae1367a599797
MD5 1cbb93035aeefc3c26f3456e5c35c44a
BLAKE2b-256 da8858f1e73d1511ee00a997c0daf3ba8c3433950ccbfcbe44a48a22ba760188

See more details on using hashes here.

File details

Details for the file web_speedtest-1.0.1-py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for web_speedtest-1.0.1-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d3a8630c7e5e77a958837bd488c4340ffb2c9c8ae267502ea691e681d8ee02cc
MD5 47b855df4de43d191d6217d36b61e3f2
BLAKE2b-256 5c087fd55aa279bcead3a93607024d13f3471eb3776d603f932638c7c3ae5320

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page