gRPC example - Go语言中文社区

gRPC example


Github: https://github.com/heydatatalks/gRPC_example/tree/master

#1.install gRPC

python -m pip install grpcio

#2.install gRPC tools, including protoc built-in.

python -m pip install grpcio-tools

#3.build proto

python -m grpc_tools.protoc -I./ --python_out=. --grpc_python_out=. ./hello.proto

#4.run server

python greeter_server.py

#5.run client, please open another terminal to run this

python greeter_client.py


---

Reference

[1] https://juejin.im/post/5b19590b6fb9a01e4b062391

[2] https://grpc.io/docs/guides/

[3] https://developers.google.com/protocol-buffers/docs/proto3

版权声明:本文来源简书,感谢博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://www.jianshu.com/p/7e9852676e18
站方申明:本站部分内容来自社区用户分享,若涉及侵权,请联系站方删除。
  • 发表于 2020-02-02 14:53:14
  • 阅读 ( 1046 )
  • 分类:

0 条评论

请先 登录 后评论

官方社群

GO教程

猜你喜欢