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.
Metadata
Release files for docmd 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| docmd-1.0.6-py3-none-any.whl | Python 3 | none | any | Details for docmd-1.0.6-py3-none-any.whl |
Release files / docmd-1.0.6-py3-none-any.whl
| Download URL | docmd-1.0.6-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5f7a3be6056e3a195c49e5fe42ce860b917a8ddb480855b56f98b3fcb2a114fd
|
|
BLAKE2b-256 checksum How to use checksums |
fd120af4c0781f5a5d8fc3787823cf00edaee327c3cae4ed3b0ecdddbc0dda5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for docmd 1.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.