Skip to main content

Provides the missing pieces for gRPC Gateway.

Project description

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file protoc_gen_openapiv2_protoc3_19-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for protoc_gen_openapiv2_protoc3_19-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f53a44cee24a48f46847c1e7cd09ff15f1aae8eb1c3bd1c409f198c4ad0f95bf
MD5 d23f4c2f12143c276656deec5e19eb4b
BLAKE2b-256 9a66593a5a3137a1fda1abc4412ffbe6653b6b5f0bff7aed84efbfb231fd1948

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page