--- id: pgpy13 version: "0.6.1rc1" license: BSD-3-Clause license_treatment: permissive maintenance: aging --- # PGPy13 — Pretty Good Privacy for Python (temporary fork for py3.13 compatability) License: permissive · Maintenance: aging · Downloads: 139.2K/mo ## What it is and what it does PGPy13 is a temporary fork of PGPy that adds Python 3.13 compatibility and updates cryptography library requirements to v38 or higher. It implements the OpenPGP standard (RFC 4880) in pure Python, allowing you to load, create, and verify PGP keys and signatures in both ASCII-armored and binary formats, and to encrypt or decrypt messages using RSA and ECDH algorithms. The fork was created because the upstream project broke under Python 3.13 due to removal of the imghdr library from the standard library. Support for Python versions below 3.9 has been dropped. The maintainer explicitly states this is temporary and will be discontinued once the upstream project resolves its issues and releases a new version. Use it for: - Encrypt and decrypt messages in Python applications that need to interoperate with PGP/GPG systems. - Create and verify digital signatures on documents or data using RSA, DSA, or ECDSA algorithms. - Load and parse existing PGP public and private keys from files or ASCII-armored text. - Implement OpenPGP-compliant cryptographic workflows in Python 3.9+ environments without external GPG binaries. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. PGPy13 is a Python library for OpenPGP encryption, decryption, and digital signature operations conforming to RFC 4880, with support for RSA, DSA, and ECDSA signatures and RSA/ECDH encryption. Yes, but with caution. PGPy13 is suitable for Python 3.13 projects that need OpenPGP functionality. However, be aware this is a temporary fork with minimal ongoing support—the maintainer will not accept pull requests or bug reports. If you can use the upstream project or have flexibility to wait for its next release, prefer that instead. ## Install pip install pgpy13 uv add pgpy13 poetry add pgpy13 ## Installing PGPy13 Before you install: Low install friction with only two runtime dependencies. However, this is an aging fork with minimal maintenance activity (4 repository stars, last commit 2025-03-01). The fork exists solely to patch Python 3.13 compatibility and cryptography v38 or higher requirements; upstream remains unmaintained. License in practice: BSD-3-Clause is permissive and imposes minimal restrictions on use or redistribution. You may use this package in commercial or proprietary projects with only the requirement to include the license notice. Quickstart: pip install PGPy13 from pgpy import PGPKey key = PGPKey.from_file('key.asc') Requires Python >= 3.9; cryptography v38 or higher and pyasn1 must be installed. Verify before relying: - Whether upstream issue #462 has been resolved and a new official release issued, making this fork obsolete. - Real-world security audit status of the underlying codebase for cryptographic correctness. - Whether the fork maintainer will continue to patch for future Python versions. ## Package facts - License: BSD-3-Clause (permissive) - Python support: supports_current - Install friction: low - Maintenance: aging - Downloads: 139.2K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags OpenPGP encryption Python, PGP signature verification, GPG compatible library, RSA ECDSA signing, message encryption decryption, pretty good privacy Python, cryptographic key management, pgp-openpgp, cryptography-fork, py3.13-compat [View on SkillFed](https://skillfed.io/packages/pgpy13) · [View on PyPI](https://pypi.org/project/pgpy13/)