plexgis.components.core.status¶
- partial_status_iter(objs, count=None, offset=None, part=None, total=None)¶
This is a wrapper for running status_iter multiple times. It will map the status information returned from status_iter to a part of the total progress. You can use it like this:
>>> yield from partial_status_iter(range(10), part=0, total=3) >>> yield from partial_status_iter(range(10), part=1, total=3) >>> yield from partial_status_iter(range(10), part=2, total=3)
It is currently assumed that each part takes an equal amount of time.
- status_iter(objs, count=None, offset=None, unwrapped: bool = False)¶
This function returns a generator which iterates over the data from the input iterater and tries hard to give the best possible status info from the least possible information.