Create documentation from python modules and other objects.
Latest release 20240422: module_doc: only list things in all if provided.
Function is_dunder(name)
Test whether a name is a dunder name (__foo__).
Function module_doc(module, *, sort_key=<function <lambda> at 0x102b29000>, filter_key=<function <lambda> at 0x102b29090>, 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
method_names: optional list of method names to document; the default is to document__init__, then CONSTANTS, the dunders, then other public names
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 20240422: module_doc: only list things in all if provided.
Release 20240412: module_doc: classes: MRO: suppress classes which are not immediate superclasses.
Release 20220311: module_doc: class members no longer rendered as headings, too verbose.
Release 20210306: Drop noise leaked into output.
Release 20210123:
- module_doc: include properties/descriptors.
- DISTINFO: this is not Python 2 compatible, drop tag.
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.
Release files for cs-py-doc 20240422
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cs.py.doc-20240422.tar.gz | 4.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cs.py.doc-20240422-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.8 kB
Release files / cs.py.doc-20240422.tar.gz
| Download URL | cs.py.doc-20240422.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e4c125ee7069c9002d908edc4a9865d56aa55d497d1098196c2fe6890ccbe4a3
|
|
BLAKE2b-256 checksum How to use checksums |
405592bf3ab1e8ccaac9b1389862050a71bbf189263a317fade2d98a8ba554d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.6
|
Release files / cs.py.doc-20240422-py3-none-any.whl
| Download URL | cs.py.doc-20240422-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
77582f84f5c98afdde62ad03c598f6400c259cd1efe0ef7017f564b9f05dcc59
|
|
BLAKE2b-256 checksum How to use checksums |
23c1600cfb1d878624ef2ad2d47854b1945d3ec3c38dab83d3b01d8fe3245ec2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.6
|