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


Groups > comp.lang.python > #65557

ANN: A new version (0.3.6) of python-gnupg has been released.

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <vinay_sajip@yahoo.co.uk>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'from:addr:yahoo.co.uk': 0.04; 'skip:[ 20': 0.04; '(especially': 0.07; 'memory.': 0.07; 'skip:\\ 20': 0.07; 'subject:ANN': 0.07; 'tests.': 0.07; 'steve': 0.09; '3.0,': 0.09; 'derived': 0.09; 'keys,': 0.09; 'pgp': 0.09; 'release,': 0.09; 'subject:version': 0.09; 'unittest': 0.09; 'windows,': 0.09; 'python': 0.11; 'bug': 0.12; 'cheers': 0.12; '2.7': 0.14; 'random': 0.14; 'windows': 0.15; '-----end': 0.16; 'dove': 0.16; 'gnupg': 0.16; 'gpg': 0.16; 'keys.': 0.16; 'log.': 0.16; 'patches': 0.16; 'permissions.': 0.16; 'preserve': 0.16; 'ths': 0.16; 'v1.4.9': 0.16; 'wraps': 0.16; 'subject:python': 0.16; 'skip:= 10': 0.16; 'fix': 0.17; 'code.': 0.18; 'module': 0.19; 'reports,': 0.19; 'skip:g 40': 0.19; '>>>': 0.22; 'import': 0.22; 'shell': 0.22; 'tests': 0.22; 'cc:addr:python.org': 0.22; 'print': 0.22; 'module,': 0.24; 'passes': 0.24; 'earlier': 0.24; 'versions': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'source': 0.25; 'options': 0.25; 'signed': 0.27; 'subject:) ': 0.29; 'url:code': 0.29; 'andrew': 0.30; 'characters': 0.30; 'newer': 0.30; 'included': 0.31; "skip:' 10": 0.31; 'enabled': 0.31; 'encouraged': 0.31; "skip:' 40": 0.31; 'allows': 0.31; 'file': 0.32; 'subject: (': 0.35; 'test': 0.35; 'but': 0.35; 'version': 0.36; 'data,': 0.36; 'ubuntu': 0.36; 'method': 0.36; 'list': 0.37; 'project': 0.37; 'expected': 0.38; 'feedback': 0.38; 'subject:new': 0.38; 'problems': 0.38; 'richard': 0.38; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'skip:p 20': 0.39; 'users': 0.40; 'deleting': 0.60; 'received:212.82': 0.60; 'most': 0.60; 'new': 0.61; 'privacy': 0.61; 'digital': 0.61; 'information,': 0.61; 'simple': 0.61; 'visit': 0.64; 'url:p': 0.64; 'more': 0.64; 'temporary': 0.65; 'verification': 0.83; '"not': 0.84; 'encrypted': 0.91; 'enhancement': 0.95
X-Yahoo-Newman-Property ymail-3
X-Yahoo-Newman-Id 757730.60566.bm@omp1017.mail.ir2.yahoo.com
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1391720039; bh=dZAzrr+OaomN6mbn5sXXd5iV+6hM5/T5zsKAsWMZn6g=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Subject:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding; b=oizm6gOPCt8dQNWBNQMDIgumA7N3EhwKhMiqBYG7Su/E+q/geNebdzIN0+aAVbO7VyjFoBsMdjkw8Ij71mIMnovvc74zclzWfuFDBwlsp7RHBEeDu4FeUrbpPOj3Hw/4LmW668ooksLCGaA21Fm2kvFUkT28WdcPdZnWH7/mY3E=
DomainKey-Signature a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Subject:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding; b=uva+oLIaUkahgHLk3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XMNCmluY2x1ZGUgc29tZSBzZWN1cml0eSBpbXByb3ZlbWVudHMsIHNvIGFsbCB1c2VycyBhcmUgZW5jb3VyYWdlZA0KdG8gdXBncmFkZS4gU2VlIHRoZSBwcm9qZWN0IHdlYnNpdGUgKCBodHRwOi8vY29kZS5nb29nbGUBMAEBAQE-
X-Mailer YahooMailClassic/402 YahooMailWebService/0.8.175.631
Date Thu, 6 Feb 2014 20:53:59 +0000 (GMT)
From Vinay Sajip <vinay_sajip@yahoo.co.uk>
Subject ANN: A new version (0.3.6) of python-gnupg has been released.
To python-list@python.org
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding quoted-printable
Cc python-announce-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.6459.1391720047.18130.python-list@python.org> (permalink)
Lines 82
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1391720047 news.xs4all.nl 2956 [2001:888:2000:d::a6]:46467
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:65557

Show key headers only | View raw


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

What Changed?
=============
This is an enhancement and bug-fix release, but the bug-fixes
include some security improvements, so all users are encouraged
to upgrade. See the project website ( http://code.google.com/p/python-gnupg/ )
for more information. Summary:

Enabled fast random tests on gpg as well as gpg2.
Avoided deleting temporary file to preserve its permissions.
Avoided writing passphrase to log.
Added export-minimal and armor options when exporting keys.
Added verify_data() method to allow verification of signatures in memory.
Regularised end-of-line characters in ths source code.
Rectified problems with earlier fix for shell injection.

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 | NextNext in thread | Find similar | Unroll thread


Thread

ANN: A new version (0.3.6) of python-gnupg has been released. Vinay Sajip <vinay_sajip@yahoo.co.uk> - 2014-02-06 20:53 +0000
  Re: ANN: A new version (0.3.6) of python-gnupg has been released. Asaf Las <roegltd@gmail.com> - 2014-02-06 13:39 -0800
  Re: ANN: A new version (0.3.6) of python-gnupg has been released. Piet van Oostrum <piet@vanoostrum.org> - 2014-02-07 00:40 +0100

csiph-web