kdam 0.6.4

A console progress bar library for Rust. (inspired by tqdm & rich.progress)
Documentation
use kdam::{Colour, term::Colorizer, tqdm};
use std::io::{IsTerminal, stderr};

fn main() {
    kdam::term::init(stderr().is_terminal());

    for _ in tqdm!(
        0..300,
        total = 300,
        bar_format = format!("{{animation}} {}", "{percentage:3.0}%".colorize("#EE6FF8")),
        // You can also use "gradient(#5A56E0,#EE6FF8)".
        colour = Colour::gradient(&["#5A56E0", "#EE6FF8"]),
        force_refresh = true
    ) {
        std::thread::sleep(std::time::Duration::from_secs_f32(0.02));
    }

    eprintln!();
}