A fast way to read last line of gzip archive ?

Barak, Ron Ron.Barak at lsi.com
Sun May 24 11:05:36 EDT 2009


 

> -----Original Message-----
> From: garabik-news-2005-05 at kassiopeia.juls.savba.sk 
> [mailto:garabik-news-2005-05 at kassiopeia.juls.savba.sk] 
> Sent: Sunday, May 24, 2009 13:37
> To: python-list at python.org
> Subject: Re: A fast way to read last line of gzip archive ?
> 
> Barak, Ron <Ron.Barak at lsi.com> wrote:
> > 
> > 
> > 
> > I thought maybe someone has a way to unzip just the end 
> portion of the 
> > archive (instead of the whole archive), as only the last part is 
> > needed for reading the last line.
> 
> dictzip (python implementation part of my serpento package) 
> you have to compress the file with dictzip, instead of gzip, 
> though (but dictzipped file is just a special way of 
> organizing the gzip file, so it remains perfectly compatible 
> with gunzip&comp.)

Unfortunately, the gzip archive isn't created by me, and I have no say in how it's created.
:-(

Thanks,
Ron.

> 
> 
> --
>  -----------------------------------------------------------
> | Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
> | __..--^^^--..__    garabik @ kassiopeia.juls.savba.sk     |
>  -----------------------------------------------------------
> Antivirus alert: file .signature infected by signature virus.
> Hi! I'm a signature virus! Copy me into your signature file 
> to help me spread!
> 
> 


More information about the Python-list mailing list