Skip to main content

Dycco

Dycco is a(nother) Python port of Docco, the original quick-and-dirty, hundred-line-long, literate-programming-style documentation generator. For an example and more information on Dycco, see its self-generated docs.

Dycco was originally written by Will McCutchen

Example output:-

This version allows output to a markdown file or to an asciidoc3 file, as well as adding a option to sanitize internal HTML (which is handy if your code includes html fragments). Dycco can generate documentation for Python files and nothing else.

You can use Pycco (or a new_version) instead, for other types of file, that uses Dycco's code internally to handle Python files.

Installation

Use pip or uv to install:

pip install git+https://github.com/rojalator/dycco

Usage

Command Line Usage

Just pass dycco a list of files and it will generate documentation for each of them. By default, the generated documentation is put in a docs/ subdirectory:

$ dycco my_python_file.py

Dycco can generate docs for multiple files at once:

$ dycco my_package/*.py

And you can control the output location:

$ dycco --output-dir=/path/to/docs my_package/*.py

All command line options are given below:

$ dycco --help

Outputs:

usage: dycco [-h] [-o OUTPUT_DIR] [-a] [-e] [-f] source_file [source_file ...]

Literate-style documentation generator.

positional arguments:
  source_file           Source files to document

optional arguments:
  -h, --help            show this help message and exit
  -o OUTPUT_DIR, --output-dir OUTPUT_DIR
                        Output directory (will be created if necessary)
  -a, --asciidoc3       Process with asciidoc3 instead of markdown (you will have to install asciidoc3, of course)
  -e, --escape-html     Run the documentation through html.escape() before markdown or asciidoc3
  -f, --single-file     Just produce a .md or .adoc file in single-column to be processed externally

Library Usage

Dycco can also be used as a plain old Python library:

>>> import dycco
>>> dycco.document('my_python_file.py', 'my_output_dir')

Credits

Dycco is just a simple re-implementation of Docco, with some inspiration and template code from its primary Python port Pycco (and an updated version)

Metadata

Release files for dycco 1.1.0

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

Source distribution (sdist)

Source distribution for dycco 1.1.0
File Size Uploaded
dycco-1.1.0.tar.gz 152.2 kB Details

Built distribution (wheel)

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

Total release size: 168.4 kB

Release files / dycco-1.1.0.tar.gz

Download URL dycco-1.1.0.tar.gz
Size 152.2 kB
Tags Source
SHA-256 checksum
How to use checksums
308519d31fe195db1a00dbb521d91b541b3d873917f14a17385918bb7b369382
BLAKE2b-256 checksum
How to use checksums
655a0ff1e140a22a1643d7837e99b5ae3fbcf64c74e546e1267e1bd09c6f7428
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / dycco-1.1.0-py3-none-any.whl

Download URL dycco-1.1.0-py3-none-any.whl
Size 16.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0566f0ed82beffd1465e64676b5da6891b791ff4f9f74179b43f0e383be8e184
BLAKE2b-256 checksum
How to use checksums
391dfefc948b75dea1ac509915bd8a70b21c02cbfc0fb06707152855a97579b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.1

1 release file

1.0.0

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