Project: grpc-gateway-protoc-gen-openapiv2

Provides the missing pieces for gRPC Gateway.

Project Details

Latest version
0.1.0
Home Page
https://github.com/hack-edu/py_protoc_gen_openapiv2
PyPI Page
https://pypi.org/project/grpc-gateway-protoc-gen-openapiv2/

Project Popularity

PageRank
0.001478317477083565
Number of downloads
172330

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.

Usage

pip install grpc-gateway-protoc-gen-openapiv2

Building

  1. Install go
  2. ./gen-openapi-proto.sh will generate the code from grpc-gateway.
  3. python3 -m pip install --upgrade build && python3 -m build to build the package.
  4. optional - setup PyPi credentials and python3 -m pip install --user --upgrade twine && python3 -m twine upload --repository pypi dist/*