Skip to main content

Protoc wrapper for compilation into any language

Project description

All-in-one Protocol Buffers compilation tool

Supported languages:

Python, JavaScript, C++, Rust, Java, Go, ObjectiveC, PHP, Ruby, C#

Supported OS:

Ubuntu 22.04

Supported architectures:

x86_64

Getting started

First, install the Python package: pip install protoc-polyglot

Then, run a command using this manual:

protoc-polyglot \
  -l [languages] [service-yml/directory/file] \
  -s [service name] \
  -d [directory input] \
  -f [files] \
  -o [output dir, default protoc-output -> default protoc-output/bookclub/python ...] \
  -c [connection ip+port]

Documentation is created automatically in the output folder after each compilation run.

Examples

  • protoc-polyglot --languages python --service-yml samples/services.yml
  • protoc-polyglot -l cpp python -y samples/services.yml

Optional: bulding Docker image locally

  1. Build a docker image
  2. alias DOCKER_RUN='docker run --rm -v [output dir]:/data/output -v [output doc dir]:/data/doc -v [input protos dir]:/data/protos protocpolyglot/protoc-polyglot'
  3. DOCKER_RUN [command arguments]

Contribution

We love that you are interested in helping us with the development of the protoc-polyglot project. To make the process of contributing as simple as possible we have created a couple of guidelines on how to contribute.

Issue tracking and solving

We track every issue in YouTrack. Before solving any bug, make sure it's reported in YouTrack and not already solved.

Make sure to solve only one issue at a time.

Fork & Pull Request

  1. Create a fork of this repository
  2. Clone your fork to your computer
  3. Create a new branch in the forked repository from the base branch dev with a meaningful name
  4. Solve the issue
  5. Push your changes to the Fork repository.
  6. Create a Pull Request from your branch to the dev branch ( GitHub documentation about Pull Requests: https://help.github.com/articles/using-pull-requests)

The Pull Request should have a meaningful title, information about the changes you have made, and a link to the issue in YouTrack.

Do not add unnecessary files, and make sure not to push any sensitive personal information.

Protoc-polyglot team - protoc-polyglot@proton.me

TODO:

  • Add more languages: Kotlin, Haskell, Perl, Lua, Swift etc.
  • Create web client
  • Create CLI client

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

protoc_polyglot-0.0.1.post84.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

protoc_polyglot-0.0.1.post84-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file protoc_polyglot-0.0.1.post84.tar.gz.

File metadata

File hashes

Hashes for protoc_polyglot-0.0.1.post84.tar.gz
Algorithm Hash digest
SHA256 143bd4edc25abef9800275350131a45ea092aa8203ca1a82fcdd89c1a050cd56
MD5 21c97dcb961109541a115da8ee42eed3
BLAKE2b-256 d853314f5a1a44285807e62b65a726374c60c377eb1766d936b141c6fcce8753

See more details on using hashes here.

File details

Details for the file protoc_polyglot-0.0.1.post84-py3-none-any.whl.

File metadata

File hashes

Hashes for protoc_polyglot-0.0.1.post84-py3-none-any.whl
Algorithm Hash digest
SHA256 1bee3563777b8b1d138182e60292ee29fa0be6e515e834cbbeda46f34b4281e1
MD5 592342623b4705f94f9952e8df9a3f44
BLAKE2b-256 0a31e8be0c8010fef5a2c3496550866c8be4ce9b54af2ad952fa8d0aa37a0629

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page