Skip to main contentModule history
Source - Entry
- format_comparison
- Format historical comparison as a string for display.
Returns None if insufficient history data.
- get_averages
- Compute average download and upload speeds from history (last 20 entries).
Returns (
avg_dl_mbps, avg_ul_mbps) or None if insufficient data. - get_recent_sparkline
- Get recent download/upload speeds as paired tuples for sparkline display.
Returns up to the last 7 entries as
(date_label, dl_mbps, ul_mbps). - load
- Load all test history from the history file.
- save_report
- Save a full report (currently identical to a TestResult).
- save_result
- Save a test result to the history file.
- show
- Print formatted test history to stdout.
- sparkline
- Render a sparkline from a slice of numeric values using Unicode block chars.
- sparkline_ascii
- Render an ASCII-only sparkline using
_-^ characters for environments
where Unicode block characters don’t render.