pbar_registry module¶
Global registry for progress bars.
pbar_reg PBarRegistry¶
Default registry of type PBarRegistry.
PBarRegistry class¶
Class for registering ProgressBar instances.
clear_instances method¶
Clear instances.
deregister_instance method¶
Deregister an instance.
generate_bar_id class method¶
Generate a unique bar id.
get_child_instances method¶
Get child (active or pending) instances of an instance.
get_first_pending_instance method¶
Get the first pending instance.
get_last_active_instance method¶
Get the last active instance.
get_parent_instance method¶
Get the (active) parent instance of an instance.
get_parent_instances method¶
Get the (active) parent instances of an instance.
get_pending_instance method¶
Get the pending instance.
If the bar id is not None, searches for the same id in the dictionary.
has_conflict method¶
Return whether there is an (active) instance with the same bar id.
instances property¶
Dict of registered instances by their bar id.
register_instance method¶
Register an instance.