--- id: pysequoia version: "0.1.34" license: Apache-2.0 license_treatment: permissive maintenance: active --- # pysequoia — Provides OpenPGP facilities using Sequoia-PGP library License: permissive · Maintenance: active · Downloads: 116.4K/mo ## What it is and what it does PySequoia is a Python binding to the Sequoia PGP library that enables OpenPGP operations—signing, verification, encryption, and decryption—using the IETF standardized protocol. It exposes high-level functions for working with PGP certificates and signatures, supporting both in-memory and file-based workflows. The library handles armored output formats and can work with password-protected keys. The package is implemented as a Rust extension compiled to native wheels for multiple architectures and operating systems. It has no Python runtime dependencies, making it lightweight to deploy. The API is documented as a work-in-progress and not yet stable, so breaking changes may occur between minor versions. Use it for: - Sign and verify documents or messages in applications that need to prove authorship or detect tampering. - Encrypt sensitive data to one or more PGP recipients without relying on external GnuPG binaries. - Decrypt PGP-encrypted files or messages received from users or external systems. - Build secure communication pipelines that integrate OpenPGP operations directly into Python workflows. - Verify detached signatures against large files without loading the entire file into memory. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. PySequoia provides OpenPGP encryption, decryption, signing, and verification operations in Python by wrapping the Sequoia PGP library, following the IETF standardized protocol. Yes, if you need OpenPGP operations in Python and can tolerate the API stability caveat. The library is actively maintained, has no Python dependencies, covers most common platforms with prebuilt wheels, and carries no known vulnerabilities. The permissive Apache-2.0 license is unrestrictive. Install friction is moderate but manageable for standard architectures. ## Install pip install pysequoia uv add pysequoia poetry add pysequoia ## Installing pysequoia Before you install: Medium install friction due to compiled Rust components; prebuilt wheels cover common architectures (x86_64, ARM, PowerPC, s390x on Linux/macOS/Windows), but unsupported combinations require a Rust toolchain. Actively maintained with recent releases. License in practice: Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects that can comply with attribution requirements. Quickstart: pip install pysequoia from pysequoia import Cert, sign, verify # Load a signing key and sign data cert = Cert.from_file("key.asc") signed = sign(cert.secrets.signer(), b"data to sign") # Verify signed data result = verify(signed, lambda key_ids: [cert]) print(result.bytes) Requires Python 3.7+. Prebuilt wheels available for common platforms; other architectures need Rust toolchain installed. Verify before relying: - Whether the API stability warning ('not stable') affects production use or is limited to minor breaking changes. - Performance characteristics for large file encryption/decryption relative to other OpenPGP libraries. - Compatibility with keys generated by GnuPG or other OpenPGP implementations beyond the documented test fixtures. ## Package facts - License: Apache-2.0 (permissive) - Python support: supports_current - Install friction: medium - Maintenance: active - Downloads: 116.4K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags openpgp encryption python, pgp signing verification, gnupg alternative library, sequoia pgp wrapper, digital signatures python, pgp decrypt encrypt, openssl pgp alternative, cryptography, pgp-openpgp, rust-binding [View on SkillFed](https://skillfed.io/packages/pysequoia) · [View on PyPI](https://pypi.org/project/pysequoia/)