go-protoc-gen-connect-python is a distribution of protoc-gen-connect-python, that can be built with Go.
This means that go install
or go run
can be used to execute it, with no need to rely on separate package
managers such as pip, on any platform that Go supports.
Currently this wraps a Go binary compiled to Wasm. There is absolutely no good reason to do this - but there is a plan to port protoc-gen-connect-python to Python, after which this repo will package it with a WASI build of Python and there will be a real reason for it.
Precompiled binaries are available in the releases.
Alternatively, install the plugin you want using go install
.
$ go install github.com/wasilibs/go-protoc-gen-connect-python/cmd/protoc-gen-connect-python@latest
To avoid installation entirely, it can be convenient to use go run
$ go run github.com/wasilibs/go-protoc-gen-connect-python/cmd/protoc-gen-connect-python@latest