def callback(mech, vals):
    print("Need user information for %s login to %s on %s" % (mech.name, mech.sasl.service, mech.sasl.host))
    import getpass
    for x, v in list(vals.items()):
        if x == 'password':
            vals[x] = getpass.getpass( 'Password: ' )
        else:
            vals[x] = input( x+': ' )

    print("Fulfilling: %s" % vals)
    mech.fulfill(vals)

# We'll authenticate as "test". The password is (or was, when I wrote this) "test".
dataset/ETHPy150Open dwd/Suelta/example.py/callback/original