gpgme/lang/python
Justus Winter 2ae847c027 python: Implement data callbacks.
* lang/python/gpgme.i (object_to_gpgme_t): Set exception on error.
* lang/python/helpers.c (pyDataReadCb): New function.
(pyDataWriteCb): Likewise.
(pyDataSeekCb): Likewise.
(pyDataReleaseCb): Likewise.
(pygpgme_data_new_from_cbs): Likewise.
* lang/python/helpers.h (pygpgme_data_new_from_cbs): New prototype.
* lang/python/pyme/core.py (Data.__init__): Fix docstring, fix read
callbacks.
(Data.__del__): Fix read callbacks.
(Data._free_readcb): Drop function.
(Data._free_datacbs): New function.
(Data.new_from_cbs): Fix setting the callbacks.
(Data.write): Raise stashed exceptions.
(Data.read): Likewise.
* lang/python/tests/t-callbacks.py: Test new functionality.
* lang/python/tests/t-data.py: Likewise.

Signed-off-by: Justus Winter <justus@gnupg.org>
2016-05-27 14:04:28 +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: Implement data callbacks. 2016-05-27 14:04:28 +02:00
tests python: Implement data callbacks. 2016-05-27 14:04:28 +02:00
gpgme-h-clean.py python: Rename bindings. 2016-05-10 13:19:26 +02:00
gpgme.i python: Implement data callbacks. 2016-05-27 14:04:28 +02:00
helpers.c python: Implement data callbacks. 2016-05-27 14:04:28 +02:00
helpers.h python: Implement data callbacks. 2016-05-27 14:04:28 +02:00
INSTALL python: Rename bindings. 2016-05-10 13:19:26 +02:00
Makefile.am python: Make all GnuPG errors available. 2016-05-24 18:00:16 +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/