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.
- 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).
-
Clone the repository:
git clone https://github.com/yourusername/simple-python-battery-percentage.git cd simple-python-battery-percentage
-
(Optional) Create and activate a virtual environment:
python3 -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install the required dependencies:
pip install -r requirements.txt
Run the application from the command line:
python battery_percentage.py