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.0a1.tar.gz
(11.0 kB
view hashes)
Built Distribution
Close
Hashes for docspec_python-2.0.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2591e4c5e92a49be0389bc9a0fc711d705dd1fca100f1e02a226d1a39c62a37 |
|
MD5 | 9242f10e10a2d2f04a1429bf218f4bd7 |
|
BLAKE2b-256 | af5da3cee94a6b140cc02439576e693253d9bc98e7ff53ed8965e2df9c02ef28 |