Skip to content

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

License

Notifications You must be signed in to change notification settings

MyNameIsMeerkat/GetSysUUID

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

#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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages