Data Compression : Compress « Development « Python
- Python
- Development
- Compress
Data Compression

import zlib
s = 'witch which has which witches wrist watch'
print len(s)
t = zlib.compress(s)
print len(t)
print zlib.decompress(t)
print zlib.crc32(s)
Related examples in the same category