NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #1009 most downloaded on PyPI
A wrapper for the Gnu Privacy Guard (GPG or GnuPG)
Last release 5 days ago
29 Sep 2026
Ships fairly regularly
a new release about every 7 months
Some releases are documented
notes for 11 of 34 stable releases
1 version withdrawn
withdrawn after publishing
13 years old
35 releases · first in 2013
This is an enhancement and bug-fix release, and all users are encouraged to upgrade.
This is an enhancement and bug-fix release, and all users are encouraged to upgrade.
Brief summary:
Add quick_sign_key function, add hidden recipients to encrypt_file, and allow paths in verify_file. Thanks to Zach Szczesniak for the patch.
Fix https://github.com/vsajip/python-gnupg/issues/277: Allow passing an encoding to the GPG initializer though a keyword parameter.
This release has been signed with my code signing key:
Vinay Sajip (CODE SIGNING KEY) <vinay_sajip at yahoo.co.uk>
Fingerprint: CA74 9061 914E AC13 8E66 EADB 9147 B477 339A 9B86
This is an enhancement and bug-fix release, and all users are encouraged to upgrade.
This is an enhancement and bug-fix release, and all users are encouraged to upgrade.
Brief summary:
Fix #261: Ensure capability, fingerprint and keygrip are added to subkey_info.
Set username in the result when Verify uses a signing key that has expired or been revoked. Thanks to Steven Galgano for the patch.
This release has been signed with my code signing key:
Vinay Sajip (CODE SIGNING KEY) <vinay_sajip at yahoo.co.uk> Fingerprint: CA74 9061 914E AC13 8E66 EADB 9147 B477 339A 9B86
One column per quarter.
This is an enhancement and bug-fix release, and all users are encouraged to upgrade.
Brief summary:
Fix #261: Ensure capability, fingerprint and keygrip are added to subkey_info.
Set username in the result when Verify uses a signing key that has expired or been revoked. Thanks to Steven Galgano for the patch.
This release has been signed with my code signing key:
Vinay Sajip (CODE SIGNING KEY) <vinay_sajip at yahoo.co.uk>
Fingerprint: CA74 9061 914E AC13 8E66 EADB 9147 B477 339A 9B86
This is an enhancement and bug-fix release, and all users are encouraged to upgrade.
This is an enhancement and bug-fix release, and all users are encouraged to upgrade.
Brief summary:
Fix #249: Handle fetching GPG version when not the first item in the configuration.
Fix #250: Capture uid info in a uid_map attribute of ScanKeys/ListKeys.
Fix #255: Improve handling of exceptions raised in background threads.
This release has been signed with my code signing key:
Vinay Sajip (CODE SIGNING KEY) <vinay_sajip at yahoo.co.uk> Fingerprint: CA74 9061 914E AC13 8E66 EADB 9147 B477 339A 9B86
This is an enhancement and bug-fix release, and all users are encouraged to upgrade.
Brief summary:
Fix #249: Handle fetching GPG version when not the first item in the configuration.
Fix #250: Capture uid info in a uid_map attribute of ScanKeys/ListKeys.
Fix #255: Improve handling of exceptions raised in background threads.
This release has been signed with my code signing key:
Vinay Sajip (CODE SIGNING KEY) <vinay_sajip at yahoo.co.uk>
Fingerprint: CA74 9061 914E AC13 8E66 EADB 9147 B477 339A 9B86
This is an enhancement and bug-fix release, and all users are encouraged to upgrade.
This is an enhancement and bug-fix release, and all users are encouraged to upgrade.
Brief summary:
on_data callable.This release has been signed with my code signing key:
Vinay Sajip (CODE SIGNING KEY) <vinay_sajip at yahoo.co.uk> Fingerprint: CA74 9061 914E AC13 8E66 EADB 9147 B477 339A 9B86
This is an enhancement and bug-fix release, and all users are encouraged to upgrade.
This is an enhancement and bug-fix release, and all users are encouraged to upgrade.
Brief summary:
Fix #117: Add WKD (Web Key Directory) support for auto-locating keys. Thanks to Myzel394 for the patch.
Fix #237: Ensure local variable is initialized even when an exception occurs.
Fix #239: Remove logging of decryption result.
This release has been signed with my code signing key:
Vinay Sajip (CODE SIGNING KEY) <vinay_sajip at yahoo.co.uk> Fingerprint: CA74 9061 914E AC13 8E66 EADB 9147 B477 339A 9B86
This is an enhancement and bug-fix release, and all users are encouraged to upgrade.
This is an enhancement and bug-fix release, and all users are encouraged to upgrade.
Brief summary:
Fix #228: Clarify documentation for encryption/decryption.
Make I/O buffer size configurable via buffer_size attribute on a GPG instance.
This release has been signed with my code signing key:
Vinay Sajip (CODE SIGNING KEY) <vinay_sajip at yahoo.co.uk> Fingerprint: CA74 9061 914E AC13 8E66 EADB 9147 B477 339A 9B86
Nothing published for this version
Fix #206: Remove deprecated --always-trust in favour of --trust-model always
This is an enhancement and bug-fix release, and all users are encouraged to upgrade.
Brief summary:
Added TRUST_EXPIRED to trust_keys. Thanks to Leif Liddy for the patch.
Fix #206: Remove deprecated --always-trust in favour of --trust-model always
Fix #208: Add status_detail attribute to result objects which is populated when
the status is 'invalid recipient' (encryption/decryption) or 'invalid signer'
(signing). This attribute will be set when the result object's status attribute is
set to invalid recipient and will contain more information about the failure in the
form of reason:ident where reason is a text description of the reason, and
ident identifies the recipient key.
Add scan_keys_mem() function to scan keys in a string. Thanks to Sky Moore
for the patch.
Fix #214: Handle multiple signatures when one of them is invalid or unverified.
A problems attribute was added which holds problems reported by gpg
during verification. This is a list of dictionaries, one for each reported
problem. Each dictionary will have status and keyid keys indicating
the problem and the corresponding key; other information in the dictionaries
will be error specific.
Fix #217: Use machine-readable interface to query the gpg version. Thanks to Justus
Winter for the patch.
Added the ability to export keys to a file. Thanks to Leif Liddy for the patch.
This release has been signed with my code signing key:
Vinay Sajip (CODE SIGNING KEY) <vinay_sajip at yahoo.co.uk> Fingerprint: CA74 9061 914E AC13 8E66 EADB 9147 B477 339A 9B86
This is an enhancement and bug-fix release, and all users are encouraged to upgrade.
This is an enhancement and bug-fix release, and all users are encouraged to upgrade.
Brief summary:
Fixed #181: Added the ability to pass file paths to encrypt_file, decrypt_file, sign_file, verify_file, get_recipients_file and added import_keys_file.
Fixed #183: Handle FAILURE and UNEXPECTED conditions correctly. Thanks to sebbASF for the patch.
Fixed #185: Handle VALIDSIG arguments more robustly.
Fixed #188: Remove handling of DECRYPTION_FAILED from Verify code, as not required there. Thanks to sebbASF for the patch.
Fixed #190: Handle KEY_CREATED more robustly.
Fixed #191: Handle NODATA messages during verification.
Fixed #196: Don't log chunk data by default, as it could contain sensitive information (during decryption, for example).
Added the ability to pass an environment to the gpg executable. Thanks to Edvard Rejthar for the patch.
This release [2] has been signed with my code signing key:
Vinay Sajip (CODE SIGNING KEY) <vinay_sajip at yahoo.co.uk> Fingerprint: CA74 9061 914E AC13 8E66 EADB 9147 B477 339A 9B86
This is an enhancement and bug-fix release, and all users are encouraged to upgrade.
This is an enhancement and bug-fix release, and all users are encouraged to upgrade.
Brief summary:
Fixed #161: Added a status attribute to the returned object from gen_key() which
is set to 'ok' if a key was successfully created, or 'key not created' if that
was reported by gpg, or None in any other case.
Fixed #164: Provided the ability to add subkeys. Thanks to Daniel Kilimnik for the feature request and patch.
Fixed #166: Added keygrip values to the information collected when keys are listed. Thanks to Daniel Kilimnik for the feature request and patch.
Fixed #173: Added extra_args keyword argument to send_keys(), recv_keys() and search_keys() to allow
passing options relating to key servers.
The files for this release have been signed with my code signing key:
Vinay Sajip (CODE SIGNING KEY) <vinay_sajip at yahoo.co.uk> Fingerprint: CA74 9061 914E AC13 8E66 EADB 9147 B477 339A 9B86
This is an enhancement and bug-fix release, and all users are encouraged to upgrade.
This is an enhancement and bug-fix release, and all users are encouraged to upgrade.
Brief summary:
Fixed #147: Return gpg's return code in all result instances.
Fixed #152: Add check for invalid file objects.
Fixed #157: Provide more useful status message when a secret key is absent.
Fixed #158: Added a get_recipients() API to find the recipients of an encrypted message without decrypting it.
The files for this release have been signed with my code signing key:
Vinay Sajip (CODE SIGNING KEY) <vinay_sajip at yahoo.co.uk> Fingerprint: CA74 9061 914E AC13 8E66 EADB 9147 B477 339A 9B86
Make final changes for 0.4.7.
Make final changes for 0.4.7.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →