"Protoc plugin to compile proto plus python classes"
Project description
Plugin to generate proto-plus classes with protoc compiler.
Available plugin parameters [flags]:
readable_imports — import in the style “from … import …”
relative_imports — use relative imports instead of absolute
generate_inits — generate __init__.py files, always uses readable_imports to avoid circular imports
quiet — don’t print compiler output
Available plugin parameters [keywords]:
save_request — saves input as .json and binary file with specified name
package — use this string as name for the __package__ module attributes
Example:
protoc --proto-plus_out=generate_inits,relative_imports,readable_imports,package=mypackage,save_request=test_request:./output_dir schema.proto
MIT License Copyright (c) 2021, Maximilian Schmidt
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for codestare-proto-plus-0.0.6.dev1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46c59374feaaa21eb935220ddd18bf7f829ee50a0c6ef4ccbc3d2039576d7cd6 |
|
MD5 | edcbbecf5ab1734f4c1b63ffe18a4d6f |
|
BLAKE2b-256 | e0db998ca85d7341d1db3c168f8bd1cbd30e6e2140753b1f68e8cc7168a130b4 |
Hashes for codestare_proto_plus-0.0.6.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b0515f8831350c31915f4e3e3727ca5858e2f79747d5641f0eb15b41e957436 |
|
MD5 | 14f4c29efe7f003b2a6f825e8c0f55c9 |
|
BLAKE2b-256 | 4f41328bc907122a1aa088d7b4adf44cc1b89486c87b6ddf272efd61bf601fbe |