Better Battery Report for Windows
Project description
Better Battery Report
A Python CLI tool that generates enhanced battery reports for Windows systems using the powercfg command with data visualization capabilities.
Features
- Generate battery health reports with interactive visualizations
- Display basic battery information
- Export reports as HTML files with Plotly graphs
- Track battery capacity changes over time
Installation
pip install bbrpy
NOTE: It is highly recommended to use this tool with uvx: https://docs.astral.sh/uv/guides/tools/
Usage
The tool provides two main commands:
Display Battery Information
bbrpy info
This command shows basic battery information including:
- Computer name
- Last scan time
- Design capacity
- Current full charge capacity
Generate Battery Report
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
Requirements
- Windows operating system
- Python 3.7 or higher
- Administrative privileges (for powercfg command)
Technical Details
The tool uses:
powercfgWindows command-line tool for battery data- Plotly for interactive visualizations
- Polars for data processing
- Typer for CLI interface
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bbrpy-0.2.0.tar.gz.
File metadata
- Download URL: bbrpy-0.2.0.tar.gz
- Upload date:
- Size: 47.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.5.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a945431f454edf3cf286c11d9ab247a5044f22104c1a59feed53f73472086271
|
|
| MD5 |
786ac211512e26c76c6fa955beb96bea
|
|
| BLAKE2b-256 |
233fe27cbf6943b950b9824b38f4c77386339d131b2f818614547d86f4087c2b
|
File details
Details for the file bbrpy-0.2.0-py3-none-any.whl.
File metadata
- Download URL: bbrpy-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.5.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d19c4aa8402fa582db8ca34efadf352cbac08a0f8142d571f95851f7e15a885
|
|
| MD5 |
525b22cc9529b595376938ae69ae6e63
|
|
| BLAKE2b-256 |
cbfa3126a2e84e0ab776e0e60d59029f503985c3bf58e15b452e7d77b0ba6edf
|