{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/3"}],"enrichment":{"capability":"Parses command-line arguments and options from a docstring-based usage pattern, returning a dictionary of parsed arguments without requiring separate argument definitions.","skillfed_tags":["cli-parsing","docstring-driven"],"use_cases":["Build a simple CLI tool where the help message is the source of truth for argument parsing.","Add argument parsing to a script without introducing a heavy dependency like argparse or Click.","Generate a command-line interface for a utility where the usage pattern is already documented.","Parse subcommands and options in a tool that dispatches to other programs or modules.","Prototype or maintain a CLI where keeping help text and code in sync is a priority."],"what_it_does":"docopt-ng is a command-line argument parser that derives its parsing rules directly from a help message written in your code's docstring. Instead of defining arguments separately via decorators or configuration objects, you write a usage pattern and option descriptions in plain text, and docopt-ng parses them to validate and extract command-line arguments. It returns a simple dictionary mapping option names, arguments, and commands to their parsed values.\n\nThe package is a maintained fork of the original docopt, now under jazzband stewardship with type hints and full test coverage. It supports Python 3.7 and later, has no runtime dependencies, and works with both CPython and PyPy. The approach trades some flexibility for simplicity: if your help message is well-formed, the parser is automatically correct, and your documentation and argument handling stay synchronized.","worth_installing":"Yes. docopt-ng is a lightweight, actively maintained parser with zero runtime dependencies, permissive licensing, and no known vulnerabilities. Install it if you prefer defining CLI arguments via docstring conventions and want a minimal dependency footprint. Skip it if you need advanced features like type coercion, nested subcommands, or rich help formatting\u2014argparse or Click are better fits for those cases."},"id":"docopt-ng","links":{"html":"https://skillfed.io/packages/docopt-ng","md":"https://skillfed.io/packages/docopt-ng.md","pypi":"https://pypi.org/project/docopt-ng/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2023-05-30","license_spdx":null,"license_treatment":"permissive","name":"docopt-ng","python_support":"supports_current","summary":"Jazzband-maintained fork of docopt, the humane command line arguments parser."},"popularity":{"monthly_downloads":1822308,"position":3517,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.9.0"}
