Class MultiProgress

Progress variant that keeps track of different groups of keys

Declaration

class MultiProgress(Progress)
source link

Documentation

See Progress for most details.  This only adds a function ``func=``
that splits keys.  This defaults to ``key_split`` which aligns with naming
conventions chosen in the dask project (tuples, hyphens, etc..)

State
-----
keys: dict
    Maps group name to set of not-yet-complete keys for that group
all_keys: dict
    Maps group name to set of all keys for that group

Examples

>>> split = lambda s: s.split('-')[0]
>>> p = MultiProgress(['y-2'], func=split)  # doctest: +SKIP
>>> p.keys   # doctest: +SKIP
{'x': {'x-1', 'x-2', 'x-3'},
 'y': {'y-1', 'y-2'}}

Methods

Inherited methods

Reexports