last-before-sharing
This commit is contained in:
1 parent
dee68043d1
commit
3966299a91
15 files changed
+1287
-18
No files matched your search
@@ -0,0 +1,17 @@
|
||||
from socket import MsgFlag
|
||||
import protoparser
|
||||
import json
|
||||
|
||||
def parseMessage(pb, parent):
|
||||
if hasattr(pb, 'messages'):
|
||||
for msg in pb.messages:
|
||||
print(pb.messages)
|
||||
|
||||
|
||||
|
||||
pb = protoparser.parse_from_file("pb/messages.proto")
|
||||
#print(json.dumps(pb))
|
||||
print(json.dumps(pb.messages))
|
||||
|
||||
with open('messages.json', 'w') as f:
|
||||
f.write(pb)
|
||||
Reference in new issue
Block a user