Initial working version

This commit is contained in:
Michael Mandl 2020-03-09 21:15:48 +01:00
commit 959be5996a
4 changed files with 56 additions and 0 deletions

13
python-client/greet_client.py Executable file
View file

@ -0,0 +1,13 @@
#!/usr/bin/env python3
import grpc
import hello_pb2
import hello_pb2_grpc
channel = grpc.insecure_channel("localhost:50505")
stub = hello_pb2_grpc.HelloServiceStub(channel)
reply = stub.greet(hello_pb2.GreetRequest(message="Hello service"))
print(f"service replied \"{reply.message}\"")