Example phonebook using Protocol Buffers. Programs to write and read messages from a file.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
addressbook.proto
addressbook_pb2.py
read_a_message.py
write_a_message.py

README.md

Protocol Buffer Python Example

Generate the client library from the proto file using the command:

protoc --python_out=. addressbook.proto

This will generate the file addressbook_pb2.py.

Running the examples

python write_a_message.py