#progress-bar #progress #bar #tqdm

tqdm-rs

A simple progress bar library inspired by Python's tqdm

3 unstable releases

0.1.1 Jan 26, 2022
0.1.0 Jan 26, 2021
0.0.1 Nov 1, 2020

#4 in #tqdm

Download history 8/week @ 2023-12-22 17/week @ 2024-01-05 42/week @ 2024-01-12 54/week @ 2024-01-19 10/week @ 2024-01-26 2/week @ 2024-02-02 10/week @ 2024-02-09 44/week @ 2024-02-16 75/week @ 2024-02-23 42/week @ 2024-03-01 46/week @ 2024-03-08 74/week @ 2024-03-15 35/week @ 2024-03-22 66/week @ 2024-03-29 24/week @ 2024-04-05

212 downloads per month

MIT/Apache

9KB
147 lines

ci-badge docs-badge crate-version

tqdm-rs

A simple progress bar library inspired by Python's tqdm.

Sample Usage

for _ in tqdm_rs::Tqdm::new(0..10) {
    tqdm_rs::write("Doing some work...\nOn multiple lines!");
    std::thread::sleep(std::time::Duration::from_millis(100));
    continue
}

// It is possible to use print, but it looks more clumsy!
for _ in tqdm_rs::Tqdm::new(0..10) {
    println!("Doing some work...\nOn multiple lines!");
    std::thread::sleep(std::time::Duration::from_millis(100));
    continue
}

let mut tq = tqdm_rs::Tqdm::manual(100);
for _ in 0..10 {
    println!("I am updated manually!");
    tq.update(10);
}

Dependencies

~230KB