

def _inspect_commands(self):
    '\n            Inspect connection object and extract command names.\n        '
    for name in dir(self.redis):
        if (not name.startswith('_')):
            attr = getattr(self.redis, name)
            if (callable(attr) and (name not in self.excluded_commands)):
                doc = (getattr(attr, '__doc__', '') or '').strip()
                self.commands[name] = (attr, doc)
    for (new, old) in self.remapped_commands.items():
        self.commands[new] = self.commands[old]

dataset/ETHPy150Open flask-admin/flask-admin/flask_admin/contrib/rediscli.py RedisCli._inspect_commands/original