import grpc
import compute_pb2
import compute_pb2_grpc
_HOST = 'www.xxx.com'
_PORT = '5555'
def main():
with grpc.insecure_channel("{0}:{1}".format(_HOST, _PORT)) as channel:
client = compute_pb2_grpc.ComputeStub(channel=channel)
response = client.SayHello(compute_pb2.HelloRequest(helloworld="123456"))
print("received: " + response.result)
if __name__ == '__main__':
main()