File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- sudo apt install -y protobuf-compiler
2- protoc ./stats.proto --python_out=./
1+ # sudo apt install -y protobuf-compiler
2+ # wget https://github.com/protocolbuffers/protobuf/releases/download/v23.1/protoc-23.1-linux-aarch_64.zip
3+ ../../bin/protoc ./stats.proto --python_out=./
34python3 -m grpc_tools.protoc -I ./ --python_out=./ --grpc_python_out=./ ./stats.proto
Original file line number Diff line number Diff line change 22"""Client and server classes corresponding to protobuf-defined services."""
33import grpc
44
5- import stats_pb2 as stats__pb2
5+ from . import stats_pb2 as stats__pb2
66
77
88class StatsServiceStub (object ):
Original file line number Diff line number Diff line change 11from .stats import StatsAPIService
2- from .handler import HandlerAPIService
3- from .logger import LoggerAPIService
2+
43
54
65class APIService (StatsAPIService ):
You can’t perform that action at this time.
0 commit comments