Using bytes instead of actual files
Closed this issue · 3 comments
TaToTanWeb commented
Hi, thanks for the great work.
I have some bytes generators and I want to make a zip on the fly out of them. Is there an option to do this? Sorry for my poor python knowledge.
Thanks :)
jpruciak commented
Or even filelike objects.
frafra commented
It is not possible, but zipfile
, which is the standard Python library that is used by zipfly
, allows that.
You can use https://github.com/uktrade/stream-zip otherwise.
TaToTanWeb commented
Thank you!