def parse_file(file_name):
    with open(file_name, 'rb') as f:
        return parse(f.read())
Read *file_name* and parse PEM objects from it using :func:`parse`.
dataset/ETHPy150Open hynek/pem/src/pem/_core.py/parse_file