Skip to main content

Convert python docstring documentation to github markdown files

Project description

docmd

Generate api-style github markdown-files from python docstrings.

pip install docmd

Generate one file:

docmd my_module > README.md

Generate a whole folder full of documentation:

docmd my_module -out docs -url https://github.com/atakamallc/docmd/blob/master

docmd.docmd

Using docmd from python.

Example:

    from docmd import DocMd

    d = DocMd()
    mod = d.importlib("module")
    d.module_gen(mod)

DocMd(object)

Generator class for producing md files.

.__init__(self, output_dir=None, source_url=None, output_fh=None)

Construct a DocMd object:

Args:

  • output_dir: folder to write files to (optional)
  • source_url: url for making source links
  • output_fh: file handle to use if no output_dir is specified (sys.stdout)

.import_module(name)

Wrapper for importlib, in case we want to support more ways of specifying a module.

.module_gen(self, mod:module) -> str

Generate markdown, given an imported module with docstring comments.

Returns: name of the module generated.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

docmd-1.0.6-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file docmd-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: docmd-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.8

File hashes

Hashes for docmd-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 5f7a3be6056e3a195c49e5fe42ce860b917a8ddb480855b56f98b3fcb2a114fd
MD5 ad8dd02480e27c7679620d07833585f8
BLAKE2b-256 fd120af4c0781f5a5d8fc3787823cf00edaee327c3cae4ed3b0ecdddbc0dda5c

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