Skip to main content

docpy

This package auto-generates Markdown documentation from Python files.

Installation

This package is installed using pip:

pip install docpy

Usage

This package is used from the command line:

docpy ...

The package help entry is given below.

usage: docpy [-h] [-a APPEND] [-o OUT] [-s SUB] [-t TEMP] ...

generate Markdown documentation for Python files

positional arguments:
  files                 files to be documented

optional arguments:
  -h, --help            show this help message and exit
  -a APPEND, --append APPEND
                        file to which to append generated Markdown
  -o OUT, --output OUT  file to save generated Markdown to
  -s SUB, --sub SUB     file with ::DOCUMENTATION:: tag to replace Markdown
  -t TEMP, --template TEMP
                        template file with ::DOCUMENTATION:: tag, needs OUT
                        argument

Templates

You can define a Markdown template in which your documentation will be placed using the -t flag, which must be used in conjunction with the -o flag. In your template, just put ::DOCUMENTATION:: where you want the documentation to be placed. For example,

# This is a markdown file.

My docs are below:

::DOCUMENTATION::

_this concludes the documentation._

Changelog

v0.1.1:

  • Fixed formatting error in docstrings

v0.1.0:

  • Initial release

Metadata

Release files for docpy 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for docpy 0.1.1
File Size Uploaded
docpy-0.1.1.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for docpy 0.1.1
File Interpreter ABI Platform
docpy-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.7 kB

Release files / docpy-0.1.1.tar.gz

Download URL docpy-0.1.1.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c51adab89d33859c62f2fc1f1ccccfc7eb79d6f67a22c574d6d1f975d34b5136
BLAKE2b-256 checksum
How to use checksums
bc82bec5e8c480dc40ff8a3bbbe8e9653b16e0cf7b5fb1b632db84c175279473
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

Release files / docpy-0.1.1-py3-none-any.whl

Download URL docpy-0.1.1-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d8033bbc9e98169a00efb36aac2633dd9e78d15bddaa76c0f8e51ebe443db943
BLAKE2b-256 checksum
How to use checksums
38dcff1299b59b5ad0cecc6f4a81c0c316a0111215fdcc2e3e6671396076d8aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page