update tqdm parallelly within async function

Viewed 45

I have written a program to upload data to azure storage. As the file size is quite big, I want a progress bar to see the upload status. But the progress bar update happens sequentially and not w.r.t dynamic data.

with open(source, "rb") as data:
    await client.upload_blob(
                    name=destination,
                    data=data,
                    overwrite=True,
                    length=size,
                )

What I want is to get data.tell() pointer shared in real time to update the tqdm parallelly.

Any direction towards the solution is appreciated.

0 Answers
Related