I'm writing a Python script for JSON file processing. It's basically divided in three procedures: load, encoding and printing. While I've easily created progress bars for encoding and printing using tqdm, I can't figure out how to do it for load.
I've thoroughly read tqdm docs and searched even here, but no clues
import json
from tqdm import tqdm, trange
from iso3166 import countries
geo_json_events_path = r'/cygdrive/c/elastic/gtd.geojson'
with open(geo_json_events_path) as f:
data = json.load(f)
I expect the progress bar for json.load()
method shown.