Skip to content

0xlexie/python-grpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Status: Finished

gRPC Overview in Python

This repository contains a simple example of a gRPC implementation. For more information about this project in particular visit the gRPC's website.

About the example

I divided the projects into sub-folders in case I will do more tests later, so far the repository consists of the "basics" and the "café". The first one was following the example from the documentation, the latter is an expanded version of it that I build while trying out the features. Both are a unary RPC. In their folders you will find some auto-generated files as well as our client, server and most importantly - the proto file.

Run the project

To run the project you need to make sure that you have installed the required packages, all defined in the requirements.txt file. Make sure that you have installed pip beforehand.

  1. Start with:

    pip install -r requirements.txt
  2. Next, you will need two terminals, one for the server and another one for the client. Then run:

     python <project name>_server.py
     python <project name>_client.py

Useful resources

About

Basic implementation and overview of gRPC (Remote Procedure Calls) in Python.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages