Skip to content

Pravesh22/grpc_basic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9b3f174 · Jun 29, 2021

History

10 Commits
Jun 29, 2021
Jun 17, 2021
Jun 17, 2021
Jun 17, 2021
Jun 17, 2021
Jun 17, 2021

Repository files navigation

grpc_basic

Basic of how gRPC works

Create foods_pb2 and foods_grpc_pb2 file using foods proto file

$ python -m grpc_tools.protoc -I. /proto_folder_path --python_out=. /path _to_save_pb2_grpcpb2 --grpc_python_out=. /protofile_path

After running this command foods_pb2.py and foods_grpc_pb2.py file will be generated in given path

To run code

Run food_server.py

$ python /food_server_dir_path/food_server.py

then run food_clients.py

$ python /food_clients_dir_path/food_clients.py

Output

message: "Number of order : 2, Selected Cuisine : Nepali"

About

Basic of how gRPC works

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages