Progress bars used to report InstaLooter.download progress.
The module exposes and abstract class that can be derived to implement
your own progress displayer. The default implementation (which uses the
tqdm library) is used by the CLI.
-
class
instalooter.pbar.ProgressBar(it, *args, **kwargs)[source]
An abstract progess bar used to report interal progress.
-
finish()[source]
Notify the progress bar the operation is finished.
-
get_lock()[source]
Obtain the progress bar lock.
-
set_lock(lock)[source]
Set a lock to be used by parallel workers.
-
set_maximum(maximum)[source]
Set the maximum number of steps of the operation.
-
update()[source]
Update the progress bar by one step.
-
class
instalooter.pbar.TqdmProgressBar(it, *args, **kwargs)[source]
A progress bar using the tqdm library.
-
finish()[source]
Notify the progress bar the operation is finished.
-
set_maximum(maximum)[source]
Set the maximum number of steps of the operation.
-
update()[source]
Update the progress bar by one step.