pieterlouw / grpc-demos

GRPC demos in sundry languages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GRPC Demos

These are grpc.io demos for various tasks, I have written them in Node.js and Java, but feel free to contribute more demos in other languages!

Python

To generate/update the Python gRPC code, you have to manually do it through the terminal. I don't know if there's a way to let a build tool do it for you, but here's how to do it:

# change folders into the python folder
cd python

# generate code
python -m grpc_tools.protoc -I../proto --python_out=. --grpc_python_out=. ../proto/interchange.proto

You'll obviously need to have installed required dependencies, being grpcio and grpcio_tools.

About

GRPC demos in sundry languages

License:MIT License


Languages

Language:Java 45.4%Language:Kotlin 35.6%Language:JavaScript 10.5%Language:Python 8.5%