https://github.com/jhenstridge/pygpgme
A Python module for working with OpenPGP messages
https://github.com/jhenstridge/pygpgme
gpg gpgme openpgp python
Last synced: 5 months ago
JSON representation
A Python module for working with OpenPGP messages
- Host: GitHub
- URL: https://github.com/jhenstridge/pygpgme
- Owner: jhenstridge
- License: lgpl-2.1
- Created: 2024-07-09T15:22:22.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2026-01-13T08:58:14.000Z (5 months ago)
- Last Synced: 2026-01-13T10:59:59.738Z (5 months ago)
- Topics: gpg, gpgme, openpgp, python
- Language: C
- Homepage: https://pypi.org/project/pygpgme/
- Size: 592 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS
- License: LICENSE.txt
Awesome Lists containing this project
README
A Python binding for the gpgme library, used to drive the gpg command
line program.
More information about gpgme can be found here:
http://www.gnupg.org/related_software/gpgme/
This binding stays fairly close to the C API with the following
exceptions:
* Memory management is not exposed to the user
* Functions like `gpgme_get_foo()`/`gpgme_set_foo()` are converted to
attribute access on gpgme.Context objects.
* Functions that take `gpgme_data_t` arguments take arbitrary Python
file-like objects. The `read()`, `write()`, `seek()` and `tell()`
methods may be used on the object.
* Non-zero `gpgme_error_t` return values are converted to
`gpgme.GpgmeError` exceptions.
* Only the synchronous versions of functions have been wrapped.
However, the Python global interpreter lock is dropped, so should
play nicely in multi-threaded Python programs.
* Function pairs like `gpgme_op_import()`/`gpgme_op_import_result()`
are combined into single method calls.
* The Python version of `gpgme_op_keylist()` returns an iterator over
the matched keys, rather than requiring the user to use a special
iteration function.
This library is licensed under the LGPL, the same license as the gpgme
library.