Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.07 KB

README.md

File metadata and controls

34 lines (25 loc) · 1.07 KB

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