Skip to main content

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.
  • Nested Classes: Recursively documents inner classes, their methods, and their own nested classes.
  • Variable Documentation:
    • #: comment before variable
    • variable = value #: comment after variable
  • Global Search: Instantly find functions, classes, and variables across all modules.
  • Multipage Mode: Generate a clean landing page and separate files for each module.
  • Modern UI: Clean, responsive HTML output with a premium glassmorphic look.
  • Markdown Support: Use Markdown in your docstrings and comments.
  • Docstring Tables: Automatically formats Google-style, NumPy-style, and Sphinx/reST-style parameters, attributes, returns, and raises into elegant Markdown tables.
  • Addons (Themes & Plugins): Customize the look and feel with .wikin packaged CSS themes and JS plugins!
  • Custom Pages: Easily inject README or dynamically parsed LICENSE files right into the sidebar.
  • Module Metadata: Customize how modules appear in the documentation using a Wikin: block.

Installation

pip install craftllc-wikin

Usage

python -m wikin gen <path_to_code> <project_name> <version> [docs_folder]

Example:

python -m wikin gen ./ "My Project" 1.0.0

This will automatically parse the working directory and output standard HTML files to the customized docs/ folder.

If you have argcomplete installed, Wikin offers full Tab autocomplete for CLI options! Need help? Just run:

python -m wikin help

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.

Docstring Styles

Wikin understands Google, NumPy, and Sphinx/reST (field list) docstrings. reST fields are grouped into tables automatically, including types declared with :type: and :rtype::

def fetch(address: str) -> dict:
    """
    Retrieves information for an address.

    :param address: IP address or domain.
    :param timeout: Request timeout in seconds.
    :type timeout: int
    :return: The parsed response data.
    :rtype: dict
    :raises ValueError: If the address is empty.
    """

Supported fields are :param:, :type:, :keyword:/:kwarg:, :var:/:ivar:, :returns:/:return:, :rtype:, and :raises:. Indented continuation lines are appended to the previous field's description.

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

Configuration

You can fully orchestrate your generated suite by placing a docs/.wikinconfig (TOML format) directly inside your docs directory.

Multipage & Custom Branding

For larger projects, switch into multipage mode to split generated pages. You can also hide the Wikin branded watermark!

[main]
multipage = true
show_generated_by = false

To add helpful links (like GitHub, PyPI, or your website) to the sidebar, use the [links] section:

[links]
PyPI = "https://pypi.org/project/craftllc-wikin"
GitHub = "https://github.com/CraftLLC/Wikin"

Custom Markdown Pages & Intelligent Licensing

Wikin allows you to seamlessly inject generic Markdown files right into your sidebar!

[pages]
readme = "README.md"
license = "LICENSE"
license-parse = true

If license-parse = true is enabled, Wikin employs a versatile Regex parsing backend capable of correctly detecting MIT, Apache 2.0, GNU GPL (v2/v3), BSD (2/3-Clause), MPL 2.0, WTFPL, and more! It dynamically structures the Year, Type, and Author neatly above your license file.

Themes & Plugins (Addons API)

Wikin supports community-provided ZIP addons formatted with .wikin extensions! Place these archives into docs/addons/.

[addons]
themes = ["OLED"]
plugins = ["search_optimizer"]

These archives must contain a standard manifest.json mapped to their core main_css or main_js files.

Try our included OLED.wikin theme to transform the standard glassmorphic array into a completely flat, pure-black experience designed exclusively for organic LED developers.

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 dynamically filtered from the description rendering.

Metadata

Release files for craftllc-wikin 26.3.4

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

Source distribution (sdist)

Source distribution for craftllc-wikin 26.3.4
File Size Uploaded Provenance Actions
craftllc_wikin-26.3.4.tar.gz 67.8 kB Without provenance Details for craftllc_wikin-26.3.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for craftllc-wikin 26.3.4
File Interpreter ABI Platform Actions
craftllc_wikin-26.3.4-py3-none-any.whl Python 3 none any Details for craftllc_wikin-26.3.4-py3-none-any.whl

Total release size: 93.0 kB

Release files / craftllc_wikin-26.3.4.tar.gz

Download URL craftllc_wikin-26.3.4.tar.gz
Size 67.8 kB
Tags Source
SHA-256 checksum
How to use checksums
30d940b99f51cf88ede319394000b6cc3091cfd9f30c9edeac166ef62623281b
BLAKE2b-256 checksum
How to use checksums
e66cdf63b1f08a1f7fe1ff894e3bf2dfd66f0a6ae61237c029dca23af10d0db9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / craftllc_wikin-26.3.4-py3-none-any.whl

Download URL craftllc_wikin-26.3.4-py3-none-any.whl
Size 25.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9781b1e00b3a9fb9f9122fe57a2b97e6b99722e1dd40d65a9d41a74095cbb123
BLAKE2b-256 checksum
How to use checksums
56975b930b832c994cc6465db423b6b325e945755d43f80d848bf54247bd1273
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for craftllc-wikin 26.3.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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