First of all, sorry for my english, it's not my native language. I've searched everywhere but I didn't find anything ... I'd like to know how does progress bars work in python, i've seen some example of 'loading animations' and i did one but for example if there is a file transfered somewhere how can i link the two of them so the bar progression will show the real file loading ? Right now im doing a 'dictionnary' program that create a text file of password combination and I can't figure out how to make a progress bar that show the progress of the process... Here is the code :
import os,itertools
os.system('touch wordlist.txt')
file= open("wordlist.txt", "w")
for n in range(minlenght,maxlength+1):
for xs in itertools.product(caracters, repeat=n):
word=''.join(xs)
file.write(''.join(xs)+"\n")
Thanks in advance.