pem
PEM file parsing in Python.
Decision gist · record as of 2026-08-14
Yes, if you need straightforward PEM parsing with zero dependencies and your use case does not require ongoing maintenance or security updates. The library is stable and handles its narrow scope well, but the abandoned status (no releases since June 2023) means no fixes for future Python or certificate standard changes. Suitable for stable, long-lived applications that do not depend on active upstream support.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with no runtime dependencies.
- However, the package is marked as abandoned with no releases for 1150 days, which may affect long-term maintenance and security updates.
License · maintenance · safety
permissive license (permissive) — Licensed under MIT (permissive), allowing free use, modification, and distribution with minimal restrictions.
last release 2023-06-21 (1150 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,433,597 downloads/mo, #3,906 on PyPI
Alternatives
Verify before relying
import pem
certs = pem.parse_file("chain.pem")
print(str(certs[0]))- Whether the lack of updates since June 2023 affects compatibility with current Python or certificate standards.
- Whether Twisted integration helpers remain functional with current Twisted versions.
What it is and what it does
pem is a lightweight Python library for parsing and extracting individual certificates, keys, and certificate chains from PEM-formatted files. It handles the common problem of different servers expecting certificate components in different arrangements—some require separate files, others concatenated, others combined—by providing simple parsing that works across all scenarios.
The library contains no runtime dependencies and does not validate or interpret certificate contents; it purely extracts and splits PEM-encoded blocks. It also includes helpers for Twisted to reduce boilerplate when loading PEM data into Twisted SSL certificate objects. The package supports Python 3.8 through 3.12 and is classified as production/stable.
Use it for
- Extract individual certificates from a concatenated PEM chain file for use with servers that require separate certificate files.
- Parse mixed PEM files containing keys, certificates, and chains to reorganize them for different server configurations.
- Load PEM data into Twisted SSL Certificate objects using built-in helper functions.
- Programmatically split OpenPGP keys and certificates from PEM files for cryptographic operations.
- Read certificate chains from disk and access individual components via the parsed PEM objects.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need straightforward PEM parsing with zero dependencies and your use case does not require ongoing maintenance or security updates.
The library is stable and handles its narrow scope well, but the abandoned status (no releases since June 2023) means no fixes for future Python or certificate standard changes. Suitable for stable, long-lived applications that do not depend on active upstream support.
Install
pem on PyPI
Before you install
Low install friction with no runtime dependencies. However, the package is marked as abandoned with no releases for 1150 days, which may affect long-term maintenance and security updates.
License in practice
Licensed under MIT (permissive), allowing free use, modification, and distribution with minimal restrictions.
Quickstart
import pem
certs = pem.parse_file("chain.pem")
print(str(certs[0]))
Verify before relying
- Whether the lack of updates since June 2023 affects compatibility with current Python or certificate standards.
- Whether Twisted integration helpers remain functional with current Twisted versions.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Abandoned 1,150 days since the last release |
| First released | |
| Downloads | 1,433,597 / month, #3,906 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python Modules |
Evidence: pem-23.1.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “pem file parsing”
- pemParses and splits PEM files (Base64-encoded DER keys and…
- truelayer-signingProduces and verifies cryptographic signatures for TrueLayer API…
- wallet-py3kGenerates Apple Wallet (.pkpass) files from Python, encoding pass…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also asn1crypto · pyas2lib · trustme · acme · wincertstore · docker-image-py · certbot · certifi · apkutils2 · tls-parser