Skip to content

Instantly share code, notes, and snippets.

@kiok46
Created June 10, 2018 09:46
Show Gist options
  • Select an option

  • Save kiok46/8a58022e352c16a925c970e000fea1f4 to your computer and use it in GitHub Desktop.

Select an option

Save kiok46/8a58022e352c16a925c970e000fea1f4 to your computer and use it in GitHub Desktop.
Plyer: Platform independent compatibility layer
from plyer import battery
battery.status
// {'percentage': 82.0, 'isCharging': False}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment