Metadata-Version: 2.4
Name: protoc-gen-connecpy
Version: 2.3.0
Summary: Code generator for the Connect Protocol
Keywords: protoc,protobuf,protocol-buffers,code-generation,connect,connectrpc,connect-protocol,connect-rpc,rpc,compiler,plugin
Author: Connecpy authors
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Go
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Code Generators
Classifier: Topic :: Software Development :: Compilers
Classifier: Topic :: System :: Networking
Requires-Python: >=3.10
Project-URL: Changelog, https://github.com/i2y/connecpy/releases
Project-URL: Documentation, https://github.com/i2y/connecpy#installation
Project-URL: Homepage, https://github.com/i2y/connecpy
Project-URL: Issues, https://github.com/i2y/connecpy/issues
Project-URL: Repository, https://github.com/i2y/connecpy/tree/main/protoc-gen-connecpy
Project-URL: Source, https://github.com/i2y/connecpy/tree/main/protoc-gen-connecpy
Description-Content-Type: text/markdown

# protoc-gen-connecpy
protobuf plugin for generating Connecpy server and client code.

## Installing and using plugin
1. Make sure your [GO](https://golang.org/) environment, [Protoc](https://github.com/protocolbuffers/protobuf/releases/latest) 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 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`
