def client_handler(cmd):

    def decorate(func):
        client_commands[cmd] = func
    return decorate
Decorator to be used by modules for declaring client commands.
dataset/ETHPy150Open mossberg/poet/poet/module.py/client_handler