track

function of dascore.utils.progress source

track(
    sequence: collections.abc.Sized | collections.abc.Generator[Sized, Generator] ,
    description: str ,
    progress: Literal[‘standard’, ‘basic’, None] = standard,
    length: int | None[int, None] = None,
    min_length: int = 1,
)

A simple iterator for tracking updates.

Parameters

Parameter Description
sequence A sequence or generator to trace the iteration over.
description A string describing the operation
progress options are
None- disable progress bar,
“basic” reduced refresh rate,
“standard” - the normal progress bar
min_length The minimum length to emmit a progress bar.