Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #22383

ANN: A new version (0.2.9) of the Python module which wraps GnuPG has been released.

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <news@google.com>
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; 'bug': 0.03; 'from:addr:yahoo.co.uk': 0.05; 'subject:ANN': 0.05; 'passes': 0.07; 'shipped': 0.07; 'subject:module': 0.07; 'tests.': 0.07; 'subject:Python': 0.07; '(especially': 0.09; 'module,': 0.09; 'pgp': 0.09; 'release.': 0.09; 'subject:version': 0.09; 'unittest': 0.09; 'python': 0.11; 'cheers': 0.11; 'python.': 0.12; '2.7': 0.13; 'random': 0.13; 'print': 0.15; 'skip:= 10': 0.15; ' -----end': 0.16; '3.0,': 0.16; 'dove': 0.16; 'encryption': 0.16; 'gnupg': 0.16; 'gpg': 0.16; 'keys,': 0.16; 'released.': 0.16; 'skip:\\ 20': 0.16; 'subject: \n ': 0.16; 'subject:which': 0.16; 'subprocess': 0.16; 'v1.4.9': 0.16; 'steve': 0.16; 'windows': 0.17; 'reports,': 0.18; 'versions': 0.18; 'module': 0.18; 'ubuntu': 0.22; 'header:User-Agent:1': 0.23; 'import': 0.24; 'test': 0.24; '>>>': 0.24; 'signed': 0.24; 'url:code': 0.27; 'needed.': 0.27; 'skip:[ 20': 0.27; 'testing': 0.28; 'allows': 0.29; 'patches': 0.29; 'skip:g 40': 0.29; 'file': 0.29; 'tests': 0.30; 'source': 0.31; 'received:209.85': 0.32; 'ltd.': 0.32; 'received:google.com': 0.32; 'earlier': 0.32; 'subject: (': 0.33; "skip:' 10": 0.35; 'subject:new': 0.35; 'received:209': 0.35; 'andrew': 0.35; 'header:Received:9': 0.35; 'richard': 0.35; 'subject:) ': 0.35; 'version': 0.36; 'header:X-Complaints-To:1': 0.36; 'project': 0.36; 'but': 0.36; 'does': 0.36; 'list': 0.37; 'subject:the': 0.37; 'data': 0.38; 'included': 0.38; 'your': 0.60; 'visit': 0.61; 'received:10.192.19': 0.63; 'received:10.192.19.13': 0.63; 'received:yws13.prod.google.com': 0.63; 'better': 0.63; 'most': 0.63; 'url:p': 0.63; 'more': 0.63; 'privacy': 0.64; 'programs': 0.65; 'information,': 0.65; 'do?': 0.66; 'summary:': 0.66; 'verified': 0.66; 'subject:has': 0.67; 'to:addr:comp-lang-python-announce': 0.70; 'subject:been': 0.72; 'to:addr:moderators.isc.org': 0.77; '2.5,': 0.84; '3.1,': 0.84; 'appeared': 0.84; 'received:209.85.216.197': 0.84
Delivered-To comp-lang-python-announce@moderators.isc.org
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-authentication-warning:to:path:from:newsgroups:subject:date :organization:lines:message-id:nntp-posting-host:mime-version :x-trace:x-complaints-to:nntp-posting-date:complaints-to :injection-info:user-agent:x-http-useragent:x-gm-message-state :content-type; bh=/yYwgbtSQOzCIZhTQFCqpqgCZsosO8wnECk+V0Rc66M=; b=k+xLm92a7zZJMhaoko3uG2amTNE5xrATdKCTLGx2EdyRlIFvw7lLYCzSmvT4si+Mdk +HR33mWSzQkMK/8LhSxsgCPToTsJiqnQYWeobEbXA4R4BKMuHNV4zRM+d0aXe36dxsu7 QoVIfARYP9NMtWm8tuGpmJzqbV41poeZPYpJlUiKf3hrF7tXD2Z8ZkaUIx/YvvX/mGYH hSBDO3pve1zO5otUPM5KRTsAJyiHVi1EG07ld4KsGmzua6xAkZfQMR/tTNzD9HpcaDrz g5ayeIquSQPfugbOc6q1tJZMsMLWpM2NdG4s2xBCweEei2i/Givk/4/nIca7ezp49InV fIaA==
X-Authentication-Warning yws13.prod.google.com: news set sender to news@google.com using -f
To comp-lang-python-announce@moderators.isc.org
From Vinay Sajip <vinay_sajip@yahoo.co.uk>
Newsgroups comp.lang.python, comp.lang.python.announce
Subject ANN: A new version (0.2.9) of the Python module which wraps GnuPG has been released.
Date Thu, 29 Mar 2012 16:01:15 -0700 (PDT)
Organization http://groups.google.com
Mime-Version 1.0
Complaints-To groups-abuse@google.com
Injection-Info i18g2000vbx.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-GB; rv:1.9.2.11) Gecko/20101013 Ubuntu/9.04 (jaunty) Firefox/3.6.11,gzip(gfe)
X-Gm-Message-State ALoCoQk7QxQN/Cu2MKWujoKqGHpL79IQ0YThnigUK4OP8tsiU28CykL1eCagmKjCfz62jvuBL/KAzq2wDb6tBm8cJ/+iQLbg4PrNawsFFojtZSrpPfLDpspjwnO/+BbElLAPH6u+JkoNByfm4eFUULh0CkkQczIOCTsy1/JJn9HTkCybLlagU8Y=
Content-Type text/plain; charset=ISO-8859-1
X-Mailman-Approved-At Fri, 30 Mar 2012 16:47:40 +0200
X-BeenThere python-announce-list@python.org
X-Mailman-Version 2.1.12
Precedence list
Reply-To python-list@python.org
List-Id Announcement-only list for the Python programming language <python-announce-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-announce-list>
List-Post <mailto:python-announce-list@python.org>
List-Help <mailto:python-announce-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=subscribe>
Approved python-announce-list@python.org
Message-ID <mailman.1148.1333118860.3037.python-announce-list@python.org> (permalink)
Lines 75
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1333118861 news.xs4all.nl 6865 [2001:888:2000:d::a6]:38802
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:22383 comp.lang.python.announce:563

Cross-posted to 2 groups.

Show key headers only | View raw


A new version of the Python module which wraps GnuPG has been
released.

What Changed?
=============
This is a minor bug-fix release. See the project website (
http://code.google.com/p/python-gnupg/ ) for more information.
Summary:

Better support for status messages from GnuPG.
A random data file used in testing is no longer shipped with the
source distribution, but created by the test suite if needed.

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.

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) <gary.gr...@gamma.com>']},
 {
  ...
  'fingerprint': '37F24DD4B918CC264D4F31D60C5FEFA7A921FC4A',
  'keyid': '0C5FEFA7A921FC4A',
  'length': '1024',
  ...
  'uids': ['', 'Danny Davis (A test user) <danny.da...@delta.com>']}]
>>> 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.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

ANN: A new version (0.2.9) of the Python module which wraps GnuPG has been released. Vinay Sajip <vinay_sajip@yahoo.co.uk> - 2012-03-29 16:01 -0700

csiph-web