Monday 9 February 2015

Good Python modules for temporary storage of file and create zip/tar file

Nice modules to create zip/tar package or temporary zip/tar package

In general case we no need of permenant creation of files, in general we requires to create some temporary folder, create zip/tar for the purpose of download, so in case of temporary store tempfile is good module, if you want to develop a code where you need to create a folder add some files in it and create zip/tar then following modules are great modules.

-> os - https://docs.python.org/2/library/os.html
-> shutil - https://docs.python.org/3/library/shutil.html
-> tempfile - https://docs.python.org/3/library/tempfile.html
-> zipfile - https://docs.python.org/2/library/zipfile.html
-> tarfile - https://docs.python.org/2/library/tarfile.html

No comments:

Post a Comment