Azure / Azure/azure-sdk-for-python
Blob search using the glob(Unix style pathname pattern) syntax
- Lingua principale
- Python
- Stelle
- 5.6k
- Fork
- 3.4k
- Merge medio
- 2g 2h
- PR unite (30g)
- 213
Descrizione
I would like to be able to efficiently list all the blobs in a container that match a Unix style pathname pattern.
as implemented in the python [glob module](https://docs.python.org/3/library/glob.html)
**Describe the solution you'd like**
I would like to be able to list blobs using for example
```
client.glob("dataset/sequence_*/image*_color.png")]
```
or
```
client.glob("dataset/**/image*_color.png", recursive=True)]
```
We could list all the blobs in `dataset` and do the filtering locally, but that is very slow when the number of blobs is large and we are interested in selecting only a small subset. Ideally this feature would be implemented on the server side to avoid having to retrieve large lists of files locally, but I guess this would be out of scope for the python SDK.
I implemented my own solution based on the glob python package but would like this feature to be part of the SDK instead.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia individuando le API client di Azure Blob per l'elenco dei blob e confronta le loro attuali capacità di filtraggio con la sintassi glob di Python. Valuta come supportare pattern non ricorsivi e ricorsivi come quelli degli esempi, incluso se il filtraggio può essere eseguito lato server. Il lavoro è completo quando l'SDK espone il comportamento di elenco basato sui pattern richiesto senza recuperare elenchi di blob inutilmente grandi.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- azure, python
- Ambito
- cloud
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100