git clone https://github.com/reggiepy/common-pygrpc.git
cd common-pygrpc
# 打包成 wheel
python setup.py bdist_wheel
# run in client server
python client.py
# run in server server
python server.py
# 生成 python rpc
python -m grpc_tools.protoc -I proto --python_out=lib --grpc_python_out=lib common.proto
# 生成 js rpc
protoc -I proto common.proto --js_out=import_style=commonjs:lib --grpc-web_out=import_style=commonjs,mode=grpcwebtext:lib
# 生成 golang rpc
protoc -I proto common.proto --go_out=plugins=grpc:lib
# 发布到pypi
twine upload dist\common_pygrpc-0.0.5* --verbose
pip install common_pygrpc-0.0.1-py3-none-any.whl --force
# or
pip install common_pygrpc