def _show_progress_bar(downloaded, total):
    """
    progress bar for command line
    """
    htlen = 33
    percent = downloaded / total * 100
    hashtags = int(percent / 100 * htlen)
    print('|' + '#' * hashtags + ' ' * (htlen - hashtags) + '|' +
        '  {0}/{1} '.format(downloaded, total) + ' {:.1f}'.format(percent).
        ljust(5) + ' %', end='\r', flush=True)
