file and directory handling zlib the zlib module supports data compression by providing access to the zlib library adler (string [value]computes the adler- checksum of string value is used as the starting value (which can be used to compute checksum over the concatenation of several stringsotherwisea fixed default value is used compress(string [level]compresses the data in stringwhere level is an integer from to controlling the level of compression is the least (fastestcompressionand is the best (slowestcompression the default value is returns string containing the compressed data or raises error if an error occurs compressobj([level]returns compression object level has the same meaning as in the compress(function crc (string [value]computes crc checksum of string if value is presentit' used as the starting value of the checksum otherwisea fixed value is used decompress(string [wbits [buffsize]]decompresses the data in string wbits controls the size of the window bufferand buffsize is the initial size of the output buffer raises error if an error occurs decompressobj([wbits]returns compression object the wbits parameter controls the size of the window buffer compression objectchas the following methodsc compress(stringcompresses string returns string containing compressed data for at least part of the data in string this data should be concatenated to the output produced by earlier calls to compress(to create the output stream some input data may be stored in internal buffers for later processing flush([mode]compresses all pending input and returns string containing the remaining compressed output mode is z_sync_flushz_full_flushor z_finish (the defaultz_sync_flush and z_full_flush allow further compression and are used to allow partial error recovery on decompression z_finish terminates the compression stream decompression objectdhas the following methods and attributesd decompress(string [,max_length]decompresses string and returns string containing uncompressed data for at least part of the data in string this data should be concatenated with data produced by earlier calls to decompress(to form the output stream some input data may be lib fl ff