Update README with example of calling protoc from python (#149)
This commit is contained in:
		| @@ -70,13 +70,20 @@ message Greeting { | ||||
| } | ||||
| ``` | ||||
|  | ||||
| You can run the following: | ||||
| You can run the following to invoke protoc directly: | ||||
|  | ||||
| ```sh | ||||
| mkdir lib | ||||
| protoc -I . --python_betterproto_out=lib example.proto | ||||
| ``` | ||||
|  | ||||
| or run the following to invoke protoc via grpcio-tools: | ||||
|  | ||||
| ```sh | ||||
| pip install grpcio-tools | ||||
| python -m grpc_tools.protoc -I . --python_betterproto_out=lib example.proto | ||||
| ``` | ||||
|  | ||||
| This will generate `lib/hello/__init__.py` which looks like: | ||||
|  | ||||
| ```python | ||||
|   | ||||
		Reference in New Issue
	
	Block a user