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_inAbove fixed by updating protoc to 3.18.0
Release files for m1l0-protobufs 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| m1l0_protobufs-1.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / m1l0_protobufs-1.4.0-py3-none-any.whl
| Download URL | m1l0_protobufs-1.4.0-py3-none-any.whl |
|---|---|
| Size | 12.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
076af2de5f181ebee35a3aa90630c9487259d41ec1d367f493aea6e5f96804e3
|
|
BLAKE2b-256 checksum How to use checksums |
67046294719ee3845ced461d2709b78cd05636a407113c959114605e97ee72d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|