Python, JavaScript, C++, Rust, Java, Go, ObjectiveC, PHP, Ruby, C#
Ubuntu 22.04
x86_64
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.
protoc-polyglot --languages python --service-yml samples/services.yml
protoc-polyglot -l cpp python -y samples/services.yml
- Build a 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 protocpolyglot/protoc-polyglot'
DOCKER_RUN [command arguments]
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.
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.
- 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 - [email protected]
- Add more languages: Kotlin, Haskell, Perl, Lua, Swift etc.
- Create web client
- Create CLI client