Skip to content

reggiepy/common_pygrpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

通用 grpc 服务

python version release build status License

Installation

git clone https://github.com/reggiepy/common-pygrpc.git
cd common-pygrpc

Usage

# 打包成 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

Install

pip install common_pygrpc-0.0.1-py3-none-any.whl --force
# or
pip install common_pygrpc

Architecture

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published