/grpc-py

A short demonstration of how Grpc is integrated within a simple Python project

Primary LanguagePython

GRPC - Python implementation

This is a short demo of how to use Grpc in Python

The project is dockerized

Installation instructions:

  • Make sure Python is installed on your local machine
  • Create virtual environment by using command src server && python3 -m virtualenv venv and src client && python3 -m virtualenv venv
  • Activate a virtual environment by using cd server && source venv/bin/activate and cd client && source venv/bin/activate
  • Install dependencies using pip3 install -r requirements.txt on both client and server
  • Run python3 app.py on both client and server
  • Refer to the GRPC official Python documentation on how to compile the protocol buffers