Skip to main content

doc2md

Very lightweight docstring to Markdown converter.

License

Copyright © 2013 Thomas Gläßle t_glaessle@gmx.de

This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See the COPYING file for more details.

This program is free software. It comes without any warranty, to the extent permitted by applicable law.

Description

Little convenience tool to extract docstrings from a module or class and convert them to GitHub Flavoured Markdown:

https://help.github.com/articles/github-flavored-markdown

Its purpose is to quickly generate README.md files for small projects.

API

The interface consists of the following functions:

  • doctrim(docstring)

  • doc2md(docstring, title)

You can run this script from the command line like:

$ doc2md.py [-a] [--no-toc] [-t title] module-name [class-name] > README.md

Limitations

At the moment this is suited only for a very specific use case. It is hardly forseeable, if I will decide to improve on it in the near future.

Metadata

Release files for doc2md 0.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 doc2md 0.1.0
File Size Uploaded
doc2md-0.1.0.tar.gz 4.6 kB Details

Release files / doc2md-0.1.0.tar.gz

Download URL doc2md-0.1.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
22b76a53256077dcbac539731f806f90439a0bd564bd4879513968cbe97bb6d8
BLAKE2b-256 checksum
How to use checksums
4b9136c863845e9b4afb537ca1f5be75b2751c367e35df59e0ad1a9a33d3ea2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0 This release

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