Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 474 Bytes

README.md

File metadata and controls

22 lines (19 loc) · 474 Bytes

awdy

Are We Done Yet (awdy) is a tqdm-like progress bar written in pure Mojo.

Basic usage

with awdy(total=100, leave=True) as pb:
    for i in range(100):
        sleep(0.05)
        pb.update()
        if i == 49:
            awdy.write('Halfway done!')

Basic usage result

Note that because Mojo doesn't support an Iterable trait yet, we can't do something like:

for thing in awdy(my_iterable):
    ...

License

MIT