A library for getting battery status and percentage from wireless mice.
Currently supports Linux's /sys/class/power_supply
interface only.
batmouse
can list all known peripherals plugged through the
get_sys_power_supply_mice
function (for Linux's sys interface):
from batmouse.api import get_sys_power_supply_mice
for mouse in get_sys_power_supply_mice():
print(mouse.model)
print(mouse.percentage.value)
print(mouse.percentage)
Check our contributing guide to know how to develop on Batmouse and contribute to our project.