Skip to content

Latest commit

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

beerprogress

Command line progress indicator library Python

alt text

Usage:

import os
import time
from beerprogress import BeerProgress
bp = BeerProgress()
bp.total_tasks = 1075
for x in range(bp.total_tasks):
bp.tick()
# or get the string and log it
bp.print_progress(os.stderr, single_line=True)
# sleep so we can enjoy the beauty of this
time.sleep(0.01)
# skip something every once in a while
if x % 10 == 0:
bp.skipped_tasks += 1
else:
bp.completed_tasks += 1

About

Command line progress indicator library Python

Resources

Stars

5 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors