Skip to content

Instantly share code, notes, and snippets.

View omaralvarez's full-sized avatar
🎯
Focusing

Omar Alvarez omaralvarez

🎯
Focusing
View GitHub Profile
@omaralvarez
omaralvarez / print_progress.py
Created January 4, 2017 18:29 — forked from aubricus/License
Python Progress Bar
# -*- coding: utf-8 -*-
# Print iterations progress
def print_progress(iteration, total, prefix='', suffix='', decimals=1, bar_length=100):
"""
Call in a loop to create terminal progress bar
@params:
iteration - Required : current iteration (Int)
total - Required : total iterations (Int)