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.2.0.tar.gz
(12.8 kB
view hashes)
Built Distribution
Close
Hashes for docspec_python-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 347aae3e2ef3f41d4e27e5e0e4996935286087cf9b7a948d512a6c03b277e530 |
|
MD5 | b8c7a2eaa2b8b0d95d889e7fd9942cb5 |
|
BLAKE2b-256 | 573d5b7d0c50412467d4ec379335fb31c9bd941544c9ca8d1ebe756d09d2a37b |