No project description provided
Project description
docstring_parser
Parse Python docstrings. Currently support ReST-style and Google-style docstrings.
Example usage:
>>> from docstring_parser import parse
>>>
>>>
>>> docstring = parse(
... '''
... Short description
...
... Long description spanning multiple lines
... - First line
... - Second line
... - Third line
...
... :param name: description 1
... :param int priority: description 2
... :param str sender: description 3
... :raises ValueError: if name is invalid
... ''')
>>>
>>> docstring.long_description
'Long description spanning multiple lines\n- First line\n- Second line\n- Third line'
>>> docstring.params[1].arg_name
'priority'
>>> docstring.raises[0].type_name
'ValueError'
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
docstring_parser-0.3.tar.gz
(6.6 kB
view details)
File details
Details for the file docstring_parser-0.3.tar.gz
.
File metadata
- Download URL: docstring_parser-0.3.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06e012a6e4410427423d401928709f5b10f1bd3f07d947c5dc5a27aa86df272e |
|
MD5 | 1230fae56dda67693a4e516b606892f5 |
|
BLAKE2b-256 | dfea774a623b548ece53306b29309e6f423f92373c18d2355ca34b363002fe17 |