def main():
    """Cli entrypoint.
    """
    if len(sys.argv) == 2:
        fname = sys.argv[1]
        data = json.load(open(fname, 'rb'))
    else:
        data = json.loads(sys.stdin.read())
    print(pydeps2reqs(data))