def get_system_uid ( ) : try : if os . name == 'nt' : return get_nt_system_uid ( ) if sys . platform == 'darwin' : return get_osx_system_uid ( ) except Exception : return get_mac_uid ( ) else : return get_mac_uid ( )
how to get user id of a process using python
Get a ( probably ) unique ID to identify a system . Used to differentiate votes .
def get_system_uid():
    """Get a (probably) unique ID to identify a system.
    Used to differentiate votes.
    """
    try:
        if os.name == 'nt':
            return get_nt_system_uid()
        if sys.platform == 'darwin':
            return get_osx_system_uid()
    except Exception:
        return get_mac_uid()
    else:
        return get_mac_uid()