tqdm-rs

Crates.iotqdm-rs
lib.rstqdm-rs
version0.1.1
created_at2020-11-01 19:14:43.155545+00
updated_at2022-01-26 18:19:08.485373+00
descriptionA simple progress bar library inspired by Python's tqdm.
homepagehttps://github.com/Elinvynia/tqdm-rs
repositoryhttps://github.com/Elinvynia/tqdm-rs.git
max_upload_size
id307620
size21,663
ChloƩ Monette (Elinvynia)

documentation

https://docs.rs/tqdm-rs

README

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);
}
Commit count: 0

cargo fmt