Skip to main content

"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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codestare-proto-plus-0.0.5.tar.gz (41.9 kB view details)

Uploaded Source

Built Distribution

codestare_proto_plus-0.0.5-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file codestare-proto-plus-0.0.5.tar.gz.

File metadata

  • Download URL: codestare-proto-plus-0.0.5.tar.gz
  • Upload date:
  • Size: 41.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for codestare-proto-plus-0.0.5.tar.gz
Algorithm Hash digest
SHA256 d8d2df6a5c29cd34441590f430ee7de105660b0883929e970e6e9f9a2286612c
MD5 77f1b51df19c19fe56ee7aa0ddfca3b7
BLAKE2b-256 cfc98a8040cac09f7768ae25cac3aaffbde1583375dd0c2cc65abe8612c077ad

See more details on using hashes here.

File details

Details for the file codestare_proto_plus-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for codestare_proto_plus-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 acfabf56a08a0e0ec88b4218325f648920e8b7ce61ace24b8c3e94f56ed9d6ac
MD5 817efaf28ba4dff4428356afd0d775be
BLAKE2b-256 9ed4950a8215c7a6ca48747a81120024382bd60d7e3e67133a916cdc9cb22d99

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page