- Source code - Github
- Author - Gavin Noronha - gavinln@hotmail.com
Using Protobuf with Python
-
Setup the Python version pipenv --python $(which python3)
-
Install libraries manually pipenv install protobuf
-
Download the protocol compiler from https://github.com/protocolbuffers/protobuf/releases mkdir protobuf pushd protobuf curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v3.11.4/protoc-3.11.4-linux-x86_64.zip unzip protoc-3.11.4-linux-x86_64.zip popd
-
Display the version of the protocol compiler ./protobuf/bin/protoc --version
-
Generate python code for protobuf example1 make protoc_exmaple1
-
Run the example python example1/proto-python-example1
- Protocol buffers documentation
- Python protobuf project
- Using Protobuf from Python