def get_attribut_len(self, node, attribut_name):

        self.logger.debug("get attribut length of %(attribut_name)s"\
            " of node %(node)s" % {
            'attribut_name': attribut_name,
            'node': node
            }
        )

        #get the attribut value (different type handling)
        redis_key = self._gen_key(node, ['attribut', attribut_name ])
        #get the attribut type
        key_type = self.connexion.type(redis_key).decode('utf-8')
        if key_type == 'string':
            return 1 
        elif key_type == 'set':
            return self.connexion.scard(redis_key)
        else:
            return 0
return the value of a given attribut of a node
dataset/ETHPy150Open kakwa/pygraph_redis/pygraph_redis/directed_graph.py/Directed_graph.get_attribut_len