Commit Graph

14 Commits

Author SHA1 Message Date
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
Patrice Chalin
d109c5be50 Link to Python gRPC page on grpc.io
The newly updated [gRPC Python](https://grpc.io/docs/languages/python/) page, contains links to the quick start, tutorial, examples and more! Link directly to that page, rather than refer to only part of its contents.
2020-11-11 19:37:03 -05:00
Richard Belleville
8f1e181189 Merge remote-tracking branch 'origin/master' into dynamic_stubs 2020-08-06 12:32:47 -07:00
Richard Belleville
2c1efcd0ae Add documentation 2020-08-06 12:25:21 -07:00
Richard Belleville
0eabc3ec74 Add to Python documentation 2020-07-13 23:12:39 +00:00
Patrice Chalin
5ac3aa789f Docs: fix links to grpc.io tutorial pages 2020-06-16 08:47:24 -04:00
Patrice Chalin
4c4933e056 Docs: fix links to quick start pages 2020-06-16 08:40:59 -04:00
Lidi Zheng
cc628584a6 Fix the Sphinx auto generation 2019-10-30 16:33:47 -07:00
Lidi Zheng
83ae68c5f0 Document the local credentials 2019-10-30 16:26:51 -07:00
Richard Belleville
f900eec41d Revert "Merge pull request #18727 from grpc/revert_compression"
This reverts commit 8054a731d1, reversing
changes made to c3d3cf8053.
2019-04-11 13:04:54 -07:00
Richard Belleville
167540efd4 Revert "Merge pull request #18564 from grpc/compression"
This reverts commit 9dfeb14be0, reversing
changes made to 7009f2df58.
2019-04-11 10:10:29 -07:00
Richard Belleville
5afd77398e Implement compression API within gRPC Python. 2019-04-09 15:14:03 -07:00
Richard Belleville
dd4830eae8 Make gRPC version string available as grpc.__version__ 2018-12-27 13:50:30 -08:00
Lidi Zheng
b1b669300f Update Python documentation
* Reorganize the section titles
* Add Tutorial and Example
2018-11-12 13:54:53 -08:00