docspec-python 2.2.2


pip install docspec-python

  Latest version

Released: May 06, 2025

Project Links

Meta
Author: Niklas Rosenstein
Requires Python: >=3.8

Classifiers

docspec-python

A parser based on lib2to3 procuding docspec data from Python source code.

Example:

from docspec_python import parse_python_module
import docspec, sys
docspec.dump_module(parse_python_module(sys.stdin, print_function=False), sys.stdout)
$ docspec-python -p docspec | docspec --dump-tree --multiple | head
module __init__
| data __author__
| data __version__
| data __all__
| data _ClassProxy
| data _mapper
| class Location
| | data filename
| | data lineno
| class Decoration

Copyright © 2020, Niklas Rosenstein

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras: None
Dependencies:
black (>=24.8.0)
docspec (==2.2.1)
nr-util (>=0.8.12)