ocaml-tqdm is a progress bar library for OCaml. The implementation is based on Python tqdm library.
The package can easily be installed via opam, opam install tqdm
.
Below is an example of how to use it:
module T = Tqdm.Tqdm
T.with_bar 100 ~f:(fun tqdm ->
for v = 1 to 100 do
Unix.sleepf 0.1;
T.update tqdm v
done);