Async download and caching in `op` module
Open
@PauBadiaM is already working on this.
Since Aug 5, 2025.
enhancement
- Dominant language
- Python
- Stars
- 294
- Forks
- 38
- Avg merge
- 4d 17h
- Merged PRs (30d)
- 3
Description
Description of feature
Thanks for developing such a nice package.
The download of a large resource in the op module can be a bit time consuming. I wonder if we could make the download asynchronously and return a future object instead.
Potential API design:
markers = dc.op.resource('MSigDB', as_future=True) # Non-blocking
markers = markers.result() # Get the result
For caching, since the database is from OmniPath and hosted by your team, the etag would be a graceful solution. This is also how huggingface handle file caching.
I'm happy to submit a PR for the async download part.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.