docspec 2.2.2


pip install docspec

  Latest version

Released: May 06, 2025

Project Links

Meta
Author: Niklas Rosenstein
Requires Python: >=3.8

Classifiers

docspec

This Python packages provides

  • A library to (de-) serialize Docspec conformat JSON payloads
  • A CLI to validate and introspect such payloads

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

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras: None
Dependencies:
databind-core (>=4.2.6)
databind-json (>=4.2.6)
deprecated (>=1.2.12)