Skip to content

A python library for showing progress in windows terminal

License

Notifications You must be signed in to change notification settings

oxygen-dioxide/wtprogress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wtprogress

A python library for showing progress in windows terminal.

When you are running a long-running task in python in background, such as training a neural network, you may switch to your terminal frequently to check the progress. With this library, your python script can show progress in your taskbar, and you can easily see it without switching to your terminal.

Note: this library only supports Windows Terminal. Conhost doesn't have this feature.

Example

import wtprogress,time
def main():
    for i in range(1,101):
            print("\rProgress: {}%".format(i),end="",flush=True)
            wtprogress.show(i)
            time.sleep(0.1)
    print("\nTask finished")
    wtprogress.close()
main()

About

A python library for showing progress in windows terminal

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published