Python bindings HOWTO proof reader request

Justus Winter justus at
Wed Mar 21 10:57:14 CET 2018

Tobias Mueller <muelli at> writes:

> On Tue, 2018-03-20 at 10:26 +1100, Ben McGinnes wrote:
>> That is my long term plan: to (ideally) port the damned thing off SWIG
>> entirely and to CFFI.
> hrm.
> The benefit of SWIG is that it nicely exposes everything the native
> build does.  So it's more work to not expose an existing gpgme feature
> than it is to implement it in the python bindings.
> Does CFFI also provide that kind of automatic exposure?

Yes.  You feed it a header file and get an object with a method for
every function found in the header.

What it does *not* provide is automatic translation of values at the ffi
boundary.  I consider that a rather cool feature of SWIG.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 487 bytes
Desc: not available
URL: <>

More information about the Gnupg-devel mailing list