Barra de progreso colorizada Python en consola

import log21, time

# You can use some arguments to customize your progress bar
# For example, you can pass a dictionary as `colors` to customize
# progress bar colors
pb = log21.ProgressBar()
for i in range(500):
    pb(i + 1, 500)
    time.sleep(0.01)

# |█████████████████████████████████████████| 100%
    
CodeHopper 8D