A parser based on lib2to3 producing docspec data from Python source code.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
docspec-python-1.0.0.tar.gz
(13.6 kB
view hashes)
Built Distribution
Close
Hashes for docspec_python-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9cd2e16469b665b554f78e677c49db6854f8595ae39ef6938bfa6a355247616 |
|
MD5 | 331a596426490bc2691e368668d72489 |
|
BLAKE2b-256 | 5789913b6928e3a48999772f3af28250f2e832f3958e654289a19faca0145a5e |