from __future__ import print_function
import logging

import grpc
import grpc.experimental

# NOTE: The path to the .proto file must be reachable from an entry
# on sys.path. Use sys.path.insert or set the $PYTHONPATH variable to
# import from files located elsewhere on the filesystem.

protos = grpc.protos("helloworld.proto")
services = grpc.services("helloworld.proto")

logging.basicConfig()

response = services.Greeter.SayHello(
    protos.HelloRequest(name='you'), 'localhost:50051', insecure=True)

print("Greeter client received: " + response.message)
print(type(response))
