PGPy
PGPy is an open-source Python library that implements the OpenPGP standard as defined by RFC 4880. It allows developers to create, parse, sign, encrypt, decrypt, and verify OpenPGP messages directly within Python programs without requiring the GnuPG binary. The library is written in pure Python and is distributed under the BSD-3-Clause license.
The project was started to fill a gap in the Python ecosystem; earlier attempts such as pgpy2
Key features include support for key generation, algorithm negotiation, keyrings, and a comprehensive test suite that
Typical usage follows the pattern: load or generate a key with `PGPKey.new()`, create an `PGPMessage`, then encrypt
PGPy is actively maintained by a small core team and community contributors. Its documentation, extensive example