Skip to content

The application will display the current battery percentage, charging status, and time remaining (if available).

Notifications You must be signed in to change notification settings

UmeshIsu/Battery-Percentage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Simple Python Battery Percentage Application

This is a simple command-line application built with Python that displays the current battery percentage of your device. It's a lightweight tool that provides quick access to battery information.

Features

  • Display Battery Percentage: Shows the current battery percentage.
  • Charging Status: Indicates whether the device is charging or discharging.
  • Time Remaining: Shows the estimated time remaining until the battery is fully charged or discharged (if supported by the system).

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/simple-python-battery-percentage.git
    cd simple-python-battery-percentage
  2. (Optional) Create and activate a virtual environment:

    python3 -m venv venv
    source venv/bin/activate  # On Windows, use `venv\Scripts\activate`
  3. Install the required dependencies:

    pip install -r requirements.txt

Usage

Run the application from the command line:

python battery_percentage.py

About

The application will display the current battery percentage, charging status, and time remaining (if available).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages