Provides the missing pieces for gRPC Gateway.
Project Links
Meta
Author: eapolinario
Requires Python: >=3.6
Classifiers
Programming Language
- Python :: 3
License
- OSI Approved :: BSD License
Operating System
- OS Independent
gRPC Gateway Support
This repo generates the missing Python code to support code generated using gRPC Gateway protoc annotations.
This package depends on googleapis-common-protos to provide google.api.annotations_pb2 and others that
the generated code will depend on. It's also worth noting that the generated protobuf stubs are specific for
the new protobuf major version (as described in https://developers.google.com/protocol-buffers/docs/news/2022-05-06).
Usage
pip install protoc-gen-openapiv2
Building
- Install go
./gen-openapi-protos.shwill generate the code from grpc-gateway.python -m pip install --upgrade build && python -m buildto build the package.- optional - setup PyPi credentials and
python -m pip install --user --upgrade twine && python -m twine upload --repository pypi dist/*