Skip to main content

A tool for generating command documentation from Python CLI applications.

Project description

> cmdpedia

cmdpedia is a work-in-progress that aims to make documenting command line applications easier.

Given a Python (Click-only for now) module, it'll parse its docstring and commands to generate a single HTML file that displays this information in a searchable, interactive way.

Features

  • Standalone, sharable HTML file
  • Search for commands by name or keyword
  • View available inputs for a selected command
  • Add inputs to customize the command's syntax
  • Edit placeholder values in the syntax
  • Copy the complete command syntax with selected inputs

Demo

View the cmdpedia for this project's main module.

Additional examples are located in the docs/example_modules folder.

Installation

Install the generator from PyPi by executing pip install cmdpedia_generator

Usage

Once installed, generate a cmdpedia by either importing the module and calling the generate() function with the program type and filepath passed as arguments, or by running the package as a script.

Usage examples can be found in the docs/example_modules folder.

Contributing

Contributions are welcome! If you find a bug or have an idea for an enhancement, feel free to open an issue or submit a pull request.

Contact

If you have any questions about this project, please feel free to reach out to me at me@derekw.co.

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

cmdpedia_generator-0.0.1a2.tar.gz (70.2 kB view details)

Uploaded Source

Built Distribution

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

cmdpedia_generator-0.0.1a2-py3-none-any.whl (70.5 kB view details)

Uploaded Python 3

File details

Details for the file cmdpedia_generator-0.0.1a2.tar.gz.

File metadata

  • Download URL: cmdpedia_generator-0.0.1a2.tar.gz
  • Upload date:
  • Size: 70.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for cmdpedia_generator-0.0.1a2.tar.gz
Algorithm Hash digest
SHA256 760981d4d85795fd1ee1821c1811a00b71597495e43d4fa27090dfea88d210d5
MD5 f874d79fd314b7bfc39674fc91d667b0
BLAKE2b-256 d9f169e7dc2fd713ad3229252ad2206ff0fbecb79e03809e43474a9e576cb7cc

See more details on using hashes here.

File details

Details for the file cmdpedia_generator-0.0.1a2-py3-none-any.whl.

File metadata

File hashes

Hashes for cmdpedia_generator-0.0.1a2-py3-none-any.whl
Algorithm Hash digest
SHA256 c912ee61e7d1ecb699f56948033d5822c5b6dc577d4dbef4cd38765d2091d8f3
MD5 18fcb4c50719cb5259bb3e8e445baaff
BLAKE2b-256 7007312c2bb13dafe9eaa1ccce99dacb593126b08cddebe0dae24dbbb0bf56ac

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