Skip to main content

A parser based on LibCST producing docspec data from Python source code.

Project description


A parser based on lib2to3 procuding docspec data from Python source code.


from docspec_python import parse_python
import docspec, sys
docspec.dump_module(parse_python(sys.stdin, print_function=False), sys.stdout)
$ docspec-python src/docspec/ | docspec --dump-tree | 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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for docspec-python, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size docspec-python-0.0.1.tar.gz (8.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page