skillfed

grpc-gateway-protoc-gen-openapiv2

Provides the missing pieces for gRPC Gateway.

grpc-gateway-protoc-gen-openapiv2 v0.1.0 212.4K downloads/30d#9,456 on PyPI
Permissive license Abandoned released

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-openapiv2

uv

uv add grpc-gateway-protoc-gen-openapiv2

poetry

poetry add grpc-gateway-protoc-gen-openapiv2

Installing 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

License :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3

Tags

grpc gateway python supportprotoc code generation grpcgrpc gateway protobuf pythonopenapi grpc gatewayprotoc plugin grpc gateway
grpcprotobufcode-generation

More Build Tools packages