Simple python tic that can ease your mind
We've all been there...staring at the empty terminal while your fans go crazy.
I hope this relieves the intensity while you are waiting for that return statement.
How To
- Install
tictronome
frompip
$ pip install tictronome
- Import
Tic
object fromtictronome
.
from tictronome.tictronome import Tic
- Initialize it before some time-consuming process.
tic = Tic()
- Call the
start
method ofTic
to start.
# start of your script
tic.start()
some_long_function(...)
- Call the
stop
method ofTic
to stop.
# end of your script
tic.stop()
- Run your script!
$ python3 your_script.py
Notes
When you create a Tic instance, you can change the color of the loading character by adding colors.
Disclaimer
Depending on your shell settings(themes) colors might appear differently.
from tictronome import Colors
Tic(color=Colors.CYAN)
Supported List of Colors |
---|
Colors.BLACK |
Colors.RED |
Colors.GREEN |
Colors.YELLOW |
Colors.BLUE |
Colors.MAGENTA |
Colors.CYAN |
Colors.WHITE |