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.0b12-py3-none-win_arm64.whl (2.5 MB view details)

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

web_speedtest-1.0.0b12-py3-none-manylinux_2_17_x86_64.whl (2.7 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

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

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

web_speedtest-1.0.0b12-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.0b12-py3-none-win_arm64.whl.

File metadata

File hashes

Hashes for web_speedtest-1.0.0b12-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 800c693db0611a88ad70319c1db0bb8ec001d2ee4fa7323b90430b4a1b555d1d
MD5 eeeb031e0c4a6c0914a95ac72dd2f8fc
BLAKE2b-256 0e509b0cc03bb19ddb9ba41f2230343659c50650a73078bfae607be759e2ad27

See more details on using hashes here.

File details

Details for the file web_speedtest-1.0.0b12-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for web_speedtest-1.0.0b12-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 aca4d5a2feaba71339e490ba0ceb80e249f929d2e0985b5ab920bbb719f3e3fe
MD5 42b92f48df8d6eaad1aa20c8a7c7e445
BLAKE2b-256 2f40069d072aa3469f2aec09b61ddaac32f01b5e45bc7fd01824af689de44f46

See more details on using hashes here.

File details

Details for the file web_speedtest-1.0.0b12-py3-none-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for web_speedtest-1.0.0b12-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 35c32a084f2e21ecc865f2bee177bd4e37ec270dc8c5146d8fd84cd6120954a2
MD5 db0a2591496ead0fc73b77a1d96fe256
BLAKE2b-256 61189db73cde18a90e71259a6bb36ef5b2af734a7c0526063fc82b41394594ea

See more details on using hashes here.

File details

Details for the file web_speedtest-1.0.0b12-py3-none-manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for web_speedtest-1.0.0b12-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 be27ed687f963ffebbfba8f4baf285d3c7bf9af77a8af902763d0db4988cdfd7
MD5 c1cc83bac435d4c5d9dca86e51be9821
BLAKE2b-256 308da966360dec1eb27a847b1f95fba4f821cab1c95bc5c328ea88fb7fbac675

See more details on using hashes here.

File details

Details for the file web_speedtest-1.0.0b12-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for web_speedtest-1.0.0b12-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0be2987bde29dde78d44c46bbb3fc6b41e58156b502407ae64ebc14714b69694
MD5 244c8fcf37539280b86120d1c94ebc57
BLAKE2b-256 e8389c632656b9e0661a35e614e25f69d24250ae17882e153a7b93843dd9ed46

See more details on using hashes here.

File details

Details for the file web_speedtest-1.0.0b12-py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for web_speedtest-1.0.0b12-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6448125d10780c1d9ea99e2ace046670c96b423e6d0523a94433b8d6e3003635
MD5 2b630d26af57473463ac79beee296cd7
BLAKE2b-256 4c5b390b17b8d0eac75b9030f061f8299e565aa466c74e38c33efa6c181a64ee

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