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.

Usage

Once installed, generate a cmdpedia by either importing the module and calling the generate_cmdpedia function, or by running the package as a script.

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.1a0.tar.gz (69.6 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.1a0-py3-none-any.whl (70.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cmdpedia_generator-0.0.1a0.tar.gz
  • Upload date:
  • Size: 69.6 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.1a0.tar.gz
Algorithm Hash digest
SHA256 4a9898d807c9f8fb5fc6855d23768cdb1b9a90448b05d5d647b0686e171ded06
MD5 4a9d91ffc0561557033adccf15b01986
BLAKE2b-256 1c5859162726ebc9aa9698f35f785cc0278bee7a503dc42113a72ee423b6bcd0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cmdpedia_generator-0.0.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 51361f5640eefeec0431f4430546a7742718c10aca12d27bcddb2451e48b0f9c
MD5 702aeff0272ab61cdae3269541617488
BLAKE2b-256 f4a19507264c44aec956529bb3fb4e3154e03e63bef569e5f978a0a1c0edc0bb

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