Skip to content

tecnico-distsys/example_grpc_addressbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published