You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* re-implement README gRPC client example to be a self-contained script
- fix a syntax error
- fix a usage error
* asyncio.run() was added in 3.7
- this lib targets >= 3.6
* Apply suggestions from code review
Optimized imports, store RPC call result before printing
Co-authored-by: Arun Babu Neelicattu <arun.neelicattu@gmail.com>
* add entry-point check to example
Co-authored-by: Arun Babu Neelicattu <arun.neelicattu@gmail.com>
Copy file name to clipboardExpand all lines: README.md
+27-13Lines changed: 27 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,6 @@ This project exists because I am unhappy with the state of the official Google p
37
37
- Uses `SerializeToString()` rather than the built-in `__bytes__()`
38
38
- Special wrapped types don't use Python's `None`
39
39
- Timestamp/duration types don't use Python's built-in `datetime` module
40
-
41
40
This project is a reimplementation from the ground up focused on idiomatic modern Python to help fix some of the above. While it may not be a 1:1 drop-in replacement due to changed method names and call patterns, the wire format is identical.
42
41
43
42
## Installation
@@ -126,7 +125,7 @@ Greeting(message="Hey!")
126
125
127
126
The generated Protobuf `Message` classes are compatible with [grpclib](https://github.com/vmagamedov/grpclib) so you are free to use it if you like. That said, this project also includes support for async gRPC stub generation with better static type checking and code completion support. It is enabled by default.
128
127
129
-
Given an example like:
128
+
Given an example service definition:
130
129
131
130
```protobuf
132
131
syntax = "proto3";
@@ -153,22 +152,37 @@ service Echo {
153
152
}
154
153
```
155
154
156
-
You can use it like so (enable async in the interactive shell first):
0 commit comments