allenai / allenai/cached_path

feature: partially download ZIPs

Abierto
#240 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Feature request
Lenguaje dominante
Python
Estrellas
47
Forks
22
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

**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

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

**Describe alternatives you've considered**
Using [remoteZip](https://pypi.org/project/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](https://pypi.org/project/remotezip/) could be used under the hood to implement this feature.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.