Python bindings for GPGME - PyGPGME vs PyMe

Branko Majic branko at majic.rs
Sat Apr 13 12:41:58 CEST 2013


Hello all,

I'm looking for the best way to utilise the GnuPG from within Python
scripts. Instead of wrapping myself around output from gpg2 binary, I
was thinking of starting to use GPGME. I can see there are two bindings
available right now:

http://pyme.sourceforge.net/
https://launchpad.net/pygpgme

The PyMe package seems to be unmaintained, latest release coming from
2008. The PyGPGME seems to be a bit more recent (latest release in
march 2012).

The features I'd be working with are:

1. Adding/removing public keys to a local GnuPG keyring (outside of
user's home).

2. Encrypting/decrypting files. Decryption is done using user's
default keyrings.

3. Listing encryption sub-keys in local GnuPG keyring (so I can
use them for encryption).

4. Listing encryption keys used for encrypting the files (in order to
figure out if all recipients from keyring are included).

So, has anyone played before with Python and GnuPG? Any suggestions on
which library is better?

The script's intention is to more easily manage an encrypted directory
within GIT repository that should contain non-PKI based credentials
(passwords). I am aware that this type of solution has its limits and
flaws, of course. But I'd use it with a small team (for now), until we
develop better tools for something like this - in addition to
switching to PKI-based authentication/authorisation wherever we can, of
course.

Best regards

-- 
Branko Majic
Jabber: branko at majic.rs
Please use only Free formats when sending attachments to me.

Бранко Мајић
Џабер: branko at majic.rs
Молим вас да додатке шаљете искључиво у слободним форматима.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: </pipermail/attachments/20130413/047fa2ed/attachment-0001.sig>


More information about the Gnupg-users mailing list