Create documentation from python modules and other objects.
Latest release 20200718:
- New is_dunder(name) function to test whether name is a dunder name.
- module_doc: new method_names parameter to report only specific attributes from a class - default is all public names and most dunder methods - things without docs are not reported.
- Assorted small changes.
Function is_dunder(name)
Test whether a name is a dunder name (__foo__).
Function module_doc(module, *, sort_key=<function <lambda> at 0x103d81e50>, filter_key=<function <lambda> at 0x103d81ee0>, method_names=None)
Fetch the docstrings from a module and assemble a MarkDown document.
Parameters:
module: the module or module name to inspectsort_key: optional key for sorting names in the documentation; default:name- filter_key`: optional test for a key used to select or reject keys to appear in the documentation
Function obj_docstring(obj)
Return a docstring for obj which has been passed through stripped_dedent.
This function uses obj.__doc__ if it is not None,
otherwise getcomments(obj) if that is not None,
otherwise ''.
The chosen string is passed through stripped_dedent before return.
Release Log
Release 20200718:
- New is_dunder(name) function to test whether name is a dunder name.
- module_doc: new method_names parameter to report only specific attributes from a class - default is all public names and most dunder methods - things without docs are not reported.
- Assorted small changes.
Release 20200521: Initial PyPI release.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cs.py.doc-20200718.tar.gz
(4.0 kB
view details)
File details
Details for the file cs.py.doc-20200718.tar.gz.
File metadata
- Download URL: cs.py.doc-20200718.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3e426b41e3beaee54a3addc65645827126ca1ce3f99ace17f41a55c9a54af9d
|
|
| MD5 |
4559917d6d64b6fc71a83f96c6c294f0
|
|
| BLAKE2b-256 |
0bcf036d134cf1b44ba688918031454b7c9fe8b8768ac64c8d5b82f7c7718228
|