Git Product home page Git Product logo

grpc_etcd_example's Introduction

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

grpc_etcd_example's People

Contributors

lishulongvi avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

grpc_etcd_example's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.