-
Notifications
You must be signed in to change notification settings - Fork 0
Home
cbabil edited this page Jul 30, 2025
·
3 revisions
speedtest-logger is a Python script that runs a speedtest using the official speedtest CLI tool, validates the JSON output against a schema, and then formats the data using a template. The output can be directed to either a file or to standard output.
This wiki provides a comprehensive guide to using and understanding the speedtest-logger project.
-
Getting Started: This page provides detailed instructions on how to install and use the
speedtest-logger. - Architecture: This page provides an overview of the project's architecture and folder structure. Getting Started
This page provides detailed instructions on how to install and use the speedtest-logger.
-
Clone this repository:
git clone https://github.com/cbabil/speedtest.git
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
-
Windows:
venv\\Scripts\\activate
-
macOS and Linux:
source venv/bin/activate
-
Windows:
-
Install the project in editable mode:
pip install -e . -
Install the
speedtestCLI tool. You can find instructions on the official Speedtest website: https://www.speedtest.net/apps/cli
speedtest-logger --help
Options
--template: The template to use for formatting the output. Defaults to json.
--schema: The JSON schema to use for validating the speedtest output. Defaults to speedtest/schemas/schemaV1.json.
--out: The destination for the output. Defaults to stdout.
--loglevel: The logging level. Defaults to INFO.
Examples
Run a speedtest and print the JSON output to the console:
speedtest-logger
Run a speedtest and save the output to a file named speedtest.log:
speedtest-logger --out speedtest.log
Run a speedtest and format the output using the influx template:
speedtest-logger --template influx