https://github.com/erickrus/protobuf_demo
https://github.com/erickrus/protobuf_demo
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/erickrus/protobuf_demo
- Owner: Erickrus
- Created: 2018-10-11T05:36:53.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-11T06:00:50.000Z (almost 7 years ago)
- Last Synced: 2025-01-11T22:29:24.543Z (9 months ago)
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# protobuf_demo
This is the demo for python(3.x). It is forked and adjusted based on google's original example(https://github.com/machinalis/protobuf-python3/tree/master/examples) which uses on Makefile and python(2.x).Please install protoc first:
1, download https://github.com/protocolbuffers/protobuf/releases/download/v3.6.1/protoc-3.6.1-linux-x86_64.zip
2, unzip protoc-3.6.1-linux-x86_64.zip
3, sudo ln -s ~/protobuf/bin/protoc /usr/bin/protoc
Run the demo
1, protoc --python_out=. addressbook.proto
2, python3.6 add_people.py addressbook
3, python3.6 list_people.py addressbook