def rpcmethod(**kwargs):
    
    def set_rpcmethod_info(method):
        method.is_rpcmethod = True
        method.external_name = kwargs.get("name", getattr(method, '__name__'))
        method.signature = kwargs.get('signature', [])
        method.permission = kwargs.get('permission', None)
        method.url_name = kwargs.get("url_name", "root")
        return method
    return set_rpcmethod_info
Accepts keyword based arguments that describe the method's rpc aspects
dataset/ETHPy150Open fp7-ofelia/ocf/optin_manager/src/python/openflow/common/rpc4django/rpcdispatcher.py/rpcmethod