https://github.com/oxygen-dioxide/wtprogress
A python library for showing progress in windows terminal
https://github.com/oxygen-dioxide/wtprogress
python taskbar windows windows-terminal
Last synced: 8 months ago
JSON representation
A python library for showing progress in windows terminal
- Host: GitHub
- URL: https://github.com/oxygen-dioxide/wtprogress
- Owner: oxygen-dioxide
- License: mit
- Created: 2021-06-21T00:36:17.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-24T00:30:43.000Z (over 4 years ago)
- Last Synced: 2025-05-18T09:18:54.088Z (9 months ago)
- Topics: python, taskbar, windows, windows-terminal
- Language: Python
- Homepage:
- Size: 694 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://www.microsoft.com/en-us/p/windows-terminal/9n0dx20hk701?activetab=pivot:overviewtab). Conhost doesn't have this feature.
## Example
```py
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()
```
