command
module
Version:
v0.0.0-...-69b39fb
Opens a new window with list of versions in this module.
Published: Dec 12, 2023
License: Unlicense
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
protoc-gen-twirpy
twirp support for python
Installing and using plugin
- Make sure your GO environment, Protoc compiler is properly setup.
- Install the plugin :
go install
This will build the plugin and will be available at $GOBIN
directory which is usually $GOPATH/bin
- 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
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.