Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

gzip folder python

import tarfile

tar = tarfile.open("TarName.tar.gz", "w:gz")
tar.add("folder/location", arcname="TarName")
tar.close()
Comment

PREVIOUS NEXT
Code Example
Python :: squre value of a column pandas 
Python :: randint() 
Python :: create numpy array with ones 
Python :: remove na python 
Python :: django queryset to list 
Python :: scroll to element selenium python 
Python :: matp[lotlib max y value 
Python :: float to int in python 
Python :: python ffmpeg get video fps 
Python :: set and tuple in python 
Python :: write list to csv python 
Python :: python reference parent module 
Python :: convert pandas.core.indexes.numeric.int64index to list 
Python :: Python numpy.flatiter function Example 
Python :: python tkinter entry widget 
Python :: for loop get rid of stop words python 
Python :: pyjwt 
Python :: Python code to find Area of Rectangle 
Python :: is python object oriented language 
Python :: Python Date object to represent a date 
Python :: pickle save dict 
Python :: python - find columns that are objects 
Python :: list length in python 
Python :: how to input n space separated integers in python 
Python :: Highlight Active Links in Django Website 
Python :: how to change values of dictionary in python 
Python :: plot neural network keras 
Python :: python set workdir 
Python :: python contextmanager 
Python :: add option in python script 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =