I have a multi-GB 7z archive that contains a single xml
file. I want to read a single line from this compressed file at a time till it's (the file's) EOF
is reached on Python 3.4. I cannot afford to decompress it into it's full size, which is around a couple of Terabytes.
I was suggested many libraries like pylzma
and lzma
but they don't support 7z format.
libarchive
does support 7z but it reads in blocks, which are not necessarily lines of text in the file, I think.
Please provide suggestions. Thanks.