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

Download all files from a Catalog at once #48

Open
ebuchlin opened this issue Mar 7, 2024 · 0 comments
Open

Download all files from a Catalog at once #48

ebuchlin opened this issue Mar 7, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@ebuchlin
Copy link
Collaborator

ebuchlin commented Mar 7, 2024

Downloading files from a Catalog currently involves downloading each file separately or adding each file to a Downloader before downloading them.

from parfive import Downloader
downloader = Downloader()
result.iloc[:10].apply(
   lambda row: FileMetadata(row).download_file(
      "/tmp/spice-files",  # base directory
      release="2.0",
      downloader=downloader
   ),
   axis=1
)
downloader.download()

This could be a method of the Catalog object.

@ebuchlin ebuchlin added enhancement New feature or request good first issue Good for newcomers labels Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant