Skip to content

grpc etcd ,register server & discovery, protocol buffer seriliazer by python

Notifications You must be signed in to change notification settings

lishulongVI/grpc_etcd_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grpc_etcd_example

Proto3

  1. Protocol Buffer Language Guide
  2. Python 生成代码

Python

  1. pip install grpcio
  2. pip install grpcio-tools

Warning

/Users/lishulong/PycharmProjects/grpc_etct_example

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

想要生成在哪个包下,就把proto放到哪个包下,不用生成文件的包路径了

Etcd

  1. pip install etcd3
  2. docker-compose up
  3. http://127.0.0.1:8010/,修改下面红框的地址用来进行etcd的服务链接

image-20201023104717549

参考链接

  1. https://github.com/kragniz/python-etcd3,https://pypi.org/project/etcd3/
  2. https://grpc.io/docs/languages/python/quickstart/
  3. https://github.com/evildecay/etcdkeeper
  4. https://github.com/lishulongVI/script-book/blob/release/etcd-docker-compose.yml

About

grpc etcd ,register server & discovery, protocol buffer seriliazer by python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages