Skip to main content

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:

  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.7 or higher
  • Administrative privileges (for powercfg command)

Technical Details

The tool uses:

  • powercfg Windows command-line tool for battery data
  • Plotly for interactive visualizations
  • Polars 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.1.1.tar.gz (44.2 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.1.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bbrpy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a50ad435eea47d032f334de675893876f1c5b5fe6938be2cc7035f61bd15db26
MD5 ec868c6b25cf915e698f8e2c2a01a24b
BLAKE2b-256 0c40c81579178ad6bcabe1330368e89ba000a7aae41bdeaea0f1281aa982ed65

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for bbrpy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4f1c9e01b65d2acf522f0a0f5babc24cd18819a7ea0e537b0ba9694c400d9573
MD5 aeb0dfcfc7b5741e562640703bb06f59
BLAKE2b-256 aeab97595586cde7b1a0a7d6d39d1400a29be50aab483cc30f3c23d180d61729

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