0π
On Mac OS X, the keychain can be accessed from the shell using the security
program. You can search for a specific private key using security find-identity -s <search term>
, and export it to a file using security export
(more information on those commands can be obtained from security -h <command>
). I have not seen python bindings yet, but it should be easy to wrap the functionality you need in a subprocess.call
call.
2π
Yes, it can there are a couple solutions for this, but so far the best one Iβve found is keyring.
The Python module keyring supports OSX, Windows and both Gnome keyring and KDE wallet. Just tried it out on OSX and pleasantly had no problems right out of the box. Much respect to itsβ author Jason R. Coombs.
The source code lives at http://bitbucket.org/kang/python-keyring-lib, but
pip install keyring works
too.
- [Answered ]-Django-imagekit get model attribute
- [Answered ]-Get annual count within the given range of years
- [Answered ]-What happens to a Django website when you restart Gunicorn?
- [Answered ]-Return information from dict