def core_requirements():
    with open('setup.py') as inp:
        reqs_raw = re.search(
            r'REQUIRES = \[(.*?)\]', inp.read(), re.S).group(1)
    return re.findall(r"'(.*?)'", reqs_raw)
Gather core requirements out of setup.py.
dataset/ETHPy150Open home-assistant/home-assistant/script/gen_requirements_all.py/core_requirements