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
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upType | 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 |
Generate the client library from the proto
file using the command:
protoc --python_out=. addressbook.proto
This will generate the file addressbook_pb2.py
.
python write_a_message.py