/python使用grpc

Created Fri, 11 Nov 2022 11:14:15 +0900

Rpc

https://msgpack.org/
if __name__ == "__main__":
    try:
        server = msgpackrpc.Server(NormalizeServer())
        server.listen(msgpackrpc.Address("0.0.0.0", 8889))
        server.start()
    except KeyboardInterrupt:
        print 'received, shutting down server'