Hi,

Here is an unit test case using stream.write() and stream.read() to 
communicate in bidirectional streaming: 
https://github.com/grpc/grpc/blob/master/src/python/grpcio_tests/tests_aio/unit/channel_test.py#L180

Sorry that we didn't have an example to demonstrate this usage.

On Tuesday, November 30, 2021 at 11:46:26 AM UTC-8 n.me...@gmail.com wrote:

> Hello,
> I apologize in advance if it is a dumb question, but I was wondering how 
> can I do something like stream.write() or stream.read() in bidirectional 
> streaming in python where I want to asynchronously call these.
>
> The official gRPC Python AsyncIO API documentation only has abstract 
> methods in the classes. Does this mean that I actually have to (override) 
> implement the methods myself? How do I actually get the context to 
> correctly configure a class like grpc.aio.StreamStreamCall() ? (Apologies 
> again if it is a dumb question, I'm a beginner to this and development in 
> general)
>
> I referred to these sources but couldn't find a direct answer-
> https://grpc.github.io/grpc/python/grpc_asyncio.html#overview
> https://github.com/grpc/grpc.io/issues/726#issuecomment-806234300
>
> https://stackoverflow.com/questions/67465629/grpc-python-server-to-client-communication-through-function-call
>
> https://pretagteam.com/question/how-do-i-handle-streaming-messages-with-python-grpc
> https://grpclib.readthedocs.io/en/latest/client.html
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/b8b6df19-3401-492b-a044-35bc0d5279e3n%40googlegroups.com.

Reply via email to