M1L0 Protobufs
Project description
M1L0 Protobufs
Protobufs for micro services used by the M1L0 framework
Current list of protobufs:
-
protobufs/imagebuilder
Image builder service
-
protobufs/dataservice
Data pipeline service
The python package contains the python client needed to interface with the grpc services.
To use the client:
from m1l0_services.imagebuilder import image_builder_pb2
from m1l0_services.imagebuilder import image_builder_pb2_grpc
The protobufs are packaged into a PyPI package and published at the following location:
https://pypi.org/project/m1l0-protobufs/
Using buf
# shows which packages will be built; used as debugging
buf build -o -#format=json | jq '.file[] | .package' | sort | uniq | head
buf ls-files
buf lint # apply liniting to protobuf files
References
TODO:
- Setup type checking
Issues:
-
Compiling grpc_python_plugin
The grpc_python_plugin is required to use buf generate
To build from source:
git clone --recursive https://github.com/grpc/grpc cmake . cmake --build . --target plugins
-
Unable to call buf generate as its failing with following error:
Unknown flag: --descriptor_set_in
Above fixed by updating protoc to 3.18.0
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 Distributions
Built Distribution
File details
Details for the file m1l0_protobufs-1.3.1-py3-none-any.whl
.
File metadata
- Download URL: m1l0_protobufs-1.3.1-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8b2d423d9fab782b1c452051c4f08b05a897255e3d86cb8a523ae9d7f2200f9 |
|
MD5 | 2a44d6a525a5343312aaf397170cf545 |
|
BLAKE2b-256 | f431e62aff6f7510bedf0ae65b0c07d3dd5ead1a2faf915e76c4fbe5d24d861a |