grpc-gateway-protoc-gen-openapiv2
Provides the missing pieces for gRPC Gateway.
What it is and what it does
This package fills a gap in the gRPC Gateway ecosystem by providing Python code generation support for protoc annotations used by gRPC Gateway. When you use gRPC Gateway to generate service definitions with OpenAPI annotations, this package ensures the resulting Python code has the necessary imports and dependencies (primarily from googleapis-common-protos) to actually run. It is a build-time tool—you install it, use it as a protoc plugin during your code generation step, and the output integrates with your gRPC service definitions.
The package itself is minimal and focused: it depends only on googleapis-common-protos and provides the glue between gRPC Gateway's protoc annotations and Python's protobuf ecosystem. However, it has not been maintained since its initial release on 2021-05-09, meaning it may not work with significantly newer versions of dependencies that have been released since then.
Use it for:
- Generate Python gRPC service stubs from proto files that use gRPC Gateway OpenAPI annotations.
- Integrate gRPC Gateway-annotated protobuf definitions into a Python microservice project.
- Build a Python API server that exposes both gRPC and HTTP/JSON endpoints via gRPC Gateway.
- Support proto-first development workflows where gRPC Gateway annotations drive both API documentation and service implementation.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Generates Python support code for gRPC Gateway protoc annotations, enabling use of gRPC Gateway-generated protobuf definitions in Python projects.
No, unless you are maintaining legacy code that already depends on this package. The package is abandoned with no updates since 2021-05-09 and will not receive fixes for compatibility issues with newer dependencies. If you are starting a new gRPC Gateway project in Python, investigate whether gRPC Gateway's own Python support or alternative tooling has evolved to make this package unnecessary.
Install
grpc-gateway-protoc-gen-openapiv2 on PyPI
pip
pip install grpc-gateway-protoc-gen-openapiv2uv
uv add grpc-gateway-protoc-gen-openapiv2poetry
poetry add grpc-gateway-protoc-gen-openapiv2Installing grpc-gateway-protoc-gen-openapiv2
Before you install
Package has been abandoned since its only release on 2021-05-09 with no updates or maintenance activity. Install friction is low, but the lack of maintenance means no bug fixes or compatibility updates for newer dependencies.
License in practice
Licensed under BSD (permissive), so you can use and modify the code freely in commercial or private projects without restriction.
Quickstart
pip install grpc-gateway-protoc-gen-openapiv2
The package provides protoc plugin support; use it as part of your protobuf code generation workflow with gRPC Gateway annotations.
Requires Python >=3.6 and googleapis-common-protos as a runtime dependency.
Verify before relying
- Whether the generated code remains compatible with current gRPC and protobuf library versions.
- Whether gRPC Gateway annotation support has evolved since 2021 in ways this package does not handle.
- Real-world usage patterns and whether 212406 monthly downloads reflect active use or legacy dependencies.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — googleapis-common-protos |
| Maintenance | abandoned — 1,923 days since the last release |
| First released | |
| Downloads | 212,406/month — #9,456 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: grpc_gateway_protoc_gen_openapiv2-0.1.0-py3-none-any.whl
Tags
More Build Tools packages
Provides reusable utilities for Python…
permissive · top 100 on PyPI
tqdmWraps any iterable to display a real-time…
copyleft · top 100 on PyPI
pippip is the standard installer for Python…
permissive · top 100 on PyPI
hatchlingHatchling is a standards-compliant Python build…
permissive · top 100 on PyPI
grpcio-toolsGenerates Python gRPC service stubs and message…
permissive · top 1,000 on PyPI
pre-commitpre-commit is a framework for installing and…
permissive · top 1,000 on PyPI
protoc-gen-openapiv2Generates Python support code for gRPC Gateway…
permissive · top 5,000 on PyPI
hatch-protobufA Hatch build plugin that generates Python…
copyleft · top 15,000 on PyPI
aristaprotoGenerates Python gRPC stubs and message classes…
permissive · top 15,000 on PyPI
betterproto-fwGenerates idiomatic Python code from Protobuf 3…
permissive · top 15,000 on PyPI
betterproto2Generates idiomatic Python code from Protobuf…
permissive · top 5,000 on PyPI
ansys-api-tools-filetransferProvides auto-generated gRPC Python interface…
permissive · top 15,000 on PyPI
betterprotoGenerates idiomatic Python code from Protobuf 3…
permissive · top 5,000 on PyPI
protoc-gen-connect-pythonA protoc plugin that generates Python client…
permissive · top 15,000 on PyPI
logic2-automationPython client library for controlling Saleae…
unclear · top 15,000 on PyPI
smg-grpc-protoProvides pre-compiled Python gRPC stubs for…
permissive · top 5,000 on PyPI