command
module
Version:
v0.0.0-...-948007b
Opens a new window with list of versions in this module.
Published: Jun 17, 2024
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-connecpy
protobuf plugin for generating Connecpy server and client code.
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 connecpy plugin :
protoc --python_out=./ --connecpy_out=./ haberdasher.proto
- python_out : The directory where generated Protobuf Python code needs to be saved.
- connecpy_out : The directory where generated Connecpy Python server and client code needs to be saved.
The compiler gives the error below if it's not able to find the plugin.
--connecpy_out: protoc-gen-connecpy: Plugin failed with status code 1.
In such cases, you can give absolute path to plugin, eg: --plugin=protoc-gen-connecpy=$GOBIN/protoc-gen-connecpy
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.