
โจ Better Battery Report: A Python CLI tool that generates enhanced battery reports for Windows systems โจ
- Display basic battery information
- Generate battery health reports with interactive visualizations
- Export reports as HTML files with Plotly graphs
- Track battery capacity changes over time
Since this is a CLI application, it's recommended to run it using uvx
uvx bbrpy
or using pipx to install it on an isolated environment:
pipx install bbrpy
Alternatively, you can install it globally using pip:
pip install bbrpy
The tool provides two main commands:
bbrpy info
This command shows basic battery information including:
- Report scan time
- Capacity Status (current / design)
bbrpy generate [--output PATH]
Options:
--output
: Specify the output path for the HTML report (default: "./reports/battery_report.html")
This command:
- Generates a battery report using powercfg
- Creates an interactive visualization of battery capacity history
- Opens the report in your default web browser
- Windows operating system
- Python 3.12 or higher
- Administrative privileges (for powercfg command)
powercfg
Windows command-line tool for battery datapydantic_xml
for the default report serializationplotly
for interactive visualizationspandas
for data processingtyper
for CLI interface
MIT License