Skip to main content

Better Battery Report for Windows

Project description

BBRPY logo

✨ Better Battery Report: A Python CLI tool that generates enhanced battery reports for Windows systems ✨

Code Quality Release PyPI Latest Release PyPI Downloads versions


📋 Features

  • 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

📦 Installation

Since this is a CLI application, it's recommended to run it using uvx:

uvx bbrpy

Alternatively, you can install it using pip:

pip install bbrpy

Or pipx to install it on an isolated environment:

pipx install bbrpy

💻 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:

  1. Generates a battery report using powercfg
  2. Creates an interactive visualization of battery capacity history
  3. Opens the report in your default web browser

📘 Requirements

  • Windows operating system
  • Python 3.12 or higher
  • Administrative privileges (for powercfg command)

⚙️ Technical Details

The tool uses:

  • powercfg Windows command-line tool for battery data
  • Plotly for interactive visualizations
  • Pandas for data processing
  • Typer for CLI interface

©️ License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bbrpy-0.2.1.tar.gz (60.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bbrpy-0.2.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file bbrpy-0.2.1.tar.gz.

File metadata

  • Download URL: bbrpy-0.2.1.tar.gz
  • Upload date:
  • Size: 60.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.5.25

File hashes

Hashes for bbrpy-0.2.1.tar.gz
Algorithm Hash digest
SHA256 3b5daeab41179eb7714ef1ec0ca9bca98d0fef342e7f4c5bfbdb46f7526c5c8f
MD5 924f2b0f205e665d86ebd108ef4dd2fa
BLAKE2b-256 835d93536ee19705c33a53ac8d8e21d01f6c692fba297d830c231d2135565009

See more details on using hashes here.

File details

Details for the file bbrpy-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: bbrpy-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.5.25

File hashes

Hashes for bbrpy-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e41efccd3f31bbe3ea02dc8add1d0e7b4a4df816c5477bc5fdeb4ba5e9a3ce90
MD5 777d29de62e8427a291956e4fa1c6607
BLAKE2b-256 dd00bc35735aca0d50e79d3dd8112cdba76a7a6c72bdf0cd5d3497d9fe2d8c34

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page