Lidi Zheng
2231c2ba77
* Add isort_code.sh to sanity tests * Run tools/distrib/isort_code.sh * Fine tune the import order for relative imports * Make pylint and project generation happy * Fix a few corner cases * Use --check instead of --diff * The import order impacts test result somehow * Make isort print diff and check output at the same time * Let tools/run_tests/python_utils be firstparty library * Run isort against latest HEAD |
3 years ago | |
---|---|---|
.. | ||
BUILD |
…
|
|
README.cn.md |
…
|
|
README.en.md |
…
|
|
alts_client.py | Introduce Python import sorting to our sanity test suite (#26768) | 3 years ago |
alts_server.py | Fix the pylint complain | 5 years ago |
client.py | Introduce Python import sorting to our sanity test suite (#26768) | 3 years ago |
demo.proto |
…
|
|
demo_pb2.py |
…
|
|
demo_pb2_grpc.py |
…
|
|
server.py | Introduce Python import sorting to our sanity test suite (#26768) | 3 years ago |
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