Registry / http-networking / grpc-gateway-protoc-gen-openapiv2

grpc-gateway-protoc-gen-openapiv2

JSON →
library0.1.0pypypi✓ verified 82d ago

Provides the missing pieces for gRPC Gateway, specifically the protoc-gen-openapiv2 plugin for generating OpenAPI v2 specs from gRPC protobuf definitions. Current version 0.1.0, requires Python >=3.6, early development.

pip install grpc-gateway-protoc-gen-openapiv2
INSTALL
IMPORT
SIG · GRPC-GATEWAY-PROTO
G
grpc-gateway-protoc-gen-openapiv2
http-networkingpythonv0.1.0
Install
2.0s avg
Import
Disk
19MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.1.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 21.1MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.0s · import 0.000s · 22MB
19MB installed
● package 19MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

protoc_gen_openapiv2
import protoc_gen_openapiv2
import grpc_gateway_protoc_gen_openapiv2.plugin

Basic import and placeholder usage of the plugin.

import os from grpc_gateway_protoc_gen_openapiv2.plugin import generate_openapi # Example usage - replace with actual proto file path proto_file = "api.proto" output_dir = "./openapi" # Generate OpenAPI spec # generate_openapi(proto_file, output_dir) # uncomment when ready print("Quickstart placeholder - see README")
protoc-gen-openapiv2 --version
Debug
Known issues
breakingPackage name is under development; import paths may change without major version bump.
fix
Monitor repository for updates and pin version.
affects: 0.1.0
gotchaThe plugin is a Python wrapper; protoc itself and protoc-gen-openapiv2 binary must be installed separately.
fix
Ensure protoc and protoc-gen-openapiv2 are in PATH.
affects: >=0.1.0
Upgrade
Version history
0.1.0latest on PyPI · released May 9, 2021
Audit
Dependencies
protobufrequiredRequired for protobuf definitions
grpcio-toolsoptionalRequired for gRPC protoc plugin support
Agent activity
8 hits · last 30 days
node
8
Resources
grpc-gateway-protoc-gen-openapiv2 — pip install grpc-gateway-protoc-gen-openapiv2 · libregistry