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

Gregory P. Smith greg at krypto.org
Mon Jan 12 08:59:08 CET 2009

On Sat, Jan 10, 2009 at 2:48 AM, Tarek Ziadé <ziade.tarek at gmail.com> wrote:

> Hello,
> 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.
> Regards
> Tarek

That sounds like a nice idea.  I suggest starting by writing a library
keyring get/put functions for the various keyrings out there and releasing
it on its own.

(ssh-agent, gnome and kde keychains, mac os x keychain, does windows have an
api for this?, others?, pwsafe?)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20090111/e0b1b0e9/attachment.html>

More information about the Python-ideas mailing list