If there is another way to show the progress through some other function?
with open(filename, 'r', encoding='utf-8') as f:
contents = f.read()
If there is another way to show the progress through some other function?
with open(filename, 'r', encoding='utf-8') as f:
contents = f.read()
It may help you.
import os
from tqdm import tqdm
with tqdm(total=os.path.getsize(file)) as pbar:
with open(file, "rb") as f:
for l in f:
pbar.update(len(l))
...