An open API service indexing awesome lists of open source software.

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

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
[![asciicast](https://asciinema.org/a/YcIyziqvD4FKPJWLZdLlMcccR.png)](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

```