In Python, is it possible at runtime to convert the Google Protocol log file .prototo a python class that reads this data? Python is a very dynamic language. When you use python protocto convert the file .prototo the source code, the generated code uses python metaclasses a lot, so it is already very dynamic.
Ideally, I think of something like this:
import whatever
module = whatever.load_from_file("myfile.proto")
Is it possible?
(I'm new to protocol buffers, please let me know if my question doesn't make sense)
source
share