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.2.0.tar.gz
(13.8 kB
view hashes)
Built Distribution
Close
Hashes for docspec_python-2.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b628df9b8108e2422b2262579e05753f81cb5bdffba929609fc5b589e1c3e20 |
|
MD5 | 9bc6ce90e952efc47c3ee39e98a10d75 |
|
BLAKE2b-256 | 9bbad45dbfb33ef9b59e09675ac0df528663f62643751a0d9bd8e1e5f72d9d1c |