_progress
TOC
- Classes:
- 🅲 Progress
Classes
🅲 Progress
class Progress:
🅼 __init__
def __init__(self, input: Union[int, enumerate, any], name=None):
Decorate an iterable object, returning an iterator. Neetbox will send progress to frontend while you are iterating through it.
Parameters:
- input (Union[int, enumerate, any]): Something to iterate or something to create enumeratable object.
🅼 __enter__
def __enter__(self):
🅼 __exit__
def __exit__(self, type, value, traceback):
🅼 __iter__
def __iter__(self):
🅼 _update
def _update(
cls,
name: str,
what_is_current: any,
done: int,
total: int,
rate: float,
timestamp=None,
):
🅼 __next__
def __next__(self):
🅼 __len__
def __len__(self):