Written by Sean Behan on Sun Jun 17th 2012
import zlib
regular_string = 'this is my string'
compressed_string = zlib.compress(regular_string)
decompressed_string = zlib.decompress(compressed_string)

print compressed_string print decompressed_string


Tagged with..
#compression #import #Python #zlib #Python

Just finishing up brewing up some fresh ground comments...