Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a data transfer/download-specific progress meter #255

Open
IanButterworth opened this issue Dec 6, 2022 · 2 comments
Open

Add a data transfer/download-specific progress meter #255

IanButterworth opened this issue Dec 6, 2022 · 2 comments

Comments

@IanButterworth
Copy link
Collaborator

It would be nice to be able to do something like

using Downloads, ProgressMeter
p = ProgressData("Downloading x")
Downloads.download("url", progress = (total, current) -> update!(p, total, current))

(Downloads.download already has a hook for a progress callback with those args)

and get

Downloading x: 53%[=====================>                    ]  2.2 GiB of 4.3 GiB @ 1.2 MiB/s. ETA 12:32:31
@IanButterworth
Copy link
Collaborator Author

juliaup has a nice one, assuming it's from rust

Screen Shot 2022-12-06 at 4 25 26 PM

@tecosaur
Copy link

tecosaur commented Sep 5, 2023

This is something I've just added to one of my own packages:

image

One of the important things in the implementation is having a moving average for calculating the ETA (I use the last 30s of data).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants