Skip to content
Snippets Groups Projects
many.py 271 B
Newer Older
TYLER CARAZA-HARTER's avatar
TYLER CARAZA-HARTER committed
import grpc
import math_pb2_grpc, math_pb2
import sys

nums = [int(arg) for arg in sys.argv[1:]]
print(nums)
channel = grpc.insecure_channel("localhost:5440")
stub = math_pb2_grpc.CalcStub(channel)
resp = stub.MultMany(math_pb2.MultManyReq(nums=nums))
print(resp.result)