Q: Renaming file inside GZIP archive without extracting it Is there a way, using a Python, of renaming a file, inside a GZIP archive, without uncompressing it?
The starting point is the following:
my-archive.gz
    |_file1.txt
    |_file3.txt

My goal (renaming the file3.txt as new-file2.txt) would be then:
 my-archive.gz
    |_file1.txt
    |_new-file2.txt

Any idea about how to achieve that?

A: There is no such thing as a "gzip archive". gzip is a single file or single stream format.
