Basic Progress Bar
Progress bar with no dependencies.
installation:
from basicprogressbar import BasicProgressBar
Arguments:
current:float = 0
total:float = -1
posttext:str=""
pretext:str="Progress:"
length:int=60
endtext:str=""
endline:str='\r'
Basic Examples:
prog = BasicProgressBar(1,10,pretext="Before bar:")
for i in range(11):
time.sleep(0.1)
prog.current = i
prog.endtext = (f"I ended on {i}")
prog.bar(True)
for i in range(11):
time.sleep(0.1)
BasicProgressBar(i,10).bar(True)
prog = BasicProgressBar(1,10)
for i in range(11):
time.sleep(0.1)
prog.current = i
prog.posttext = f"processing {i}"
print(prog.bar(),end=prog.endline)
prog = BasicProgressBar()
for i in range(10):
time.sleep(0.1)
print(prog.next(),end="\r")
print()
Discord Progress Bar:
Progress bar for discord
Dependencies: requests, time
installation:
from basicprogressbar import DiscordProgressBar
Arguments:
idtoken:str=""
disuser:str="Progress Bar"
throttle:float=0.5
messtime:float=0.0
messid:str=""
timeout:float=10.0
Examples:
token = "23135245523/f43faDSAF-FEAfe24f3qfq-2yfbB-agdagADGA-g334t34gqarGS"
prog = DiscordProgressBar(1,100,idtoken=token)
for i in range(1,101):
time.sleep(0.1)
prog.current = i
prog.send()
prog = DiscordProgressBar(idtoken=token)
for i in range(1,101):
time.sleep(0.1)
prog.current = i
prog.send()
prog = DiscordProgressBar(total=100, idtoken=token)
for i in range(1,101):
time.sleep(0.1)
prog.next()