https://github.com/itsjwala/python-progress-animation
python script to show progress animation in terminal
https://github.com/itsjwala/python-progress-animation
loader progress-animation python-script
Last synced: about 1 year ago
JSON representation
python script to show progress animation in terminal
- Host: GitHub
- URL: https://github.com/itsjwala/python-progress-animation
- Owner: itsjwala
- License: mit
- Created: 2018-01-08T17:10:35.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-23T12:46:41.000Z (about 8 years ago)
- Last Synced: 2025-01-13T01:37:08.370Z (about 1 year ago)
- Topics: loader, progress-animation, python-script
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# python-progress-animation
python script to show progress animation in terminal , can be shown when some other script/thread is still running
## Demo
[](https://asciinema.org/a/YcIyziqvD4FKPJWLZdLlMcccR)
## Setup
* clone the repo
```shell
git clone https://github.com/jigarWala/python-progress-animation.git
```
* copy the progress_bar_animation.py file to your desired location
* import and use it as shown below
```python
import threading
import progress_bar_animation
def some_task():
"""
function to mock a task that takes time , till that time our loader will show
"""
for _ in range(1 * 100000000):
pass
task_thread = threading.Thread(target=some_task)
progress_thread = threading.Thread(target=progress_bar_animation.show_progress)
task_thread.start()
progress_thread.start()
task_thread.join()
progress_bar_animation.done = True
```