--- id: python-gnupg version: "0.5.6" license: BSD license_treatment: permissive maintenance: active --- # python-gnupg — A wrapper for the Gnu Privacy Guard (GPG or GnuPG) License: permissive · Maintenance: active · Downloads: 17.6M/mo ## What it is and what it does python-gnupg is a wrapper around the GnuPG command-line tool that exposes its key management, encryption, decryption, signing, and verification capabilities to Python programs. It does not implement cryptography itself but delegates to an external GnuPG installation, making it a thin interface layer rather than a cryptographic library. The package is intended for developers who need to integrate GPG operations into Python applications—managing keys, encrypting sensitive data, or verifying signatures. It supports Python 2.7 and Python 3.6 through 3.14, has no external Python dependencies, and installs as a pure-Python wheel. Maintenance is active, with the repository last updated in August 2026. Use it for: - Encrypt sensitive configuration or credentials in Python applications without managing raw cryptographic primitives. - Automate GPG key operations (import, export, trust management) as part of deployment or key rotation workflows. - Verify GPG signatures on downloaded files or packages to confirm authenticity and integrity. - Sign documents or data programmatically to prove origin and non-repudiation in compliance workflows. - Build a Python-based key management interface that wraps GnuPG for team or organizational use. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides Python bindings to GnuPG for key management, encryption, decryption, signing, and signature verification operations. Yes, if you need to integrate GnuPG operations into Python code and have GnuPG already installed on your system. The package is mature, actively maintained, has no Python dependencies, and carries no known vulnerabilities. It is well-suited for automation, key management, and signature workflows. Not suitable if you need a pure-Python cryptographic library without external tool dependencies. ## Install pip install python-gnupg uv add python-gnupg poetry add python-gnupg ## Installing python-gnupg Before you install: Low friction installation with no runtime dependencies. Active maintenance as of 2026-08-09 with recent releases; the package has been stable since its 2013 inception and supports a wide range of Python versions from 2.7 through 3.14. License in practice: BSD license is permissive, allowing use in proprietary and open-source projects with minimal restrictions beyond attribution. Quickstart: import gnupg gpg = gnupg.GPG() encrypted_data = gpg.encrypt('hello world', recipients=['user@example.com']) print(encrypted_data.status) Requires GnuPG (gpg or gpg2) to be installed and available on the system PATH; the Python module is a wrapper around the command-line tool. Verify before relying: - Whether the package works with GnuPG 2.x versions and what compatibility issues, if any, exist with modern GPG releases. - Performance characteristics when handling large keys or bulk encryption/decryption operations. ## Package facts - License: BSD (permissive) - Python support: unspecified - Install friction: low - Maintenance: active - Downloads: 17.6M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags gnupg python wrapper, gpg encryption decryption, python cryptography signing, gnu privacy guard python, pgp key management python, gpg signature verification, python gnupg bindings, gpg-wrapper, key-management, system-integration [View on SkillFed](https://skillfed.io/packages/python-gnupg) · [View on PyPI](https://pypi.org/project/python-gnupg/)