Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A Script to translate .proto files to lightprotobuf messages

Project Description



lightprotobufgen is a commandline tool based on antlr4.5 to generate lightprotobuf compatible messages from a *.proto file.


lightprotobufgen <file.proto>

The script output on stdout it’s result

Current limitations

The tool is still in developpment and some features of official .proto format are not implemented yet :
  • import : imports statments generates an exception. you still can merge manually different files
  • global options : the global options are not supported yet
  • unique enum : will be implemented in next release
  • extends : Message extend are not implemented since it’s mostly usefull with imports and they are not supported yet
  • packages : Like google official implementation, it won’t be implemented because python use the file paths as modules/package

The 1.0 release will implement the full .proto specifications.

Release notes


  • Remove DESCRIPTION.rst because duplicate of README.rst


  • Comments added to the grammar
  • Correction of the syntax of negated set in the grammar

Release History

This version
History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(17.6 kB) Copy SHA256 Hash SHA256
Source None Mar 20, 2015

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting