def retrieve_password_from_keyring(credential_id, username):
 try:
  import keyring
  return keyring.get_password(credential_id, username)
 except ImportError:
  log.error('USE_KEYRING configured as a password, but no keyring module is installed')
  return False

def retrieve_password_from_keyring ( credential_id , username ) : try : import keyring return keyring . get_password ( credential_id , username ) except ImportError : log . error ( 'USE_KEYRING configured as a password, but no keyring module is installed' ) return False
retrieve particular users password for a specified credential set from system keyring .