Commit c1b66795 authored by Luciano Cauzzi's avatar Luciano Cauzzi

added progress bar with logging

parent f6532540
import sys
from logger_library import Logger
logger = Logger.app_logger().get_logger()
def print_progress_percentage(current, total, desc=None):
print_progress_bar(current, total, prefix='Progress:', suffix='Completed', length=50)
if current % total == 0:
percentage = current / total
logger.info(desc + ": " if desc is not None else "" + "Total percentage = " + percentage)
def print_progress_bar(iteration, total, prefix='', suffix='', decimals=1, length=100):
"""
......
......@@ -3,7 +3,7 @@ import setuptools
setup(
name='logger_library',
version='0.1.6',
version='0.1.7',
packages=setuptools.find_packages(),
install_requires=['logzero', 'dependency_injector'],
url='http://github/innovation-that-excites/logger_library',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment