{"categories":[{"label":"Build Tools","url":"https://skillfed.io/packages/category/software-development-build-tools/2"}],"enrichment":{"capability":"Generates a command-line interface from type-annotated Python functions and their docstrings, with no additional configuration required.","skillfed_tags":["cli-generation","type-hints","docstring-driven"],"use_cases":["Quickly expose internal Python functions as command-line tools for scripting or automation without writing CLI boilerplate.","Build simple admin or utility CLIs where function signatures naturally map to command arguments.","Generate self-documenting CLI tools where help text is automatically derived from existing docstrings.","Prototype CLI applications during development when you want minimal overhead before committing to a larger framework."],"what_it_does":"targ is a CLI framework that builds command-line interfaces directly from Python function signatures and docstrings. You register type-annotated functions with a CLI object, and targ automatically generates argument parsing, help text, and command dispatch\u2014no special syntax or configuration files needed. The package extracts parameter documentation from docstrings and uses type hints to determine argument types and validation.\n\nIt's designed for developers who want to expose Python functions as CLI tools without learning argparse or click's decorator syntax. The framework depends on colorama for terminal output formatting and docstring-parser to extract parameter descriptions from docstrings. It supports Python 3.10 through 3.14 and has been actively maintained since its 2020 release.","worth_installing":"Yes. targ is a lightweight, actively maintained tool that solves a real problem\u2014turning functions into CLIs with zero special syntax. Low install friction, permissive license, no known vulnerabilities, and recent activity make it a safe choice for projects that need simple CLI generation. Best suited for straightforward use cases; verify whether it handles your specific type complexity before adopting for complex argument scenarios."},"id":"targ","links":{"html":"https://skillfed.io/packages/targ","md":"https://skillfed.io/packages/targ.md","pypi":"https://pypi.org/project/targ/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-19","license_spdx":null,"license_treatment":"permissive","name":"targ","python_support":"supports_current","summary":"Build a Python CLI for your app, just using type hints and docstrings."},"popularity":{"monthly_downloads":690227,"position":5330,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.7.0"}
