Answers for "parse a file object for a gzipped file foo.gz using gzip.open('foo.gz')"

2

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)
Posted by: Guest on May-15-2020

Code answers related to "parse a file object for a gzipped file foo.gz using gzip.open('foo.gz')"

Python Answers by Framework

Browse Popular Code Answers by Language