Is there a way to access the values
ioreg utility accesses via Python?
What i'm looking is to add monitoring of the battery status of my Magic Mouse. I know I can get it by using
ioreg -c AppleDeviceManagementHIDEventService -r -l | grep -E '"Product"|BatteryPercent'
So -- what's the magic to get the value of BatteryPercent into Python, without launching