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

Concurrent download of multiple files #439

Open
LucaMaurelliC opened this issue Nov 30, 2023 · 1 comment
Open

Concurrent download of multiple files #439

LucaMaurelliC opened this issue Nov 30, 2023 · 1 comment

Comments

@LucaMaurelliC
Copy link

I am wondering whether it is possible to use the library to download multiple files in parallel/concurrently (i.e. by exploiting asyncio Python SDK for Azure Blob Storage) so that given a list of files, e.g. ["file1.parquet", "file2.parquet", "file3.parquet"] I can start the download of all files in parallel with couritines and await them so that at the end I can do something the files, e.g. for instance concatenating them together.

What I tried so far is a single file:

import pandas as pd
storage_options={"connection_string": "MY_CONNECTION_STRING"}
CONTAINER = "MY_CONTAINER_NAME"
FILE = "PATH/TO/FILE.parquet"
FILEPATH = f"az://{CONTAINER}/{FILE}"
df = pd.read_parquet(FILEPATH, storage_options=storage_options)
@TomAugspurger
Copy link
Contributor

TomAugspurger commented Dec 2, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants