shreybatra / Flask-with-Protocol-Buffer-Serializer

Flask sample project to demonstrate working with protocol buffers in request and response.
MIT License
19 stars 12 forks source link

update make_proto_file.py and read_display_proto_file.py #4

Closed keshav2904 closed 6 years ago

shreybatra commented 6 years ago

@keshav2904 did u run and test it?

keshav2904 commented 6 years ago

no i didn't. i would like to run and test it but i don't understand how do i make a .proto file with the schema of my request/response classes. as you said in the first point.

shreybatra commented 6 years ago

An example is already given for you to run and test the project. addressbook.proto

keshav2904 commented 6 years ago

how do i install protoc compiler on windows? i searched but couldn't fiigure it out

shreybatra commented 6 years ago

you can use this link.

keshav2904 commented 6 years ago

when i run the make_proto_file.py file, it shows the error "No module named google"... please help.

shreybatra commented 6 years ago

Are you sure you installed Protoc compiler as well as protobuf package of python?

pip install protobuf

keshav2904 commented 6 years ago

Thank you.. i have successfully tested it.