grpc/examples/python
Xuan Wang 40f20c0f48
[Python fix-it][Aysnc Example] Adding examples for aysnc interceptor context propagaton (#32840)
### Description

Fix https://github.com/grpc/grpc/issues/24470.

Adding one example which demonstrate the following use cases:

* Generate RPC ID on client side and propagate to server.
* Context propagation from client to server.
* Context propagation between different server interceptors and the
server handler.

## Use:

1. Start server: `python3 -m async_greeter_server_with_interceptor`
2. Start client: `python3 -m async_greeter_client`

### Expected Logs:

* On client side:

```
Sending request with rpc id: 73bb98beff10c2dd7b9f2252a1e2039e
Greeter client received: Hello, you!
```

* On server side:

```
INFO:root:Starting server on [::]:50051
INFO:root:Interceptor1 called with rpc_id: default
INFO:root:Interceptor2 called with rpc_id: Interceptor1-default
INFO:root:Handle rpc with id Interceptor2-Interceptor1-73bb98beff10c2dd7b9f2252a1e2039e in server handler.
```
2023-05-04 19:31:01 +00:00
..
async_streaming Update third_party/protobuf to 3.21.4 (#30377) 2022-08-04 09:39:49 -07:00
auth explain that keys must be lower cased (#31586) 2023-01-10 16:42:29 -08:00
cancellation Remove enum and future (#31381) 2022-10-18 14:58:30 -07:00
compression Introduce Python import sorting to our sanity test suite (#26768) 2021-07-26 12:31:21 -07:00
data_transmission Update third_party/protobuf to 3.21.4 (#30377) 2022-08-04 09:39:49 -07:00
debug Make Buildifier Sanity Test Strict (#27807) 2021-11-03 14:57:04 -07:00
errors Remove enum and future (#31381) 2022-10-18 14:58:30 -07:00
health_checking Add examples for timeout, kepp_alive, reflection and health_checking (#32243) 2023-02-03 14:11:27 -08:00
hellostreamingworld Update third_party/protobuf to 3.21.4 (#30377) 2022-08-04 09:39:49 -07:00
helloworld Add examples for timeout, kepp_alive, reflection and health_checking (#32243) 2023-02-03 14:11:27 -08:00
interceptors [Python fix-it][Aysnc Example] Adding examples for aysnc interceptor context propagaton (#32840) 2023-05-04 19:31:01 +00:00
keep_alive Add examples for timeout, kepp_alive, reflection and health_checking (#32243) 2023-02-03 14:11:27 -08:00
lb_policies Add lb policy example (#32256) 2023-02-03 09:58:50 -08:00
metadata Update third_party/protobuf to 3.21.4 (#30377) 2022-08-04 09:39:49 -07:00
multiplex Update third_party/protobuf to 3.21.4 (#30377) 2022-08-04 09:39:49 -07:00
multiprocessing Fix typo in multiprocessing example Readme (#30132) 2022-11-22 14:32:56 -08:00
no_codegen Introduce Python import sorting to our sanity test suite (#26768) 2021-07-26 12:31:21 -07:00
retry Add retry example for gRPC Python (#26829) 2021-07-29 17:31:05 -07:00
route_guide Add concurrency into python example in route_guide (#31724) 2022-12-21 11:17:14 -08:00
timeout Add examples for timeout, kepp_alive, reflection and health_checking (#32243) 2023-02-03 14:11:27 -08:00
uds Update third_party/protobuf to 3.21.4 (#30377) 2022-08-04 09:39:49 -07:00
wait_for_ready Add wait_for_ready with client timeout example (#32183) 2023-01-25 11:02:13 -08:00
xds Update third_party/protobuf to 3.21.4 (#30377) 2022-08-04 09:39:49 -07:00
Makefile Add examples for timeout, kepp_alive, reflection and health_checking (#32243) 2023-02-03 14:11:27 -08:00
README.md Docs: fix links to quick start pages 2020-06-16 08:40:59 -04:00