Is there a way compile protocol buffers into pure python code?

I am looking into using protocol buffers to communicate with some custom devices we have. The problem is that these devices run an embedded python interpreter and we cannot install extra libraries onto them. Is there a way to compile .proto files into python without requirement for the protobuf library?


Solution 1:

Give a try to protlib instead, its only 51.4 KB and you can delete some code there that handles types that you don't need.