Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 528 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 528 Bytes

gRPC - Simple Server Streaming and Interceptors in Python

  • The example simply generate 10 random images at the server side and streams them when a client call is made.
  • On the client side we have an interceptor which will log the time stamp of images received.

To regenerate python server/client code:

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

To run server

python3 imageStreamingServer.py

To run client

python3 imageStreamingClient.py