you can to follow the link click here
1)
brew install protobuf
pip install grpcio grpcio-tools
with python
python3 -m grpc_tools.protoc -I protos --python_out=. --grpc_python_out=. ./ml_service.proto
or
python -m grpc_tools.protoc --proto_path=. --python_out=. --grpc_python_out=. *.proto
protoc -I=. --python_out=. --grpc_python_out=. *.proto
this is don't work on python 3.10 and upper so try to use 3.9.13
-I: defines the directory where we search for any dependencies (we use . which is the current directory) --python_out: defines the location we want to generate a Python integration class in (again we use . which is the current directory) The last unnamed parameter defines the .proto file that will be compiled (we use the todolist.proto file in the current directory)
read more about BloomRPC