

def _from_base_type(self, value):
    if isinstance(value, _CompressedValue):
        return zlib.decompress(value.z_val)

dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py BlobProperty._from_base_type/original