Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Compile protobuffers with setuptools

Project description

protobufferize

A simple setuptools plugin to compile proto files at build time.

Installation

Install from PyPI: pip install protobufferize

Configuration

Available configuration parameters:

  • clearOutputDirectory [default: false]
  • outputDirectory [default: ./output]
  • protoSourceRoot [default: ./protos]
  • protoVersion [default: 3.10.1]

XML configuration example:

<ProtobufferizeConfiguration>
	<clearOutputDirectory>false</clearOutputDirectory>
	<outputDirectory>test_data/output</outputDirectory>
	<protoSourceRoot>test_data/protos</protoSourceRoot>
	<protoVersion>3.10.1</protoVersion>
</ProtobufferizeConfiguration>

A xml configuration file named protobufferize.xml should be put in the python's project root folder. In alternative, the configuration file's path can be specified in the environment variable protobufferize_conf.

Usage

Compile every .proto file in protoSourceRoot subdirectories and output in the specified outputDirectory (outputDirectory gets emptied beforewards if clearOutputDirectory set to true).

python setup.py protobufferize

Project details


Download files

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

Files for protobufferize, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size protobufferize-1.0.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page