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