protoc-gen-twirpy

command module
v0.0.0-...-69b39fb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2023 License: Unlicense Imports: 6 Imported by: 0

README

protoc-gen-twirpy

twirp support for python

Installing and using plugin

  1. Make sure your GO environment, Protoc compiler is properly setup.
  2. Install the plugin : go install This will build the plugin and will be available at $GOBIN directory which is usually $GOPATH/bin
  3. Generate code for haberdasher.proto using twirpy plugin : protoc --python_out=./ --twirpy_out=./ haberdasher.proto
  • python_out : The directory where generated Protobuf Python code needs to be saved.
  • twirpy_out : The directory where generated Twirp Python server and client code needs to be saved.

The compiler gives the error below if it's not able to find the plugin.

--twirpy_out: protoc-gen-twirpy: Plugin failed with status code 1.

In such cases, you can give absolute path to plugin, eg: --plugin=protoc-gen-twirpy=$GOBIN/protoc-gen-twirpy

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL