Skip to main content

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/*

Release files for protoc-gen-openapiv2 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for protoc-gen-openapiv2 0.0.1
File Size Uploaded
protoc-gen-openapiv2-0.0.1.tar.gz 7.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for protoc-gen-openapiv2 0.0.1
File Interpreter ABI Platform
protoc_gen_openapiv2-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 15.2 kB

Release files / protoc-gen-openapiv2-0.0.1.tar.gz

Download URL protoc-gen-openapiv2-0.0.1.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6f79188d842c13177c9c0558845442c340b43011bf67dfef1dfc3bc067506409
BLAKE2b-256 checksum
How to use checksums
d8d284fecd8df61640226c726c12ad7ddd2a7666a7cd7f898b9a5b72e3a66d44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release files / protoc_gen_openapiv2-0.0.1-py3-none-any.whl

Download URL protoc_gen_openapiv2-0.0.1-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
18090c8be3877c438e7da0f7eb7cace45a9a210306bca4707708dbad367857be
BLAKE2b-256 checksum
How to use checksums
2dacbd8961859d8f3f81530465d2ce9b165627e961c00348939009bac2700cc6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page