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

[progress] Add progress.range() function to automatically create progress bar #5

Open
VForiel opened this issue Mar 29, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@VForiel
Copy link
Owner

VForiel commented Mar 29, 2023

usage :

from lrfutils import progress as p

for i in p.range(5): 
    ... #  iterate from 0 to 4

for i in p.range(10.4, 50.8, 10.1, endpoint=True): 
    ... #  iterate from 10.4 to 50.8 by step of 10.1

a_list = ["foo", "bar", "qux"]
for i in p.range(myList):
   ... # iterate over the iterable

Each iteration of these loop will automatically create and print a progress bar

@VForiel VForiel added the enhancement New feature or request label Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant