-
Notifications
You must be signed in to change notification settings - Fork 26
Closed
Description
Hi, thank you for the inspirational code.
I'm wondering if it's possible to adapt your code and make it compatible with S3 storage.
I use django-storages and boto3 client returns a streaming body (already open fp) and all metadata.
I need a zipfile (or any other archive) to be created from the set of files during the GET request (not great but it has to be).
So to save the memory I have 2 options.
- Use
zipflyas is and download files into a temporary location (and remove it after the operation) - Or better solution that doesn't require intermediate storage so I could pipe the content of
streaming bodyintozipflyand return that as a streaming response.
streaming body (many of them) -> zipfly(zip file) -> streaming response
Do you think that option two is possible?
If so, could you please point out what pieces of code I should focus on to adapt zipfly?
Thank you
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels