Skip to main content

Quickly view documentation in source code in a language-agnostic way.

Project description

docwalker_windows_screenshot

docwalker

PyPI version

Quickly view documentation in source code in a language-agnostic way.

Docwalker processes custom characters in both inline and block comments to quickly extract and present documentation comments in source code.

For completeness, docwalker will also open entire Markdown files.

Installation

$> pip install docwalker

$> docwalker --help
# usage: docwalker [-h] [-f FILE] src_dir

# DocWalker is a quick documentation filter/viewer for examining source code
# documentation. By default, DocWalker creates a local config file, .dwconf, which
# hosts the project-specific configuration.

# positional arguments:
#   src_dir               The source directory to examine.

# options:
#   -h, --help            show this help message and exit
#   -f FILE, --file FILE  The config file to reference for custom parsing [default: '<src_dir>/.dwconf']

Usage

$> docwalker . # walks the current working directory.

Configuration

Default

The default configuration supports Python-esque syntax:

[parser.inline]
syntax = #@

[parser.block]
syntax_start = """@
syntax_end = @"""

[parser.listing]
syntax_start = #<<
syntax_end = #>>
  • inline: #@ inline documentation here
  • block: """@ block documentation here @"""
  • listings: #<< code goes here #>>

When docwalker first runs in a directory, a config file by the name .dwconf is generated with these default values. Simply edit this file to change what characters should be processed.

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

docwalker-1.0.2.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

docwalker-1.0.2-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file docwalker-1.0.2.tar.gz.

File metadata

  • Download URL: docwalker-1.0.2.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.0 Windows/10

File hashes

Hashes for docwalker-1.0.2.tar.gz
Algorithm Hash digest
SHA256 2f66dcb9a20e7d1df7f3b769f6174a921c84e5f6d5e7873c2a2d958335fc3e0e
MD5 a331e8c1a2d4deae2a2de386a44eefc5
BLAKE2b-256 2908ef84ccfb5504a8f683f0b83716488646290cd7547f225264c1b3bfc67f69

See more details on using hashes here.

File details

Details for the file docwalker-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: docwalker-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.0 Windows/10

File hashes

Hashes for docwalker-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f5d2fd83d528b12fe9d8c59e1f44a5abf35dd5ea57f84fde96fc61d124cab132
MD5 e606d2ab73b2b69e9944f4094679a9a5
BLAKE2b-256 87f94a5d66e41d241f3d63a8bb438abec890f3914d3fd2f61c0c1d4ca06336e7

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