side by side
lines around each change
Show the changes in full context
White space changes
Mar 7, 2010, 9:24:22 PM (
added info about alternative gpg wrappers for python
* embed DEBUG logging into all operations mentioned above
=== How ===
To make it more difficult for me to start I've found not one but several candidates for interacting with GnuPG from Python (http://wiki.python.org/moin/GnuPrivacyGuard has a listing with some more comments):
* [http://code.google.com/p/python-gnupg/ python-gnupg]
* PRO: no additional dependencies but pure Python, works on Windows as well as Unix/Linux, most complete set of gpg actions including key generation and management, active development - python 3 support since July 2009, latest release v0.2.4 from 01-03-2010
* CON: no Debian package?
* [http://py-gnupg.sourceforge.net/ Python GnuPGInterface]
* PRO: Debian package python-gnupginterface-0.3.2-9
* CON: concentrates on interacting with GnuPG via filehandles, based on Perl module GnuPG::Interface by same author, rumors about being "not very easy to use", doesn't work on Windows ([http://sourceforge.net/tracker/?func=detail&aid=1859636&group_id=29555&atid=396635 open feature request] since 2007, even has predecessor from 2002 that was plainly rejected), quite old - latest release v0.3.2 from 24-02-2002, even looks unmaintained since 2008
* [https://launchpad.net/pygpgme PyGPGME]
* PRO: Debian package python-gpgme-0.1+bzr20090820-1+b1
* CON: ?
* [http://pyme.sourceforge.net/ PyMe]
* PRO: interface to C GPGME library, not limited to gpg by design, other backends planned, works on Windows as well as Unix/Linux, latest release v0.8.1 from 26-11-2008, Debian package python-pyme-0.8.1+clean-1
* CON: complex dependencies because built on GPGME + Python + SWIG
* [http://pypi.python.org/pypi/OpenPGP/ OpenPGP]
* PRO: ?
* CON: no information on Windows support, quite old - latest release v0.2.3 from 01-07-2005, even looks unmaintained ([http://www.aonalu.net/openpgp project homepage] currently unreachable)
* [http://www.cs.auckland.ac.nz/~pgut001/cryptlib/ cryptlib]
* PRO: interface to a range of plug-in encryption modules, not only but including gnupg, language bindings for C / C++, C# / .NET, Delphi, Java, Python, and Visual Basic, re-entrant and completely thread-safe, most core algorithms implemented in assembly language, support crypto hardware acceleration facilities like in Via C3 CPU family, extensive documentation designed for cut-n-paste directly from manual
* CON: ?
conclusion? recommendations? known-good code references or popular applications?
sources (ideas and code)
* Intro to python-gnupg at http://groups.google.de/group/comp.lang.python/browse_thread/thread/f2b97a2c11e1df63