"""Specific support for getpass."""
import os
import getpass

import keyring.core

def get_password(prompt='Password: ', stream=None,
                 service_name='Python',
                 username=None):
    if username is None:
        username = getpass.getuser()
    return keyring.core.get_password(service_name, username)

