hoechenberger / openneuro-py

A client for accessing OpenNeuro datasets, written in Python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use multiple download threads

hoechenberger opened this issue · comments

It would be neat if we could download several files simultaneously.

Doing the download themselves shouldn't be difficult, I'm more concerned about the progress bars. Any ideas? Maybe just use a single bar and update it as each thread terminates?

Did a little digging and it seems that requests isn't really async-compatible. A good alternative seems to be HTTPX, https://www.python-httpx.org/async/

Postponing this for now.