Skip to main content

Create documentation from python modules and other objects.

Project description

Create documentation from python modules and other objects.

Latest release 20200521: Initial PyPI release.

Function module_doc(module, *, sort_key=<function <lambda> at 0x10293b430>, filter_key=<function <lambda> at 0x1029bc310>)

Fetch the docstrings from a module and assemble a MarkDown document.

Parameters:

  • module: the module or module name to inspect
  • sort_key: optional key for sorting names in the documentation; default: name.lower()
  • 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 20200521: Initial PyPI release.

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

cs.py.doc-20200521.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file cs.py.doc-20200521.tar.gz.

File metadata

  • Download URL: cs.py.doc-20200521.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for cs.py.doc-20200521.tar.gz
Algorithm Hash digest
SHA256 bbd9d637ecf33709aacedb2d6c6e136da845bff563caf46a820782531e957cea
MD5 1387a54d955d7d9f0b3b31c5b64bf712
BLAKE2b-256 c0841cbc3bda2e3864f190b1cda81d52cc6b35f1d5ef7a8972d567bd1c9682a3

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