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.0.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.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bbrpy-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 06367c13e2642deebc9b4925964ebe968dd7077a8a74d1854a85463b3780097e
MD5 94e15b55d2ab8f7e862c8c9098d521ac
BLAKE2b-256 2f2050c9f83c2c98add91ea7bcb11e20baffe1359b3a112eb89c8a66c843a1ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bbrpy-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e9b10c5d9cf4019c289f4f0de2ef1021c350cf474521eeab474349707f7a39f1
MD5 737deb53bb6ad4de45a7771fe551f4aa
BLAKE2b-256 0a80b606a8c86accf3389c61e60a4cb867c3db4eba97590b0cfae21de2608250

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