python protobuf compiler
compile all protobuf files and create a single package distribution for can be installed with pip
requirements
- python >= 3.6
- git (only for build from git repository)
features
- support for multiples folders
- support multiples proto files
- Create self package for pip
- Support for build from github and gitlab repository
- Support for build from local directory
- support imports into proto file (see test folder for show example )
install
pip3 install protobuf-compiler
for check install, execute in your terminal:
protopy -h
arguments
- -h, --help : show this help message and exit
- -d PROTO_DIR, --dir PROTO_DIR : folder path where the .proto files are located
- -p PACKAGE_NAME, --package PACKAGE_NAME : package name
- -o OUTPUT_DIR, --output OUTPUT_DIR: output folder for save single package .tar.gz
- -g URL, --git URL : git reopsitory url where the .proto files are located
- -t TOKEN, --token TOKEN : git server api token
- -v VERSION, --version VERSION : tag version for build package
usage
protopy [-h] [-d PROTO_DIR] [-p PACKAGE_NAME] [-o OUTPUT_DIR]
example
- compile from git repository:
you can clone a git repository from gitlab and github
python3 -m protopy -o /my/target/dir -p testpackage -g https://github.com/netsaj/testing.git -t my-private-token
- compile from folder:
python3 -m protopy -o /my/output/dir -p testpackage -d /my/protofile/source/dir
install generate package in your app
run in your app folder:
pip3 install /my/output/dir/package-version.tar.gz
example:
- installing generate package:
pip3 install /Users/netsaj/temp/mytest-1.0.0.tar.gz
- import into you .py files:
from mytest.analytics import analytics_pb2
Authors
- Fabio Moreno fabiomoreno@outlook.com
Metadata
Release files for protobuf-compiler 1.0.20
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| protobuf_compiler-1.0.20.tar.gz | 5.3 kB | Without provenance | Details for protobuf_compiler-1.0.20.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| protobuf_compiler-1.0.20-py3-none-any.whl | Python 3 | none | any | Details for protobuf_compiler-1.0.20-py3-none-any.whl |
Total release size: 13.9 kB
Release files / protobuf_compiler-1.0.20.tar.gz
| Download URL | protobuf_compiler-1.0.20.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac8daa7187fb9cac7752008368b79d8d8e44dd1b154423fa7afd227a31d062f6
|
|
BLAKE2b-256 checksum How to use checksums |
8a51a3bc5e68c9a25f63ae934d635df59841cf66e76f47b350ea2fe212a9caaa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5
|
Release files / protobuf_compiler-1.0.20-py3-none-any.whl
| Download URL | protobuf_compiler-1.0.20-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0b80962b856afae18f7200a5debde241ebd1927ce5b9814c70c19e1f8c6d2260
|
|
BLAKE2b-256 checksum How to use checksums |
bbd6eef8da430f8a6df739d9de807db904a7b4c4103cb292f178201ca7e1121d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5
|
Security for protobuf-compiler 1.0.20
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.