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

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?

H5py: Compound Datatypes And Scale-offset In The Compression Pipeline

Using Numpy and h5py, it is possible to create ‘compound datatype’ datasets to be stored in an hdf5… Read more H5py: Compound Datatypes And Scale-offset In The Compression Pipeline

How To Unpack Xz File With Python Which Contains Only Data But No Filename?

I have a file, which I can decompress under linux using the following command: unxz file.txt How … Read more How To Unpack Xz File With Python Which Contains Only Data But No Filename?

Possible To Decompress Bz2 In Python To A File Instead Of Memory

I've worked with decompressing and reading files on the fly in memory with the bz2 library. Ho… Read more Possible To Decompress Bz2 In Python To A File Instead Of Memory

Uncompressing Tar.z File With Python?

I need to write a python script that retrieves tar.Z files from an FTP server, and uncompress them … Read more Uncompressing Tar.z File With Python?

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