src/cicflowmeter/utils.py
def grouper(iterable, n, max_groups=0, fillvalue=None):
    """Collect data into fixed-length chunks or blocks"""

    if max_groups > 0:
        iterable = islice(iterable, max_groups * n)

    args = [iter(iterable)] * n
    return zip_longest(*args, fillvalue=fillvalue)
Collect data into fixed-length chunks or blocks
Collect data into fixed-length chunks or blocks
Collect data into fixed - length chunks or blocks
def grouper(iterable, n, max_groups=0, fillvalue=None):
    if max_groups > 0:
        iterable = islice(iterable, max_groups * n)
    args = [iter(iterable)] * n
    return zip_longest(*args, fillvalue=fillvalue)
def grouper ( iterable , n , max_groups = 0 , fillvalue = None ) : if max_groups > 0 : iterable = islice ( iterable , max_groups * n ) args = [ iter ( iterable ) ] * n return zip_longest ( * args , fillvalue = fillvalue )
Collect data into fixed-length chunks or blocks
Collect data into fixed - length chunks or blocks
"""Collect data into fixed-length chunks or blocks"""
iterable
n
max_groups
fillvalue