Swapping implementations from the command lineOne type hint turns a Python class into a CLI plugin system: choose an implementation, set its own options, and inject it. No registry.20 min read·mauvilsa.hashnode.devSep 16
Settings from the environmentTwo jsonargparse args give a Python CLI an environment variable for every option, and for the subcommand itself, so a Docker image needs no arguments.13 min read·mauvilsa.hashnode.devSep 2
Tab completion, without writing a completion scriptGenerate bash, zsh, fish and tcsh tab completions for a Python CLI from type hints you already wrote, no completion script to write or keep in sync.15 min read·mauvilsa.hashnode.devAug 20
A CLI that works from anywhereTurning a Python script into an installed command with pyproject.toml and an entry point, then giving it config files jsonargparse finds on its own.8 min read·mauvilsa.hashnode.devAug 10
From API client to CLI, without writing a parserBuild a small API client as an ordinary Python class and get a complete CLI from it with jsonargparse: subcommands, help and config files.18 min read·mauvilsa.hashnode.devAug 3