Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request - display counters #71

Open
thorntonjohn opened this issue Jan 8, 2021 · 1 comment
Open

Request - display counters #71

thorntonjohn opened this issue Jan 8, 2021 · 1 comment
Labels
feature request No promises...

Comments

@thorntonjohn
Copy link

thorntonjohn commented Jan 8, 2021

It would be nice to add counters that could be incremented and displayed in the progress bar. For example:

with alive_bar(len(all_lines), counters["filtered", "success"]) as bar:
  ...
  if success:
    bar(counter="success")
  else if filtered:
    bar(counter="filtered")

|█████████████████████| 5530/5532 [90%] in 43.4s (127.43/s) success: 5000 filtered:530

@rsalmei
Copy link
Owner

rsalmei commented Jan 8, 2021

Hey, I like the idea!
It may take a while until I have time to, but I'll implement it 👍

@rsalmei rsalmei added the feature request No promises... label Jan 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request No promises...
Projects
None yet
Development

No branches or pull requests

2 participants