Skip to content Skip to sidebar Skip to footer
Showing posts with the label Compression

Speed Up Reading In A Compressed Bz2 File ('rb' Mode)

I have a BZ2 file of more than 10GB. I'd like to read it without decompressing it into a tempor… Read more Speed Up Reading In A Compressed Bz2 File ('rb' Mode)

How To Decompress Bytes In Python Using Lzo-1.0.8 ( Python 2.7.9)?

I have a compressed byte array received from network and it is LZO Compressed. I need to decompress… Read more How To Decompress Bytes In Python Using Lzo-1.0.8 ( Python 2.7.9)?

Python Zipfile Module Doesn't Seem To Be Compressing My Files

I made a little helper function: import zipfile def main(archive_list=[],zfilename='default.zi… Read more Python Zipfile Module Doesn't Seem To Be Compressing My Files

Uncompressing A .z File With Python

I'm trying to uncompress a *.Z file using Python. I downloaded it via FTP (binary mode). The fi… Read more Uncompressing A .z File With Python

Zlib Decompression In Python

Okay so I have some data streams compressed by python's (2.6) zlib.compress() function. When I … Read more Zlib Decompression In Python

How Do You Compress A String, And Get A String Back Using Zlib?

I am trying to utilize Zlib for text compression. For example I have a string T='blah blah blah… Read more How Do You Compress A String, And Get A String Back Using Zlib?