Writing data to a zip archive in Python -


i've been told in past there no easy way write string zip file. it's okay read zip archive, if want write zip file, best option extract it, make changes, , zip again. however, library using (openpyxl) accomplishes feat of writing zip file without extraction. package uses writestr() function in python zipfile library make changes. can explain me how possible? know has writing bytes can't fine explanation.

i'm aware of vagueness of question, that's circumstance of lack of knowledge on topic.

openpyxl not modify files in place because can't zipfiles. must extract, modify , archive. hide process in library.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -