

def parse(pem_str):
    '\n    Extract PEM objects from *pem_str*.\n\n    :param pem_str: String to parse.\n    :type pem_str: bytes\n    :return: list of :ref:`pem-objects`\n    '
    return [_PEM_TO_CLASS[match.group(1)](match.group(0)) for match in _PEM_RE.finditer(pem_str)]

dataset/ETHPy150Open hynek/pem/src/pem/_core.py parse/original