python -m grpc.tools.protoc \
--proto_path=. \
--proto_path=${GOOGLEAPIS_DIR} \
--python_out=python \
--grpc_python_out=python \
${PROTO_NAME}.proto
Hello,I want to write a python script that will parse a proto message without having the definition compiled beforehand. Basically, I want the script to take in a .proto definition as an argument at runtime and compile it using protoc so the script can parse any protobuf message. Is there a python module available to invoke protoc?
--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/e6d2011f-d4fc-417f-aefd-fffb03a29a1co%40googlegroups.com.