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


Groups > comp.lang.python.announce > #84

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

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!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.02; 'subject:ANN': 0.02; 'subject:Python': 0.04; 'subject:module': 0.04; 'ubuntu': 0.04; 'python.': 0.05; '2.7': 0.05; 'passes': 0.05; '(especially': 0.07; 'subject:version': 0.07; 'unittest': 0.07; 'python': 0.07; '3.0,': 0.09; 'davis': 0.09; 'derived': 0.09; 'jones': 0.09; 'keys,': 0.09; 'release.': 0.09; 'skip:\\ 20': 0.09; 'subprocess': 0.09; 'files.': 0.10; 'url:code': 0.11; '>>>': 0.12; 'skip:[ 20': 0.12; '-----end': 0.16; '2.6,': 0.16; 'from:addr:vinay_sajip': 0.16; 'gnupg': 0.16; 'guard': 0.16; 'jython': 0.16; 'pgp': 0.16; 'released.': 0.16; 'sajip': 0.16; 'symmetric': 0.16; 'v1.4.9': 0.16; 'vinay': 0.16; 'versions': 0.18; 'always,': 0.19; 'bytes': 0.19; 'code': 0.22; '"not': 0.23; 'keys': 0.23; 'module,': 0.23; "skip:' 40": 0.23; 'tests.': 0.23; 'version': 0.25; 'tests': 0.26; 'windows': 0.26; 'instead': 0.26; 'steve': 0.26; 'signed': 0.27; 'reports,': 0.29; 'unicode': 0.29; 'up.': 0.30; 'list': 0.30; '2.5,': 0.31; 'skip:g 40': 0.31; 'wraps': 0.31; 'does': 0.31; 'data,': 0.31; "skip:' 10": 0.32; 'import': 0.32; 'project': 0.32; 'source': 0.32; '...': 0.32; 'minor': 0.33; 'richard': 0.33; 'skip:= 10': 0.33; 'module': 0.33; 'test': 0.33; 'using': 0.34; 'header:X-Complaints-To:1': 0.34; 'print': 0.35; 'header:User- Agent:1': 0.35; 'do?': 0.35; 'gnu': 0.35; 'else': 0.37; 'received:209.85': 0.37; 'andrew': 0.38; 'received:google.com': 0.38; 'files': 0.38; 'url:google': 0.38; 'sign': 0.38; 'used': 0.38; 'current': 0.38; 'earlier': 0.39; 'subject: (': 0.39; 'received:209': 0.39; 'header:Mime-Version:1': 0.39; 'allows': 0.40; 'messages': 0.40; 'simple': 0.60; 'documents': 0.60; 'to:addr:comp-lang-python-announce': 0.61; 'information,': 0.63; 'url:p': 0.63; 'website': 0.66; 'visit': 0.67; 'receive': 0.68; 'encrypted': 0.68; 'encryption': 0.68; 'received:130': 0.69; 'privacy': 0.73; 'to:addr:moderators.isc.org': 0.75; 'received:130.133': 0.75; 'received:130.133.4': 0.75; 'received:130.133.4.7': 0.75; 'received:individual.net': 0.75; 'received:moderators.individual.net': 0.75; '3.1,': 0.84; 'user)': 0.84; 'appeared': 0.91; 'enhancement': 0.95
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.announce
Subject ANN: A new version (0.2.7) of the Python module which wraps GnuPG has been released.
Date Sun, 10 Apr 2011 08:52:02 -0700 (PDT)
Organization http://groups.google.com
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Complaints-To groups-abuse@google.com
Injection-Info cu4g2000vbb.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-Mailman-Approved-At Mon, 11 Apr 2011 02:19:20 +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.205.1302481161.9059.python-announce-list@python.org> (permalink)
Lines 78
NNTP-Posting-Host 82.94.164.166
X-Trace 1302481162 news.xs4all.nl 81484 [::ffff:82.94.164.166]:39183
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python.announce:84

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 enhancement and 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.
The ability to use symmetric encryption.
The ability to receive keys from keyservers.
The ability to use specific keyring files instead of the default
keyring files.
Internally, the code to handle Unicode and bytes has been tidied up.

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.gross@gamma.com>']},
 {
  ...
  'fingerprint': '37F24DD4B918CC264D4F31D60C5FEFA7A921FC4A',
  'keyid': '0C5FEFA7A921FC4A',
  'length': '1024',
  ...
  'uids': ['', 'Danny Davis (A test user) <danny.davis@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.announce | Previous | Next | Find similar | Unroll thread


Thread

ANN: A new version (0.2.7) of the Python module which wraps GnuPG has been released. Vinay Sajip <vinay_sajip@yahoo.co.uk> - 2011-04-10 08:52 -0700

csiph-web