Skip to main content

a small simple library for generating documentation from docstrings

Project description

inkpot

A small simple library for generating documentation from docstrings

inkpot is available on pip. Please give it a star if you like it!

drawing

GitHub stars GitHub forks Tweet

GitHub PyPI PyPI - Python Version PyPI - Downloads

To know more about way this project was stated, checkout this blog post.

Installation

pip install inkpot

Usage

single file

python3 -m inkpot myfile.py

or directory

python3 -m inkpot myproject/

output to a file (also works with directories)

python3 -m inkpot myfile.py > doc.md
python3 -m inkpot myproject/ > doc.md

More functionality and better formatting might be added.

Example

On the wiki you can se the result of running inkpot on the inkpot source code.

Here is a small example from the test files.

Python file tests/.ex/add.py

def add(a,b):
    """ add to objects """
    return a + b
python3 -m inkpot tests/.ex/add.py

returns markdown

# tests/.ex/add.py
## tests/.ex/add.py
**def add(a, b)** \
`add to objects `

License

This project is licensed under the MIT License - see the LICENSE file for details

Project details


Download files

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

Source Distribution

inkpot-2.2.1.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

inkpot-2.2.1-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page