def _get_auth_from_keyring(self):
if not keyring:<EOL><INDENT>return None<EOL><DEDENT>password = self._get_password_from_keyring(self.user or getpass.getuser())<EOL>if password is not None:<EOL><INDENT>self.user = self.user or getpass.getuser()<EOL>self.password = password<EOL><DEDENT>return '<STR_LIT>'<EOL>
Try to get credentials using `keyring <https://github.com/jaraco/keyring>`_.