GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - googleapis/protoc-docs-plugin: A protoc plugin that appends docstrings to Message subclasses on the default Python pb2 generated output.

This repository was archived by the owner on May 29, 2023. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

46 Commits
46 Commits

Folders and files

NameName
Last commit message
Last commit date
.circleci
.circleci
 
 
.github
.github
 
 
protoc_docs
protoc_docs
 
 
tests
tests
 
 
.coveragerc
.coveragerc
 
 
.gitignore
.gitignore
 
 
BUILD.bazel
BUILD.bazel
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
CONTRIBUTING.rst
CONTRIBUTING.rst
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
WORKSPACE
WORKSPACE
 
 
docs_plugin.bzl
docs_plugin.bzl
 
 
noxfile-2.7.py
noxfile-2.7.py
 
 
noxfile.py
noxfile.py
 
 
renovate.json
renovate.json
 
 
repositories.bzl
repositories.bzl
 
 
setup.py
setup.py
 
 

Repository files navigation

protoc-docs-plugin

This is a protoc plugin intended to augment protoc's default Python output with docstrings. It has been loosely designed to be able to support docstrings for other langauges also, but this is contingent upon the availability of appropriate insertion points in those languages.

Installation & Dependencies

This package depends on the current version of protobuf and pypandoc from PyPI.

$ pip install protoc-docs-plugin

Additionally, this package also depends on the pandoc OS package, which you will need to install from your OS package manager.

While it will run standalone as well, it only ever actually makes sense to invoke it from protoc.

Usage

Add --pydocstring_out to the same command to protoc that has a previous --python_out directive.

Example:

$ protoc foo.proto --python_out=. --pydocstring_out=.

Order does matter here; protoc must write the plain Python output first before it can augment it with the output from this plugin.

More Information

  • protoc plugins

About

A protoc plugin that appends docstrings to Message subclasses on the default Python pb2 generated output.

Topics

documentationprotobufpython

Resources

Readme
Apache-2.0 license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

15 stars

Watchers

9 watching

Forks

11 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.