Yash Tibrewal
41ec08c69a
* Update third_party/protobuf * run tools/distrib/python/make_grpcio_tools.py * regenerate protos for ruby, php * update build_handwritten.yaml * regenerate projects * Build - Use :well_known_type_protos instead of :well_known_protos * Fix target * Update upb * Update Python for Protobuf 4.21 (#140) * Update protobuf dependency on grpcio-tools * Off by one * Drop python 3.6 support * Try upgrading pip * And in the other script * Try to figure out if we're compatible with abi3 * See what we've already got installed * Update the requirements.txt file I didn't know existed * And here too * See what's installed * Let's try that again * Remove * Try to confirm version * Let me see the generated code * Fix non-Bazel test runner * Work for all test directories * Regenerate example protos * Clean up * Generate .pyi files * Fix type checking and linting * Exclude pyi files from isort * Upgrade to 3.21.4 * Update iwyu to get around messy protobuf IWYU rules Co-authored-by: Richard Belleville <gnossen@gmail.com> |
2 years ago | |
---|---|---|
.. | ||
BUILD |
…
|
|
README.cn.md |
…
|
|
README.en.md |
…
|
|
alts_client.py |
…
|
|
alts_server.py |
…
|
|
client.py |
…
|
|
demo.proto |
…
|
|
demo_pb2.py | Update third_party/protobuf to 3.21.4 (#30377) | 2 years ago |
demo_pb2.pyi | Update third_party/protobuf to 3.21.4 (#30377) | 2 years ago |
demo_pb2_grpc.py | Update third_party/protobuf to 3.21.4 (#30377) | 2 years ago |
server.py |
…
|
README.en.md
Data transmission demo for using gRPC in Python
Four ways of data transmission when gRPC is used in Python. Official Guide
-
unary-unary
In a single call, the client can only send request once, and the server can only respond once.
client.py: simple_method
server.py: SimpleMethod
-
stream-unary
In a single call, the client can transfer data to the server an arbitrary number of times, but the server can only return a response once.
client.py: client_streaming_method
server.py: ClientStreamingMethod
-
unary-stream
In a single call, the client can only transmit data to the server at one time, but the server can return the response many times.
client.py: server_streaming_method
server.py: ServerStreamingMethod
-
stream-stream
In a single call, both client and server can send and receive data to each other multiple times.
client.py: bidirectional_streaming_method
server.py: BidirectionalStreamingMethod