π₯ Spinnerpy new python loading spinners repository π₯
Style | Chars |
---|---|
default | \ | / - |
ballon | . o 0 @ * |
arrows | β β β β β β β β |
cube | β β β β |
lines | β€ β β΄ β β β β¬ β |
tringle | β’ β£ β€ β₯ |
squares | β° β³ β² β± |
pie | β΄ β· βΆ β΅ |
circle | β β β β |
dots | β£Ύ β£½ β£» β’Ώ β‘Ώ β£ β£― β£· |
v | < V > ^ |
x | + X |
init
Spinner(style:str)
start
start(self, progress=None, args:list=None, text:str='', times:int=None, wait:float=.2, color:str=None)
Start the spinner
progress
- Function
- (The spinner will spin until the progress is over)
args
- Array
- (If progress is provided you can transfer arguments to the function)
text
- String
- (Text before spinner | Example: text='Loading... ' - Output: Loading... {Spinner Here})
times
- Integer
- (If progress not provided you can control how many times the spinner will spin)
wait
- Float
- (Seconds to next char)
color
- String
- (Change spinner+text color)
stop
stop(self)
Stop the spinner