Disk information Python library can assist in collecting disk information on Linux. In more details, it can:
- collect information about a specific disk
- explore all existing disks in the system
- translate between traditional and persistent disk names
- read current disk temperature
- read SMART data of a disk
- read partition list of a disk
Standard installation from pypi.org:
pip install diskinfo
See the complete list of dependencies and requirements in the documentation.
The library contains a demo application with multiple screens:
pip install rich
python -m diskinfo.demo
See more demo screens in the documentation.
The detailed API documentation can be found on readthedocs.io.