Skip to main content

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


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.0.1.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

docspec_python-1.0.1-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file docspec-python-1.0.1.tar.gz.

File metadata

  • Download URL: docspec-python-1.0.1.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1

File hashes

Hashes for docspec-python-1.0.1.tar.gz
Algorithm Hash digest
SHA256 03ac20bd587e1db4ce2f88040e22f76e415290420f001a53e2018c7d7b393686
MD5 20cb399c201cb0b7bd73dcd2a1abbba6
BLAKE2b-256 5a465c41dc2f9d6479c18843a4694fe8f5c7c1c8edc977144188202443e2115a

See more details on using hashes here.

File details

Details for the file docspec_python-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: docspec_python-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1

File hashes

Hashes for docspec_python-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 90f1366c418524775fd21b2a911491e2c1d5c1d5132a67ba5fd2bab13aafbbab
MD5 3ef99814d35b56fca5dd25910ba090cb
BLAKE2b-256 aaabcbc28cb6e9cfcd9ef2609e1d05adc58b97cf2d2b1954fc7e8c7eaa783e7a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page