gpgme/lang/python
Justus Winter f526d0e22e
python: Make 'get_key' more idiomatic.
* lang/python/pyme/core.py (Context.get_key): Raise errors.KeyNotFound
if the key is not found.  This error is both a KeyError for idiomatic
error handling as well as a GPGMEError so we don't break existing
code.
* lang/python/pyme/errors.py (KeyNotFound): New class.
* lang/python/tests/support.py (no_such_key): New variable.
* lang/python/tests/t-keylist.py: Test the new behavior.

Signed-off-by: Justus Winter <justus@g10code.com>
2016-10-13 13:19:49 +02:00
..
docs Merge branch 'justus/pyme3' 2016-05-17 15:10:28 +02:00
examples python: Return public keys by default. 2016-10-13 13:19:47 +02:00
pyme python: Make 'get_key' more idiomatic. 2016-10-13 13:19:49 +02:00
tests python: Make 'get_key' more idiomatic. 2016-10-13 13:19:49 +02:00
gpgme-h-clean.py core: Document the version a function has been deprecated. 2016-09-16 16:00:27 +02:00
gpgme.i python: Link 'data.h' and 'config.h' into the builddir. 2016-09-30 14:47:26 +02:00
helpers.c python: Include 'config.h'. 2016-09-26 16:54:57 +02:00
helpers.h python: Include 'config.h'. 2016-09-26 16:54:57 +02:00
Makefile.am python: Link 'data.h' and 'config.h' into the builddir. 2016-09-30 14:47:26 +02:00
MANIFEST.in python: Fix out-of-tree build. 2016-07-28 18:14:08 +02:00
private.h python: Adapt to 'gpgme_op_interact'. 2016-09-16 14:56:29 +02:00
README python: Improve metadata and READMEs. 2016-09-19 12:49:14 +02:00
setup.py.in python: Link 'data.h' and 'config.h' into the builddir. 2016-09-30 14:47:26 +02:00

PyME - GPGME for Python                                      -*- org -*-
=======================

PyME is a python interface to the GPGME library:
https://www.gnupg.org/related_software/gpgme/

PyME offers two interfaces, one is a high-level, curated, and
idiomatic interface that is implemented as a shim on top of the
low-level interface automatically created using SWIG.

This way we make simple things easy, while still providing the entire
functionality of the underlying library.

* Mailing List

For general discussion and help see the gnupg-users mailing list:
https://lists.gnupg.org/mailman/listinfo/gnupg-users

For development see the gnupg-devel mailing list:
https://lists.gnupg.org/mailman/listinfo/gnupg-devel

* Bugs

Please report bugs using our bug tracker using the category 'gpgme',
and topic 'python':
https://bugs.gnupg.org/gnupg/

* Authors

PyME has been created by John Goerzen, and maintained, developed, and
cherished by Igor Belyi, Martin Albrecht, Ben McGinnes, and everyone
who contributed to it in any way.

In 2016 we merged a port of PyME to into the GPGME repository, and
development will continue there.  Please see the VCS history for the
list of contributors, and if you do find bugs, or want to contribute,
please get in touch and help maintain PyME.

Please see the section 'History' further down this document for
references to previous versions.

* History

 - The bindings have been merged into the GPGME repository in 2016.

 - The latest version of PyME for Python 3.2 and above (as of
   May, 2015) is v0.9.1.
   https://git.gnupg.org/gpgme.git/lang/py3-pyme

 - The latest version of PyME for Python 2.6 and 2.7 (as of this
   writing) is v0.9.0.  https://bitbucket.org/malb/pyme

 - A previous version of PyME v0.8.0 can be found on sourceforge:
   http://pyme.sourceforge.net/

 - A previous version of PyME v0.5.1 which works with GPGME v0.3.15
   can be found on John Goerzen's PyME page:
   http://quux.org/devel/pyme/
   http://www.complete.org/JohnGoerzen