Skip to content

Very basic Python module for checking battery health on a Windows laptop

License

Notifications You must be signed in to change notification settings

Kieferrrrr/WinBatteryHealth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

WinBatteryHealth

WinBatteryHealth is a very basic Python module for getting the original maximum capacity, current maximum capacity and percentage battery health of your Windows laptop.

Installation Through Git Clone

git clone https://github.com/Kieferrrrr/WinBatteryHealth

Download the Module Alone

import requests

moduleContent = requests.get("https://raw.githubusercontent.com/Kieferrrrr/WinBatteryHealth/main/WinBatteryHealth.py")

pyFile = open("WinBatteryHealth.py")
pyFile.write(moduleContent)
pyfile.close()

Module Use

import WinBatteryHealth

print(WinBatteryHealth.OriginalMaxCapacity())     # e.g. 60000 
print(WinBatteryHealth.CurrentMaxCapacity())      # e.g. 30000
print(WinBatteryHealth.CurrentHealthPercentage()) # e.g. 50

About

Very basic Python module for checking battery health on a Windows laptop

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages