-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
cbabil edited this page Jul 30, 2025
·
2 revisions
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