-sharp flask route
@app.route("/test")
def test():
-sharp flask
send_grpc()
-sharp __main__
def send_grpc():
channel = grpc.insecure_channel("server_host")
client = something_pb2_grpc.SomethingStub(channel=channel)
-sharp flask
res = client.SayHello(
something_pb2.Hellp(word="")
)
print res
does anyone know why this is? is flask and grpc incompatible?
is there any solution?