Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 163 Bytes

README.md

File metadata and controls

9 lines (5 loc) · 163 Bytes

Simplistic Python SysFS interface.

Usage

from sysfs import sys

for bdev in sys.block:
    print bdev, str(int(bdev.size) / 1024 / 1024) + 'M'