Coding

docopt – command-line interface description language

docopt creates beautiful command-line interfaces.

Want to add an option or argument to your script? Don’t want to add yet another line of argparse boilerplate? Just add the option to your module docstring (you did write docstring, didn’t you?) and docopt takes care of the rest.

docopt is based on conventions that have been used for decades in help messages and man pages for describing a program’s interface. An interface description in docopt is such a help message, but formalized.

docopt helps you:

  • define the interface for your command-line app, and
  • automatically generate a parser for it.

docopt is free and open source software.

Website: docopt.org
Support: GitHub Code Repository
Developer: Vladimir Keleshev
License: MIT License

docopt is written in Python. Learn Python with our recommended free books and free tutorials.


Related Software

Command-Line Python Application Development Tools
Python FireLibrary for automatically generating command line interfaces
argparseParser for command-line options, arguments and sub-commands
ClickCreate beautiful command line interfaces in a composable way
TyperLibrary for building CLI applications
RichPython library for rich text and beautiful formatting
alive-progressProgress bar, with real-time throughput
GooeyConvert console programs into end-user-friendly GUI software
Python Prompt ToolkitBuild powerful interactive command line and terminal applications
tqdmFast, extensible progress bar for Python and CLI
AsciimaticsCreate full-screen text UIs from interactive forms to ASCII animations
CementCLI application framework for Python
docoptCommand-line interface description language
cliffFramework for building command line programs
CycloptsFramework for building command-line interfaces

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our carefully curated directory of recommended free and open source software, covering every major software category.

The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more.

Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted