Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-announce@python.org Delivered-To: python-announce-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'skip:[ 20': 0.03; 'subject:Python': 0.05; 'cpython': 0.05; 'skip:\\ 20': 0.05; '(especially': 0.07; 'keys,': 0.07; 'subject:ANN': 0.07; 'unittest': 0.07; 'python': 0.09; '3.0,': 0.09; 'derived': 0.09; 'patches': 0.09; 'pgp': 0.09; 'release.': 0.09; 'subject:module': 0.09; 'subject:version': 0.09; 'windows,': 0.09; 'wraps': 0.09; 'bug': 0.10; '2.7': 0.13; 'steve': 0.13; '-----end': 0.16; 'doctests': 0.16; 'dove': 0.16; 'encryption': 0.16; 'gnupg': 0.16; 'gpg': 0.16; 'received:209.85.212.69': 0.16; 'received:eu': 0.16; 'released.': 0.16; 'subject: \n ': 0.16; 'subject:which': 0.16; 'subprocess': 0.16; 'v1.4.9': 0.16; 'module,': 0.17; 'passes': 0.17; 'skip': 0.17; 'skip:g 40': 0.17; 'tests.': 0.17; 'tests': 0.18; '>>>': 0.18; 'windows': 0.19; 'module': 0.19; 'versions': 0.20; 'skip:= 10': 0.20; 'subject:) ': 0.20; 'import': 0.21; 'earlier': 0.21; 'minor': 0.22; "skip:' 40": 0.22; 'cheers': 0.24; 'signed': 0.24; 'allows': 0.25; 'pass': 0.25; 'header:User- Agent:1': 0.26; '2.6': 0.27; 'andrew': 0.27; 'newer': 0.27; 'reports,': 0.27; 'fixed': 0.28; 'received:209.85.212': 0.28; 'always,': 0.29; 'escaped': 0.29; 'url:code': 0.29; 'included': 0.29; 'source': 0.29; "skip:' 10": 0.30; 'feedback': 0.30; 'from:addr:yahoo.co.uk': 0.32; 'print': 0.32; 'ubuntu': 0.33; 'values.': 0.33; 'handle': 0.33; 'entry': 0.33; 'version': 0.34; 'received:google.com': 0.34; 'project': 0.34; 'list': 0.35; 'data,': 0.35; 'richard': 0.35; 'expected': 0.35; 'ltd.': 0.35; 'received:209.85': 0.35; 'generation': 0.36; 'test': 0.36; 'skip:p 20': 0.36; 'subject: (': 0.36; 'does': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'your': 0.60; 'red': 0.60; 'most': 0.61; 'improved': 0.62; 'url:p': 0.63; 'information,': 0.63; 'more': 0.63; 'visit': 0.64; 'privacy': 0.65; 'to:addr:comp-lang-python- announce': 0.70; 'to:addr:moderators.isc.org': 0.79; 'user)': 0.84; 'enhancement': 0.95 X-Received: by 10.224.175.65 with SMTP id w1mr3659757qaz.7.1358444509877; Thu, 17 Jan 2013 09:41:49 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.49.1.162 with SMTP id 2mr1417329qen.2.1358444509847; Thu, 17 Jan 2013 09:41:49 -0800 (PST) Newsgroups: comp.lang.python,comp.lang.python.announce Date: Thu, 17 Jan 2013 09:41:49 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: y8g2000vbb.googlegroups.com; posting-host=82.152.15.113; posting-account=3PSTgxAAAACRZBfTFqcrp20l4rsi4Aaz User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.9 (KHTML, like Gecko) Ubuntu/9.04 Chromium/7.0.531.0 Chrome/7.0.531.0 Safari/534.9, gzip(gfe) Subject: ANN: A new version (0.3.2) of the Python module which wraps GnuPG has been released. From: Vinay Sajip Injection-Date: Thu, 17 Jan 2013 17:41:49 +0000 To: comp-lang-python-announce@moderators.isc.org Content-Type: text/plain; charset=ISO-8859-1 X-Mailman-Approved-At: Thu, 17 Jan 2013 19:19:46 +0100 X-BeenThere: python-announce-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: python-list@python.org List-Id: Announcement-only list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Approved: python-announce-list@python.org Message-ID: Lines: 76 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1358446787 news.xs4all.nl 6895 [2001:888:2000:d::a6]:55351 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:36960 comp.lang.python.announce:812 A new version of the Python module which wraps GnuPG has been released. What Changed? ============= This is a minor enhancement and bug-fix release. See the project website ( http://code.google.com/p/python-gnupg/ ) for more information. Summary: Improved support for status messages from GnuPG. Fixed key generation to skip empty values. Fixed list_keys to handle escaped characters. Removed doctests which required interactive entry of passwords. The current version passes all tests on Windows (CPython 2.4, 2.5, 2.6, 3.1, 2.7 and Jython 2.5.1) and Ubuntu (CPython 2.4, 2.5, 2.6, 2.7, 3.0, 3.1, 3.2). On Windows, GnuPG 1.4.11 has been used for the tests. Tests also pass under CPython 2.5 and CPython 2.6 on OS X. What Does It Do? ================ The gnupg module allows Python programs to make use of the functionality provided by the Gnu Privacy Guard (abbreviated GPG or GnuPG). Using this module, Python programs can encrypt and decrypt data, digitally sign documents and verify digital signatures, manage (generate, list and delete) encryption keys, using proven Public Key Infrastructure (PKI) encryption technology based on OpenPGP. This module is expected to be used with Python versions >= 2.4, as it makes use of the subprocess module which appeared in that version of Python. This module is a newer version derived from earlier work by Andrew Kuchling, Richard Jones and Steve Traugott. A test suite using unittest is included with the source distribution. Simple usage: >>> import gnupg >>> gpg = gnupg.GPG(gnupghome='/path/to/keyring/directory') >>> gpg.list_keys() [{ ... 'fingerprint': 'F819EE7705497D73E3CCEE65197D5DAC68F1AAB2', 'keyid': '197D5DAC68F1AAB2', 'length': '1024', 'type': 'pub', 'uids': ['', 'Gary Gross (A test user) ']}, { ... 'fingerprint': '37F24DD4B918CC264D4F31D60C5FEFA7A921FC4A', 'keyid': '0C5FEFA7A921FC4A', 'length': '1024', ... 'uids': ['', 'Danny Davis (A test user) ']}] >>> encrypted = gpg.encrypt("Hello, world!", ['0C5FEFA7A921FC4A']) >>> str(encrypted) '-----BEGIN PGP MESSAGE-----\nVersion: GnuPG v1.4.9 (GNU/Linux)\n \nhQIOA/6NHMDTXUwcEAf ... -----END PGP MESSAGE-----\n' >>> decrypted = gpg.decrypt(str(encrypted), passphrase='secret') >>> str(decrypted) 'Hello, world!' >>> signed = gpg.sign("Goodbye, world!", passphrase='secret') >>> verified = gpg.verify(str(signed)) >>> print "Verified" if verified else "Not verified" 'Verified' For more information, visit http://code.google.com/p/python-gnupg/ - as always, your feedback is most welcome (especially bug reports, patches and suggestions for improvement). Enjoy! Cheers Vinay Sajip Red Dove Consultants Ltd.