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

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

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)

Lempel-ziv Compression Algorithm Implemention

I wrote the following code for implementing lempel-ziv compression algorithm for the following samp… Read more Lempel-ziv Compression Algorithm Implemention

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?

Csv File Compression Without Using Existing Libraries In Python

I'm trying to compress a .csv file without using any 3rd party or framework provided compressio… Read more Csv File Compression Without Using Existing Libraries In Python

Zip File With Ppmd Compression, Programmatically Unzip

I have a Linux Python script that needs to unzip some zip files. I was using the zipfile module. … Read more Zip File With Ppmd Compression, Programmatically Unzip

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

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?

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

Image Compression By "def Compress(s)" Function Using Run-length Encoding

I need to write a function called compress(S) that takes a binary string S of length less than or e… Read more Image Compression By "def Compress(s)" Function Using Run-length Encoding

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