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-2.0.1.tar.gz
(11.0 kB
view hashes)
Built Distribution
Close
Hashes for docspec_python-2.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f43bbd1590b0b9f3d7c82576d364c97604f2232e38c27430a1aeaf6672afb43f |
|
MD5 | 88792712875da673723c703bfbe8c12a |
|
BLAKE2b-256 | e095c49cfad36f5a9fc1ebd7bb7376bfa06f9e66294e067d97a1842a85c135f2 |