Crate tqdm

source ·
Expand description

Rust implementation of Python command line progress bar tool tqdm.

From original documentation:

tqdm derives from the Arabic word taqaddum (تقدّم) which can mean “progress,” and is an abbreviation for “I love you so much” in Spanish (te quiero demasiado). Instantly make your loops show a smart progress meter - just wrap any iterable with tqdm(iterable), and you’re done!

This crate provides a wrapper Iterator. It controls multiple progress bars when next is called. Most traits are bypassed with auto-dereference, so original methods can be called with no overhead.

Re-exports

Modules

  • Progress bar style enumeration

Structs

  • Iterator wrapper that updates progress bar on next

Traits

  • Trait that allows .tqdm() method chaining, equivalent to tqdm::tqdm(iter)

Functions

  • Manually refresh all progress bars
  • Wrap Iterator like it in Python. This function creates a default progress bar object and registers it to the global collection. The returned iterator Deref to the given one and will update its tqdm whenever next is called.