def get_password(max_password_prompts=3):
    verify = strutils.bool_from_string(env("OS_VERIFY_PASSWORD"))
    pw = None
    if hasattr(sys.stdin, "isatty") and sys.stdin.isatty():
        # Check for Ctrl-D
        try:
            for __ in moves.range(max_password_prompts):
                pw1 = getpass.getpass("OS Password: ")
                if verify:
                    pw2 = getpass.getpass("Please verify: ")
                else:
                    pw2 = pw1
                if pw1 == pw2 and pw1:
                    pw = pw1
                    break
        except EOFError:
            pass
    return pw
Modules to import on kit load.
dataset/ETHPy150Open openstack/python-ironicclient/ironicclient/common/cliutils.py/get_password--crossover with--dataset/ETHPy150Open mtth/kit/kit/base.py/Kit._modules