Skip to content

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

Description

@VForiel

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions