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

feature: partially download ZIPs #240

Open
jeswr opened this issue Jul 21, 2024 · 0 comments
Open

feature: partially download ZIPs #240

jeswr opened this issue Jul 21, 2024 · 0 comments

Comments

@jeswr
Copy link

jeswr commented Jul 21, 2024

Is your feature request related to a problem? Please describe.
I don't want to have to use the network bandwith required to download an entire zip when I only want to access one file from it.

Describe the solution you'd like
I new kwarg on the cached_path function to choose to only download the requested file in a zip folder

cached_path("https://example.org/file.zip!file/path.txt", extract_archive=True, single_file=True)

Describe alternatives you've considered
Using remoteZip which "provides a way to access single members of a zip file archive", but does not have the file caching functionality of this library out-of-the box. I would suggest that remoteZip could be used under the hood to implement this feature.

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

1 participant