Is there way to get system uuid from python that runs from non-root account?

Viewed 162

I am particularly interested in system uuid, I know I can get it from dmidecode output(via subprocess) but that would require root privileges I assume. Is there a better way of doing this ? I tried googling it but didnt find any concrete answer

prompt# sudo dmidecode
Handle 0x0100, DMI type 1, 27 bytes
System Information
        Manufacturer: QEMU
        Product Name: Standard PC (i440FX + PIIX, 1996)
        Version: pc-i440fx-trusty
        Serial Number: Not Specified
        UUID: 0F236341-588C-CEBB-D054-BD239B311E2F <<<<<<<<<<
        Wake-up Type: Power Switch
        SKU Number: Not Specified
0 Answers
Related