thejcpalma / example_grpc_addressbook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gRPC example

This is a gRPC example application, composed of three modules:

  • contract - protocol buffers definition
  • server - implementation of service
  • client - invocation of service

Instructions

Create a python virtual environment and install de grpc packages

 # virtualenv is only used in Python2, pyvenv is deprecated
 # you may need to replace python with python3 on your machine

 # create a virtual environment
 # windows
 > python -m venv .venv
 > .venv\Scripts\activate

 # linux
 $ python -m venv .venv
 $ source .venv/bin/activate

 # install the packages
 python -m pip install grpcio
 python -m pip install grpcio-tools

See the README for each module.
Start at contract, then go to server, and finally go to the client.


SD Faculty

About


Languages

Language:Java 61.3%Language:Python 38.7%