Batinfo is a simple Python library to retrieve battery information on Linux-based operating systems. No ACPI or external software are needed: only the Linux kernel and its /sys/class/power_supply folder.