@name.setter
    def name(self, value):
        self._name = value

        if value:
            meta = mimicdb.backend.hgetall(tpl.key % (self.bucket.name, value))

            if meta:
                mimicdb.backend.sadd(tpl.bucket % self.bucket.name, value)
                self._load_meta(meta['size'], meta['md5'])
Key name can be set by Key.key or Key.name. Key.key sets Key.name
dataset/ETHPy150Open nathancahill/mimicdb/mimicdb/s3/key.py/Key.name