14 """The Python implementation of the GRPC helloworld.Greeter client."""
16 from __future__
import print_function
24 import helloworld_pb2_grpc
26 _DESCRIPTION =
"Get a greeting from a server."
29 def run(server_address, secure):
39 print(
"Greeter client received: " + response.message)
42 if __name__ ==
'__main__':
43 parser = argparse.ArgumentParser(description=_DESCRIPTION)
44 parser.add_argument(
"server",
46 help=
"The address of the server.")
50 help=
"If specified, uses xDS credentials to connect to the server.")
51 args = parser.parse_args()
53 run(args.server, args.xds_creds)