jsonrpcserver Process JSON-RPC requests in Python. from jsonrpcserver import method, serve @method def ping(): return "pong" if __name__ == "__main__": serve() Full documentation is at jsonrpcserver.readthedocs.io. See also: jsonrpcclient