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 /data/protos/services.yml
protoc-polyglot -l cpp python -y /data/protos/services.yml
Optional: bulding Docker image locally
- 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]
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
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
Built Distribution
File details
Details for the file protoc_polyglot-0.0.1.post78.tar.gz
.
File metadata
- Download URL: protoc_polyglot-0.0.1.post78.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83f1b0ff185b114e776b405edffea0051d34345e0652bee45443450987fefeba |
|
MD5 | 2a9a2bbedd3a55b83dba940a63938adf |
|
BLAKE2b-256 | 2c1d38b9de0b70560757d9d4aac8545a639f3151f154aacc2d6b5a215c1a168c |
File details
Details for the file protoc_polyglot-0.0.1.post78-py3-none-any.whl
.
File metadata
- Download URL: protoc_polyglot-0.0.1.post78-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60e10eb74fcb02eda453a96164d58356adc2f3c8f8288d612322673a0e23fc9f |
|
MD5 | 9c3e6ed8c163d2466ef558c2e2e049c6 |
|
BLAKE2b-256 | c30b5970744f494dfc7a854aedc49a5ebafcb04bf8afc9386a6cd5867dc75714 |