scverse / scverse/decoupler

Async download and caching in `op` module

Open
#231 3 comments 0 reactions 1 assignee View on GitHub

@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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.