Skip to content

Commit

Permalink
enhancement #132: improve readme
Browse files Browse the repository at this point in the history
  • Loading branch information
FabienDanieau committed Aug 12, 2024
1 parent 4e13d47 commit 8f17c1e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,16 @@

## Generate gRPC code

### For Python:
Code for Python and C# is generated automatically by the CI. You just need to `git pull` to get the generated code after any pushed changes to the .proto. If you still need to generate these files locally, you can do the following commands

Python code is generated automatically for each commit. Just just need to `git pull` after you push changes to the .proto.
### For Python:

If you need to generate those files locally, just install `pip install mypy-protobuf` to generate the mypy stubs, and run:
Just install `pip install mypy-protobuf` to generate the mypy stubs, and run:

```python
python -m grpc_tools.protoc -I./protos --python_out=./python/reachy2_sdk_api --grpc_python_out=./python/reachy2_sdk_api --mypy_out=./python/reachy2_sdk_api --mypy_grpc_out=./python/reachy2_sdk_api ./protos/*.proto
```

### For C#

C# code is automatically generated by the github CI. If you need to build it locally, open `reachy_sdk.sln`` in Visual Studiom qnd
`Click Build > Build Solution`
Open `reachy_sdk.sln` in Visual Studio, and `Click Build > Build Solution`

0 comments on commit 8f17c1e

Please sign in to comment.