Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to show process bar in terminal python

# pip install alive_bar
with alive_bar(total) as bar:  # declare your expected total
    for item in items:         # <<-- your original loop
        print(item)            # process each item
        bar()                  # call `bar()` at the end
 
PREVIOUS NEXT
Tagged: #show #process #bar #terminal #python
ADD COMMENT
Topic
Name
4+2 =