{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/5"},{"label":"User Interfaces","url":"https://skillfed.io/packages/category/software-development-user-interfaces"}],"enrichment":{"capability":"Argh turns plain Python functions into command-line interfaces by wrapping argparse, inferring CLI arguments and types from function signatures and annotations.","skillfed_tags":["cli-builder","argparse-wrapper"],"use_cases":["Convert a utility function into a standalone CLI tool without writing argument parser boilerplate.","Build multi-command applications with nested subcommands while keeping command logic as plain functions.","Create type-safe CLI tools where argument validation is driven by Python type annotations.","Reuse the same function logic in both CLI and programmatic contexts without duplication.","Rapidly prototype command-line interfaces for scripts, build tools, or system utilities."],"what_it_does":"Argh is a thin wrapper around Python's built-in argparse that eliminates boilerplate by letting you write CLI commands as ordinary Python functions. Instead of constructing argument parsers manually, you define a function with type annotations and call argh.dispatch_command() to turn it into a command-line tool. Argh infers argument names, types, and help text from your function signature and annotations, making the CLI definition match the function definition.\n\nThe package is designed for developers who want the power of argparse without its verbose API. It supports subcommands, nested commands, type checking, and integrates cleanly with third-party libraries for features like completion and progress bars. Since it has no runtime dependencies beyond the standard library, it adds minimal overhead to your project.","worth_installing":"Yes, if you need a lightweight CLI builder. Argh is stable, has no dependencies, and solves a real problem\u2014reducing argparse boilerplate. The aging maintenance status (762 days since last release) is a minor concern for a mature, feature-complete library, but verify that it meets your Python version needs and that you're comfortable with LGPL licensing before committing to it."},"id":"argh","links":{"html":"https://skillfed.io/packages/argh","md":"https://skillfed.io/packages/argh.md","pypi":"https://pypi.org/project/argh/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2024-07-13","license_spdx":null,"license_treatment":"copyleft","name":"argh","python_support":"supports_current","summary":"Plain Python functions as CLI commands without boilerplate"},"popularity":{"monthly_downloads":2544276,"position":3008,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.31.3"}
