-
Notifications
You must be signed in to change notification settings - Fork 180
Description
I use this package to show progress on processing large MARC file processing tasks (see http://loc.gov/marc/bibliographic/). We have 1.6 million MARC records, and we do not know how many will change each day. Sometimes, there are large automatic changes. I really appreciate it being around.
However, when I don't know how many MARC records there are in the file, I still want to show how many have been processed. This is because the program may not know the # of records in the file, but I may have received the number via email from the library processing software.
if args.progress:
if (count % 100) == 0:
print('.', end='')
sys.stdout.flush()
if (count % 6000) == 0:
print('{:>8d}'.format(count))Other scripts are fast enough that I just use a spinner:
spinner = Spinner() if args.progress else None
# for main loop:
spinner and (count % 100) == 0 and spinner.next()What I'd really like is a spinner that shows a count or a way to roll the infinite bar pattern I've developed into progress.