python GPGME bindings and key signatures

Ben McGinnes ben at adversary.org
Thu Nov 22 20:12:09 CET 2018


On Mon, Nov 05, 2018 at 12:14:45PM +0100, Tobias Mueller wrote:
> Hi,
> 
>     # With gpgme 1.9 we can simply do:
>     # keys = list(ctx.keylist(key.fpr), mode=mode)

A minor correction of a typo here, that last line should be:

keys = list(ctx.keylist(key.fpr, mode=mode))

Then the signature data will be in accessible via things like this:

for key in keys:
    for uid in key.uids:
        for sig in uid.signatures:
            print(sig.keyid, sig.uid, sig.timestamp)

And so on.

Also, this needs more documentation, soI'll add it to the HOWTO,
thanks for the reminder.


Regards,
Ben
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20181123/569fde1a/attachment.sig>


More information about the Gnupg-devel mailing list