def split_streams(streams: list, max_items: int):
    """Split a list of streams into chunks

    :param streams: List to be split
    :param max_items: Max number of items
    :return: Generator
    """
    for item in range(0, len(streams), max_items):
        yield streams[item:item + max_items]
