[Python-ideas] Make getpass.getpass use system password keyrings ?

Tarek Ziadé ziade.tarek at gmail.com
Sat Jan 10 11:48:37 CET 2009


What about having an option in getpass to store and reuse passwords in
system keyrings ?

    getpass(prompt[, stream])

would become:

    getpass(prompt[, stream, keyring])

where keyring would be a callable that can be use to retrieve the
password from a keyring system
and store it the first time.

The getpass module could provide some keyring support for:

- ssh-agent under Linux
- keychain under Mac OS X
- ...

And let the developers use their own keyring system by providing a callable.


Tarek Ziadé | Association AfPy | www.afpy.org
Blog FR | http://programmation-python.org
Blog EN | http://tarekziade.wordpress.com/

More information about the Python-ideas mailing list