Skip to main content

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

Project description

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.1.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.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: docwalker-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 86e33cba3a6b022781f8faaac5001400019a82a9963e67c35aa591c7961d7056
MD5 ad8269c3a69374eabf0377031c465856
BLAKE2b-256 613be435110efa4d455a5c396035cbc29db20873735a07949dff6293ff2e0b4a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: docwalker-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8b34d007459b2d089f259dd9f4ddaf6dac2b98a9d9a73b9d781ffdcffae45ce3
MD5 f1ac2bb757e0e5078d5e1c851096f602
BLAKE2b-256 b087b070e1b0c6ec7e201c1230933066c107a28ecc66f6f9c5f015d823668ecb

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