track

function of dascore.utils.progress source

track(
    sequence: Iterable ,
    description: str ,
    progress: Literal[‘standard’, ‘basic’, None] | Progress = 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
can also accept a subclass of rich.progress.Progress.
length The number of items, for sequences which cannot report their own.
min_length The minimum length to emit a progress bar.