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#
TODO:
Kotlin, Haskell, Perl, Lua, Swift etc.
Supported OS:
Ubuntu 22.04
Supported architectures:
x86_64
Getting started
- Build prepared docker image
alias DOCKER_RUN='docker run --rm -v [output dir]:/data/output -v [output doc dir]:/data/doc -v [input protos dir]:/data/protos protoc-polyglot-x64:1.54.3'
DOCKER_RUN [command]
List of commands:
- List available languages and services:
cli.py list
- Compile a service:
[language]/cli.py protoc [name]
- Compile all services:
[language]/cli.py protoc
Examples:
alias DOCKER_RUN='docker run --rm -v $(pwd)/output:/data/output -v $(pwd)/doc:/data/doc -v $(pwd)/samples:/data/protos -v $(pwd)/tests:/data/tests protoc-polyglot-x64:1.54.3'
DOCKER_RUN cli.py list
DOCKER_RUN python/cli.py protoc bookclub
DOCKER_RUN js/cli.py protoc
DOCKER_RUN cli.py doc
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
- Create a fork of this repository
- Clone your fork to your computer
- Create a new branch in the forked repository from the base branch
dev
with a meaningful name - Solve the issue
- Push your changes to the Fork repository.
- 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
protoc-polyglot python protoc
protoc-polyglot [language] [service-yml/directory/file] -s [service name] -d [directory input] -f [files] -o [output dir, default protoc-output -> default protoc-output/bookclub/python ...]
protoc-polyglot list
protoc-polyglot python file.yml
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
Built Distribution
Hashes for protoc_polyglot-0.0.1.post69.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18623ed95fbc4aeae59fc9a384c216689fc4f086c4f9f065660624f85b58765c |
|
MD5 | 4ac1393fdcb5427cdcee3c19bffccdb0 |
|
BLAKE2b-256 | 0b95a60e790d095096960901d1b57ed7f9002a161caa50b205f87515322aa91c |
Hashes for protoc_polyglot-0.0.1.post69-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 187b6b02ba788f3d775b8a1485de805b58cb32adb1c7327387eafbe5f331bae0 |
|
MD5 | 182547bb1c0a9cf232af708f6e20a832 |
|
BLAKE2b-256 | 8dd4570c5e28d1dc4cdafb25c401ba13b9f5b55ceb38e1879c87ef6ef11790cb |