We do a lot of downloading and un-zipping of zip f...
# prefect-server
t
We do a lot of downloading and un-zipping of zip files. Does anyone have any tricks or methods for doing this in Prefect server? I think the challenge is the unzip process.
k
Do you mean the challenge is executing it? Or is it like slow? For execution, it’s just
Copy code
import zipfile
with zipfile.ZipFile(path_to_zip_file, 'r') as zip_ref:
    zip_ref.extractall(directory_to_extract_to)
right?
t
Thanks, Kevin. More of an implementation challenge: Where would wget or the request object save the file and where would zip_ref extract all the zipped files. I know a tiny bit about Storage objects, but that seems like overkill for temporary storage space in this example...
k
I think just in the working dir of the Flow? Yep you shouldnt need storage