gpgme/lang/python
Justus Winter d90857a08c python: Robust exception handling in callbacks.
* lang/python/helpers.c (pygpgme_stash_callback_exception): New
function.
(pygpgme_raise_callback_exception): Likewise.
(pyPassphraseCb): Stash python errors.
* lang/python/helpers.h (pygpgme_raise_callback_exception): New
prototype.
* lang/python/pyme/core.py ({Context,Data}.__init__): Move common
initialization to superclass.
(Context.set_progress_cb): Hand in 'self'.
* lang/python/pyme/util.py (GpgmeWrapper.__init__): New function.
(GpgmeWrapper.__getattr__): Raise stashed exceptions.
* lang/python/tests/Makefile.am (py_tests): Add new test.
* lang/python/tests/t-callbacks.py: New file.

Signed-off-by: Justus Winter <justus@gnupg.org>
2016-05-19 15:58:45 +02:00
..
docs Merge branch 'justus/pyme3' 2016-05-17 15:10:28 +02:00
examples python: Clean up examples. 2016-05-17 14:22:22 +02:00
pyme python: Robust exception handling in callbacks. 2016-05-19 15:58:45 +02:00
tests python: Robust exception handling in callbacks. 2016-05-19 15:58:45 +02:00
gpgme-h-clean.py python: Rename bindings. 2016-05-10 13:19:26 +02:00
gpgme.i Merge branch 'justus/pyme3' 2016-05-17 15:10:28 +02:00
helpers.c python: Robust exception handling in callbacks. 2016-05-19 15:58:45 +02:00
helpers.h python: Robust exception handling in callbacks. 2016-05-19 15:58:45 +02:00
INSTALL python: Rename bindings. 2016-05-10 13:19:26 +02:00
Makefile.am python: Various fixes. 2016-05-18 15:37:38 +02:00
MANIFEST.in Merge branch 'justus/pyme3' 2016-05-17 15:10:28 +02:00
README.rst python: Delete trailing whitespace. 2016-05-10 13:30:30 +02:00
setup.py Merge branch 'justus/pyme3' 2016-05-17 15:10:28 +02:00

====
PyME
====

PyMe is a python interface to the `GPGME
<https://www.gnupg.org/related_software/gpgme/>`_ library.

PyMe's development model is a `GPGME
<https://www.gnupg.org/related_software/gpgme/>`_ + Python 3 + `SWIG
<http://www.swig.org/>`_ combination which means that most of the functions and
types are converted from C into Python 3 automatically by SWIG. In short, to be
able to use PyMe you need to be `familiar with GPGME
<https://www.gnupg.org/documentation/manuals/gpgme/>`_.


-------
Authors
-------

* John Goerzen, `Complete.Org <http://www.complete.org/JohnGoerzen>`_, 2002.
* Igor Belyi, `PyME 0.8 <http://pyme.sourceforge.net/>`_, 2004-2008.
* Martin Albrecht, `PyME 0.9+ <https://bitbucket.org/malb/pyme>`_, 2014 to present.
* Ben McGinnes, `PyME Python 3 Port <https://git.gnupg.org/gpgme.git/lang/py3-pyme>`_, 2015 to present.


------------
Mailing List
------------

PyME's support and development `mailing list
<http://sourceforge.net/p/pyme/mailman/pyme-help/>`_ is hosted by sourceforge.


-------
History
-------

* 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/