Skip to content

Basic client-server application using gRPC in Python

Notifications You must be signed in to change notification settings

copdips/grpc-python-example

 
 

Repository files navigation

gRPC with Python Example

Doc from : https://medium.com/@coderviewer/simple-usage-of-grpc-with-python-f714d9f69daa

This repository contains a simple example of using gRPC (gRPC Remote Procedure Calls) with Python. The example demonstrates a basic client-server application where the server adds two numbers.

Alt Text

Getting Started

Follow the steps below to run the example on your local machine.

Prerequisites

Installing Dependencies

pip install grpcio grpcio-tools

Generating gRPC files

python -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. calculator.proto

Running the Server

python server.py

Running the Client

python client.py

About

Basic client-server application using gRPC in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%