/GetSysUUID

A Python module to retrieve the SYSUUID value from the SMBIOS in a cross platform, Pythonic way.

Primary LanguagePythonGNU Lesser General Public License v3.0LGPL-3.0

#GetSysUUID

A little Python module that provides the functionality to get a SYSUUID from the SMBIOS in a cross-platform Pythonic way.

The module works on both 32 and 64 bit versions of Windows, Linux and OS X.

For Linux and OS X it just calls out to the relevent command line tool (dmidecode or ioreg) and parses the output into a normalised form. For Windows it uses ctypes to call out to the GetSystemFirmwareTable function and parse the results.

Except in buggy SMBIOS implementations (of which there are unfortunately quite a few) the UUID returned should be unique to a system and thus be identifying.

##Usage

GetSysUUID is very straight forward to use:

import GetSysUUID
sysuuid = GetSysUUID.GetSysUUID()
print sysuuid()

Would produce an example output of:

UUID: D2AC346E-E323-5F2E-7C2D-D5783E5E14DB

##License GetSysUUID is released under the LGPL.