Skip to content

gavinln/proto-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

proto-python

About

Using Protobuf with Python

Setup software

  1. Setup the Python version pipenv --python $(which python3)

  2. Install libraries manually pipenv install protobuf

  3. 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

  4. Display the version of the protocol compiler ./protobuf/bin/protoc --version

Protobuf Python example1

  1. Generate python code for protobuf example1 make protoc_exmaple1

  2. Run the example python example1/proto-python-example1

Links

About

Example of Protobuf using Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published