Docspec is a JSON object specification for representing API documentation of programming languages.
This Python packages provides
Example:
import docspec, sys
for module in docspec.load_modules(sys.stdin):
module.members = [member for member in module.members if member.docstring]
docspec.dump_module(sys.stdout)
$ docspec module.json --dump-tree
module docspec
| class Location
| | data filename
| | data lineno
| class Decoration
| | data name
# ...
The docspec
Python module requires Python 3.5 or newer.
Copyright © 2020, Niklas Rosenstein