Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python Decompress gzip File

import gzip
import shutil
with gzip.open('file.txt.gz', 'rb') as f_in:
    with open('file.txt', 'wb') as f_out:
        shutil.copyfileobj(f_in, f_out)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #Decompress #gzip #File
ADD COMMENT
Topic
Name
6+7 =