<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><br><div><br>On May 8, 2018, at 00:16, Yugesh Kothari <<a href="mailto:kothariyugesh@gmail.com">kothariyugesh@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div><div><div><div><div><div><div><div><div>Hello all,<br><br></div>I'm looking to write a GUI around the existing philosophy-of-use of EasyGnuPG (<a href="https://github.com/EasyGnuPG/egpg">https://github.com/EasyGnuPG/egpg</a>) as part of my GSoC project this summers. I was therefore looking to find the best ways to wrap GnuPG from Python scripts rather than using outputs from gpg2 binary. I see there are two principal bindings available PyMe and PyGPGME.<br><br></div>Both seem to be relatively un-maintained for the past few years now (2008 for PyMe and 2012 for PyGPGME):<br><br><pre><a href="http://pyme.sourceforge.net/">http://pyme.sourceforge.net/</a>
<a href="https://launchpad.net/pygpgme">https://launchpad.net/pygpgme</a></pre><br></div>Some of the features I'd like to be working with are:<br><br></div>1. Encrypting/Decrypting files. Decryption done using user's default keyrings.<br><br></div>2. Listing keys and encryption sub-keys.<br><br></div>3. Maintaining contacts<br><br></div>4. Generating new keys<br><br></div>So, my question is - has anyone worked with Python and GPGME? Which bindings are better in your opinion?<br></div><div><div><div><div><br></div></div></div></div></div></div></blockquote><div><br></div><div>I’m a GSoC student as well and I asked a similar question on the pki-clean-room-devel list. </div><div>The relevant part of the response I got from Debian’s GPGME maintainer is quoted below, the full message can be found here:</div><div><br></div><div><p style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Helvetica;"><span style="font-size: 12pt;"><a href="https://alioth-lists.debian.net/pipermail/pki-clean-room-devel/Week-of-Mon-20180108/000071.html">https://alioth-lists.debian.net/pipermail/pki-clean-room-devel/Week-of-Mon-20180108/000071.html</a></span></p><p style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Helvetica;"><span style="font-size: 12pt;"><br></span></p></div><div><span style="background-color: rgba(255, 255, 255, 0);">“If you want to use GnuPG with python3, please use python3-gpg (for<br>python2, use python-gpg). These packages are built and shipped as part<br>of gpgme, which is maintained by the GnuPG developers.”</span><br style="-webkit-text-size-adjust: auto;"></div><div><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div>I’m not sure what platform you’re developing on but the python3-gpg package in Debian corresponds to the official Python GPGME bindings which are shipped with recent versions of GPGME. </div><div><br></div><div>Hope this helps,</div><div>Jacob</div></body></html>