Skip to main content

A simple documentation generator for Python

Project description

Wikin

A simple, beautiful documentation generator for Python. It extracts docstrings from functions and special comments from variables.

Features

  • Function Docstrings: Standard Python triple-quoted docstrings.
  • Variable Documentation:
    • #: comment before variable
    • variable = value #: comment after variable
  • Modern UI: Clean, responsive HTML output with a premium look.
  • Markdown Support: Use Markdown in your docstrings and comments.
  • Module Metadata: Customize how modules appear in the documentation using a Wikin: block.

Installation

pip install craftllc-wikin

Usage

wikin <path_to_code> <project_name> <version>

Example:

wikin ./ "My Project" 1.0.0

This will generate documentation in the docs/index.html file.

Variable Documentation Example

#: Number of requests per second
rpm = 10

timeout = 30 #: Connection timeout in seconds

Wikin will pick these up and include them in the generated documentation.

Ignoring Files

To exclude specific files or directories from being processed, create a .wikinignore file in your docs/ folder. It supports standard .gitignore (gitwildmatch) patterns.

Example docs/.wikinignore:

# Ignore a specific file
secret_module.py

# Ignore an entire directory
internal_tools/

# Ignore all files with a certain extension
*.deprecated.py

Module Metadata Example

You can set a custom display name for your modules by adding a Wikin: block at the top of your module's docstring:

"""
Wikin:
    name: Core Parser

This module handles all the parsing logic for Wikin.
"""

In the documentation, this module will be titled as Core Parser (your_package.parser). The metadata block itself will be hidden from the module's description.

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

craftllc_wikin-1.2.3.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

craftllc_wikin-1.2.3-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file craftllc_wikin-1.2.3.tar.gz.

File metadata

  • Download URL: craftllc_wikin-1.2.3.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for craftllc_wikin-1.2.3.tar.gz
Algorithm Hash digest
SHA256 918556650b8f3886dd1e078cb05e6bf2a80e7233a3a2d380a14b4700eb567e4b
MD5 71a0a1fded49c0467bcf8e2061cb8b0c
BLAKE2b-256 b187e4ed725fd21536b71f8a090bb952a52673bfb905725155781ee4a3b30dde

See more details on using hashes here.

File details

Details for the file craftllc_wikin-1.2.3-py3-none-any.whl.

File metadata

  • Download URL: craftllc_wikin-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for craftllc_wikin-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0bf8ec50ef56b4e94c69e9254d39ad5cf761907c52590aaea248b619a28ce970
MD5 7068e7b08a16a5bab46a80c775692786
BLAKE2b-256 6b15c2ee606428f042243d6cce9f043eaab5e21532a9f1c650bea374465a8a1e

See more details on using hashes here.

Supported by

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