def parse(pem_str):
    return [_PEM_TO_CLASS[match.group(1)](match.group(0))
            for match in _PEM_RE.finditer(pem_str)]
Extract PEM objects from *pem_str*.
dataset/ETHPy150Open hynek/pem/src/pem/_core.py/parse