def asciiCompress(data, level=9):
    """ compress data to printable ascii-code """

    code = zlib.compress(data,level)
    csum = zlib.crc32(code)
    code = base64.encodestring(code)
    return code, csum
 compress data to printable ascii-code 
recipes/Python/355486_compress_datprintable_ascii/recipe-355486.py